Monica
Log in
API v1
v1
View as Markdown

List connected apps

GET QUERY /api/v1/oauth-connections

List the apps connected to your account through OAuth, the Monica app on a phone and assistants alike, newest first.

Every app signs in the same way, through OAuth in a browser, and each sign-in is a connection of its own. A connection ended, 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.

page integer Optional default: 1

Which page to answer with.

per_page integer Optional default: 25

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 connection objects, and how many there are in all.

data array

The connections on this page. An empty list rather than an error when there are none.

data[] object

One connection.

data[].type string

Always oauth_connection. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.

data[].id string

The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.

data[].attributes object

Everything the record holds.

data[].attributes.client_name string

The name of the app, as it registered itself: Monica for mobile, or the name an assistant gave.

data[].attributes.label string

The name the app gave itself when it signed in, such as the model of a phone, or null when it gave none.

data[].attributes.scopes array

What the connection reaches: `api` for the whole API, `mcp:use` for the MCP server. An assistant connected before connections were recorded may list what its newest token carried.

data[].attributes.scopes[] string

One scope.

data[].attributes.is_current boolean

Whether this is the connection making the request. Always false when you call with an API key.

data[].attributes.last_used_at timestamp

When the app connected or last renewed its access, as a count of seconds. An app renews at least once an hour while it is used.

data[].attributes.created_at timestamp

When the app connected, as a count of seconds since 1970.

data[].attributes.updated_at timestamp

When the row last changed, as a count of seconds, or null.

data[].links object

Where to find this record.

data[].links.self string

The absolute address this record is read from.

meta object

Where you are in the collection.

meta.page integer

The page this is, counting from 1.

meta.per_page integer

How many one page holds, which is the size that was asked for once it has been brought into the allowed range.

meta.total integer

How many connections 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.

GET
curl https://my.monicahq.com/api/v1/oauth-connections?page=2&per_page=10 \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/oauth-connections?page=2&per_page=10', {
headers: { Authorization: `Bearer ${token}` },
})
const data = await response.json()
$response = Http::withToken($token)->get('https://my.monicahq.com/api/v1/oauth-connections?page=2&per_page=10');
QUERY
curl https://my.monicahq.com/api/v1/oauth-connections \
-X QUERY \
-H "Authorization: Bearer $MONICA_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"page": 2,
"per_page": 10
}'
const response = await fetch('https://my.monicahq.com/api/v1/oauth-connections', {
method: 'QUERY',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
page: 2,
per_page: 10,
}),
})
const data = await response.json()
$response = Http::withToken($token)->query('https://my.monicahq.com/api/v1/oauth-connections', [
'page' => 2,
'per_page' => 10,
]);
Response 200
{
"data": [
{
"type": "oauth_connection",
"id": "12",
"attributes": {
"client_name": "Monica for mobile",
"label": "Pixel 9",
"scopes": [
"api"
],
"is_current": true,
"last_used_at": 1756339200,
"created_at": 1756252800,
"updated_at": 1756339200
},
"links": {
"self": "https://my.monicahq.com/api/v1/oauth-connections/12"
}
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1
}
}

Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.