Added API keys
The Monica mobile apps sign in through OAuth and reach the API
The API accepts an OAuth access token carrying the new api scope, which only the mobile apps can obtain, next to API keys. GET /status describes how the apps sign in to the instance in a new mobile object. Three endpoints list a person's phones signed in through the app, show one, and sign one out. DELETE /logout called with the token of a phone signs that phone out.
Why it changed
The Android app signs people in on any instance, official or self hosted, without asking them to make a key by hand.
Changes
| Field | Change | Endpoints |
|---|---|---|
mobile |
Added |
GET
/status
|
mobile_session |
Added |
GET
/mobile-sessions
|
Authorization |
Changed | All endpoints |