Accept an invite and sign in
POST
/v1/invites/accept
const url = 'https://api.wirevod.online/v1/invites/accept';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example","name":"example","password":"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://api.wirevod.online/v1/invites/accept \ --header 'Content-Type: application/json' \ --data '{ "token": "example", "name": "example", "password": "example" }'Unauthenticated. Creates the user in the inviting organization with the
invited role and signs them in like POST /v1/auth/login (dashboard
clients receive the refresh token as a cookie). Returns
404 invite_not_found for an unknown, expired, revoked or used token
and 409 email_in_use if the address registered in the meantime.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
string
name
required
string
password
required
string
Examplegenerated
{ "token": "example", "name": "example", "password": "example"}Responses
Section titled “ Responses ”Account created; tokens issued.
Media typeapplication/json
object
user
required
object
id
required
string
tenant_id
required
string
email
required
string format: email
email_verified
required
boolean
name
required
string | null
role
required
string
must_change_password
required
True when the user must set a new password (POST /v1/auth/password)
before using anything else.
boolean
created_at
required
integer
tenant
required
object
id
required
string
slug
required
string
name
required
string
plan
required
string
status
required
string
created_at
required
integer
access_token
required
string
refresh_token
string
token_type
required
string
expires_in
required
integer
Example
{ "user": { "id": "usr_01J9Y", "tenant_id": "ten_01J9Z", "email": "teammate@example.com", "email_verified": false, "name": "Grace Hopper", "role": "member", "must_change_password": false, "created_at": 1760000000000 }, "tenant": { "id": "ten_01J9Z", "slug": "acme-media-4f2a1b", "name": "Acme Media", "plan": "free", "status": "active", "created_at": 1760000000000 }, "access_token": "eyJhbGciOiJIUzI1NiJ9.access", "refresh_token": "wvr_9f2c.refresh", "token_type": "bearer", "expires_in": 900}The request was malformed or failed validation.
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "invalid_request", "code": "invalid_request", "message": "asset_id is required"}The resource does not exist in the tenant, or the route is unknown.
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "not_found", "code": "not_found", "message": "Asset not found"}The request conflicts with the resource’s current state.
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "upload_in_progress", "code": "upload_in_progress", "message": "An upload is already in progress for this asset"}Too many requests in the current window.
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "rate_limited", "code": "rate_limited", "message": "Too many requests", "details": { "retry_after": 60 }}Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before retrying.