Monica
Log in
API v1
v1
View as Markdown

Pagination

GET /api/v1/vaults

Endpoints that answer with a list are paginated, and they all page the same way. Pass page to move through the results and per_page to size them, between 1 and 100.

The meta object says which page this is, how many objects a page holds, and how many there are in total, so a caller knows when it has reached the last page.

Two short lists answer whole, with no meta: the notification channels and the fields a life event type asks for.

Query parameters

Sent as JSON. Anything not listed here is ignored.

page integer Optional default: 1

Which page to answer with.

per_page integer Optional default: 25

How many objects one page holds, between 1 and 100.

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://friends.ban.is/api/v1/vaults \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://friends.ban.is/api/v1/vaults', {
headers: { Authorization: `Bearer ${token}` },
})
const data = await response.json()
$response = Http::withToken($token)->get('https://friends.ban.is/api/v1/vaults');
Response 200
{
"data": [],
"meta": {
"page": 1,
"per_page": 25,
"total": 0
}
}

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