Accept an invite
POST/ v1/ auth/ invites/ {token}/ accept
Signed in: send no body. Without a session, email, password and name create the account and set the session cookie. A signed-in person may pass the invite's id (inv_…) instead of the token.
Path parameters
token
Body
email
password
name
Responses
The organization joined and the new member's id.
organization
An organization.
Show 10 fieldsHide fields
id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).name
slug
Lower-case letters, digits and dashes, 3 to 40.
region
plan
requires_two_factor
created_at
A time in UTC, ISO 8601.
updated_at
A time in UTC, ISO 8601.
deleted_at
A time in UTC, ISO 8601.
suspended_at
When Viakite staff suspended the organization; while set, its data is read-only (changes answer
org_suspended).member_id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).Example response
1{2"organization": {3"id": "org_01JD8Q2M4W9XK3T7B5",4"name": "Production",5"slug": "acme",6"region": "us",7"plan": "free",8"requires_two_factor": true,9"created_at": "2026-11-21T09:30:00Z",10"updated_at": "2026-11-21T09:30:00Z",11"deleted_at": "2026-11-21T09:30:00Z",12"suspended_at": "2026-11-21T09:30:00Z"13},14"member_id": "mem_01JD8Q2M4W9XK3T7B5"15}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
invite_not_found | |
invite_expired | |
invite_email_mismatch | |
signup_required | |
already_member | |
member_limit | |
company_emails_only |