Skip to main content

Notifications

7 operations in the Tolvi API, version 1. Paths are relative to https://api.tolvi.co.uk. Every amount is integer pence.

List your notifications, newest first

GET/api/v1/notifications

Scopes
work:read

Parameters

Parameters for GET /api/v1/notifications
NameInTypeDescription
unreadqueryboolean
limitqueryinteger

1 to 100; default 50

Responses

200 OK, application/json

Body: object (NotificationPage).

200 OK response for GET /api/v1/notifications
FieldTypeDescription
rowsrequiredarray of Notification
rows[].​idrequiredstring (uuid)
rows[].​typerequiredstring (NotificationType)

One of: mention, rp, cleared, review, sync, assign, deadline, filing, billing, ai_tokens, evidence

rows[].​textrequiredstring
rows[].​engagementIdrequiredstring (uuid)nullable
rows[].​sectionCoderequiredstringnullable
rows[].​reviewPointIdrequiredstring (uuid)nullable
rows[].​actorIdrequiredstring (uuid)nullable
rows[].​actorNamestringnullable

Who did it, by name; null for Tolvi itself (deadlines, syncs, billing).

rows[].​productstring (NotificationProduct)

The product it came from; suite for firm-wide notices such as billing and AI tokens.

One of: working_papers, meetings, suite, self_assessment, accounts, corporation_tax

rows[].​subjectIdstring (uuid)nullable

The return or set of accounts it is about, for those products.

rows[].​emailrequiredboolean
rows[].​createdAtrequiredstring (date-time)
rows[].​readAtrequiredstring (date-time)nullable
unreadrequiredinteger

Errors: 400 Bad request, 401 Unauthorised, 403 Forbidden, 429 Too many requests, as problem details (application/problem+json).

Mark a notification read

POST/api/v1/notifications/{notificationId}/read

Scopes
work:read

Parameters

Parameters for POST /api/v1/notifications/{notificationId}/read
NameInTypeDescription
notificationIdrequiredpathstring (uuid)

Responses

200 OK, application/json

Body: object (Notification).

200 OK response for POST /api/v1/notifications/{notificationId}/read
FieldTypeDescription
idrequiredstring (uuid)
typerequiredstring (NotificationType)

One of: mention, rp, cleared, review, sync, assign, deadline, filing, billing, ai_tokens, evidence

textrequiredstring
engagementIdrequiredstring (uuid)nullable
sectionCoderequiredstringnullable
reviewPointIdrequiredstring (uuid)nullable
actorIdrequiredstring (uuid)nullable
actorNamestringnullable

Who did it, by name; null for Tolvi itself (deadlines, syncs, billing).

productstring (NotificationProduct)

The product it came from; suite for firm-wide notices such as billing and AI tokens.

One of: working_papers, meetings, suite, self_assessment, accounts, corporation_tax

subjectIdstring (uuid)nullable

The return or set of accounts it is about, for those products.

emailrequiredboolean
createdAtrequiredstring (date-time)
readAtrequiredstring (date-time)nullable

Errors: 400 Bad request, 401 Unauthorised, 403 Forbidden, 404 Not found, 429 Too many requests, as problem details (application/problem+json).

Get your email preferences

GET/api/v1/email-preferences

Scopes
work:read

Responses

200 OK, application/json

Body: object (EmailPreferences).

Which emails you get from this firm. The firm’s notification settings decide what can be emailed at all.

200 OK response for GET /api/v1/email-preferences
FieldTypeDescription
notificationsrequiredboolean

Immediate emails for notifications the firm sends by email (mentions, review hand-offs). Billing problems are always emailed to admins.

digestrequiredboolean

The daily summary of notifications the firm puts in the digest.

remindersrequiredboolean

Deadline reminder emails. The in-app reminder still arrives.

trialrequiredboolean

Tips during a Tolvi trial (getting started, halfway). Notices about the trial ending always arrive.

Errors: 400 Bad request, 401 Unauthorised, 403 Forbidden, 429 Too many requests, as problem details (application/problem+json).

Change your email preferences

PUT/api/v1/email-preferences

Scopes
work:read

Request body

Required. application/json: object (EmailPreferencesPatch).

Request body for PUT /api/v1/email-preferences
FieldTypeDescription
notificationsboolean
digestboolean
remindersboolean
trialboolean

Responses

200 OK, application/json

Body: object (EmailPreferences).

Which emails you get from this firm. The firm’s notification settings decide what can be emailed at all.

200 OK response for PUT /api/v1/email-preferences
FieldTypeDescription
notificationsrequiredboolean

Immediate emails for notifications the firm sends by email (mentions, review hand-offs). Billing problems are always emailed to admins.

digestrequiredboolean

The daily summary of notifications the firm puts in the digest.

remindersrequiredboolean

Deadline reminder emails. The in-app reminder still arrives.

trialrequiredboolean

Tips during a Tolvi trial (getting started, halfway). Notices about the trial ending always arrive.

Errors: 400 Bad request, 401 Unauthorised, 403 Forbidden, 429 Too many requests, as problem details (application/problem+json).