const url = 'https://app.monitorly.cloud/api/v1/invites/accept';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"acceptTerms":true,"displayName":"example","email":"example","password":"example","token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.monitorly.cloud/api/v1/invites/accept \ --header 'Content-Type: application/json' \ --data '{ "acceptTerms": true, "displayName": "example", "email": "example", "password": "example", "token": "example" }'Accepts an invite. Signed in, the account joins the workspace. Without a session, a new account is made with the email, name and password given, and signed in; an email that already has an account must sign in first.
Authorizations
Section titled “Authorizations”- None
- session
Request Bodyrequired
Section titled “Request Bodyrequired”object
For a new account (since 2026-11-17): must be true, the person ticked “I accept the Terms and the Privacy
policy” (422 field.required at /acceptTerms otherwise). Not read when signed in.
For a new account; a signed-in user joins with their own account and sends only the token.
Example generated
{ "acceptTerms": true, "displayName": "example", "email": "example", "password": "example", "token": "example"}Responses
Section titled “Responses”The session.
object
object
The email was confirmed by the link from the sign-up email (accounts made by the CLI or an invite are confirmed). Unconfirmed accounts can sign in but change nothing in a workspace.
The account has a password (one made by Google or GitHub has none until a reset link sets it). Always sent; optional in the schema because it came after the first clients (2026-11-15).
The Google and GitHub accounts linked for sign-in. Always sent, like hasPassword.
object
The provider’s confirmed address at the last sign-in.
google or github.
A Google or GitHub sign-in made this account and nobody accepted the Terms yet: the dashboard asks first
(POST /me/terms). Always sent.
The version of the Terms and Privacy Policy the account accepted, and when (null for accounts made
before 2026-11-17, which are not asked). Always sent, like hasPassword.
object
Example
{ "user": { "id": "ID" }, "workspaces": [ { "id": "ID", "role": "member" } ]}Bad Request.
request.malformed: the body or a parameter is not of the expected shapeauth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.not_allowed: this operation needs a signed-in session; tokens cannot call itrequest.origin_mismatch,request.header_required: a changing request with a session comes from another site or lacksX-Monitorly-Request: 1
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Not Found.
invite.not_found: invite does not exist
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Conflict.
invite.sign_in_required: an account with this email exists: sign in and accept the inviteinvite.already_member: user is already in this workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Gone.
invite.expired: invite is older than 72 hoursinvite.used: invite was already accepted
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Payload Too Large.
request.too_large: the body is larger than 256 KiB
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unprocessable Entity.
field.required,field.too_long,field.invalid: a field breaks a rule;errorspoints at it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Too Many Requests.
session.rate_limited: more than 5 changes a second from your sessions
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Headers
Section titled “Headers”Seconds to wait before trying again.