List phone sessions
List the phones signed in to your account through the Monica app, newest first.
A phone signs in through OAuth in its browser, and each one is a session of its own. A phone signed out, or unused for 30 days, is no longer listed.
This endpoint answers GET and QUERY alike, and both return the same answer. GET sends the parameters in the address, QUERY in the request body. How QUERY works.
Query parameters
Path parameters go in the address. GET sends the others in the address too, QUERY sends them as JSON in the request body. Anything not listed here is ignored.
Which page to answer with.
How many keys one page holds, between 1 and 100. A number outside the range is brought back into it rather than refused.
Returns
A page of phone session objects, and how many there are in all.
The phone sessions on this page. An empty list rather than an error when there are none.
One phone session.
Always mobile_session. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
Everything the record holds.
The name the phone gave itself when it signed in, or null when it gave none.
Whether this is the phone making the request. Always false when you call with an API key.
When the phone signed in or last renewed its access, as a count of seconds. The app renews at least once an hour while it is used.
When the phone signed in, as a count of seconds since 1970.
When the row last changed, as a count of seconds, or null.
Where to find this record.
The absolute address this record is read from.
Where you are in the collection.
The page this is, counting from 1.
How many one page holds, which is the size that was asked for once it has been brought into the allowed range.
How many phone sessions there are in all, not how many are on this page.
Status codes
Every code the API answers with, and what the body holds when it does.
| Code | When | Body |
|---|---|---|
| 422 Unprocessable Content | With QUERY, a parameter was sent both in the address and in the body. | A message, and an errors object naming each parameter sent twice. |
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.