Notifications
GET /api/v1/notifications lists your own Inbox and POST /api/v1/notifications/{id} marks one read or unread. The list needs Read, the mark needs Write.
Overview
GET /api/v1/notifications lists your own Inbox, the notifications the app's Inbox shows you, and POST /api/v1/notifications/{id} marks one read or unread. The list needs the Read permission and the mark needs Write.
A key reads the Inbox of the member it belongs to, and a signed-in client reads the Inbox of the member who approved it. Nobody reads a colleague's Inbox through the API, an admin included. A key limited to some teams gets the notifications about the jobs, applications and candidates of those teams, plus every notification about the workspace. Deleted notifications never appear, and snoozed ones stay out of the list until the snooze ends.
Request
curl "https://attia.app/api/v1/notifications?unread_only=true" \ -H "Authorization: Bearer $ATTIA_API_KEY"All four query parameters are optional.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
limit | integer, 1 to 100 | 25 | How many notifications to return |
cursor | string | none | The next_cursor of the previous page |
updated_since | RFC 3339 timestamp | none | Only notifications updated at or after this time |
unread_only | true or false | false | Return unread notifications only |
A parameter outside this table gets a 400 with the code invalid-request. So does a parameter sent twice.
Response
The answer holds the notifications in data, sorted by updated_at and then id, oldest change first. The app's Inbox shows the newest first; the API sorts by change so a poll can pick up where it stopped. next_cursor is a string when more notifications exist and null on the last page. hidden_count says how many the API left out because they name a candidate, as Candidate data explains.
{ "data": [ { "id": "0192f3e1-6c2a-7d4b-8e19-3a5f7b9c1d20", "type": "assigned", "category": "assignments", "target": { "type": "job", "id": "0192f3c4-2d18-7a6e-9f30-6b1e8c2d4a77" }, "read_at": null, "created_at": "2026-10-02T08:15:42.301822Z", "updated_at": "2026-10-02T08:15:42.301822Z" } ], "next_cursor": null, "hidden_count": 0}| Field | Type | Meaning |
|---|---|---|
id | UUID | The notification's id. It never changes |
type | string | What happened, such as assigned, mention or subscribed_activity |
category | string | The Inbox category of the type, such as assignments, mentions or subscriptions |
target | object | The record the notification is about |
read_at | timestamp or null | When you marked it read. null while it is unread |
created_at | timestamp | When the notification arrived |
updated_at | timestamp | When the notification last changed, a read or unread mark included |
target holds two keys. type is job, application, candidate or workspace, and id is that record's id. A notification about the workspace, such as the welcome message, carries the workspace's id. Read the record itself with its own operation, such as GET /api/v1/jobs/{id}.
A notification gives ids and nothing more. It carries no summary, no comment text, no name and no actor, so the text you see in the app stays in Attia. Version 1 can gain a field, so ignore one you do not know. Timestamps, nulls and enums describes each format.
Candidate data
Some notifications name a candidate in the app: one about an application or a candidate, one about an event on either, and one a candidate acted in. The API returns those only to a key with the Read candidate data permission, while an admin has turned on Candidate data in the API in Settings → API. Candidate data explains the same rule for a signed-in client.
Without it, the list leaves those notifications out and counts them in hidden_count. The count covers every notification the query matched, unread_only and updated_since included, whichever page you ask for. It is 0 when the key reads candidate data. A mark of such a notification gets a 404, as the next section says.
Mark a notification
curl -X POST "https://attia.app/api/v1/notifications/0192f3e1-6c2a-7d4b-8e19-3a5f7b9c1d20" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 0192f3e2-0a4d-7c51-9b3e-5d7f1a3c5e70" \ -d '{"read": true}'The body holds one field.
| Field | Type | Meaning |
|---|---|---|
read | boolean | true marks the notification read, false marks it unread |
The answer is a 200 with the notification in data, as the list gives it. A read mark sets read_at to the time of the mark, and an unread mark sets it to null. Both move updated_at, and the app shows the change, as when you mark it in the Inbox. A mark that matches the notification as it is changes nothing, so read_at and updated_at keep their values. A snoozed notification can be marked, as in the app.
A notification you cannot mark gets a 404 not-found: a colleague's, another workspace's, a deleted one, one your key's team access leaves out, and one that names a candidate when your key does not read candidate data. The answer is the same for an id that does not exist. A key without Write gets insufficient-scope, and a view-only workspace gets workspace-view-only.
Retry a mark safely
Every mark needs an Idempotency-Key header. Pick a new value for each call: 1 to 255 letters, digits, - or _. A UUID works. A call without one gets a 400 idempotency-key-required.
When a call times out or the connection drops, send it again with the same key. Within 24 hours, the same key with the same body and the same API key changes nothing and gets the first answer back, plus the header Idempotency-Replayed: true. A replay checks again that you may mark the notification, so one you lost access to since gets a 404.
The same key with another body or another API key gets a 422 idempotency-key-reused, and so does the same key after 24 hours, up to 90 days. A refused call keeps nothing, so you can send it again with the same key once you have fixed the cause.
Page and poll
Ask for a page, then send next_cursor back as cursor until it is null. A notification that changes during your read, a mark included, moves behind the cursor, and you may see it again on a later page. Keep the latest copy per id. Pagination explains the sort order.
updated_since is inclusive. Send a time five minutes before the largest updated_at you have stored, and drop the repeats by id. Poll for changes explains why.
A notification that you delete or snooze in the app leaves the list, and the list does not tell you. Read the whole list now and then to notice, and to pick up a notification whose snooze has ended.