Skip to content
Docs
Get early access

Invite a member (returns a one-time link)

POST
/v1/members/invites
curl --request POST \
--url https://api.wirevod.online/v1/members/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "teammate@example.com", "role": "member" }'

Requires the admin scope. No email is sent: share the returned link, which is shown only here and expires in 7 days. A pending invite for the same address is revoked and replaced. An address that already has a WireVoD account returns 409 email_in_use.

Media typeapplication/json
object
email
required
string format: email
<= 254 characters
role
required
string
Allowed values: member admin
Example
{
"email": "teammate@example.com",
"role": "member"
}

Invite created.

Media typeapplication/json
object
invite
required
object
id
required
string
email
required
string format: email
role
required
string
Allowed values: member admin
expires_at
required
integer
created_at
required
integer
created_by
required

The inviting user; null when created with an API key.

string | null
link
required

Invite link for the invitee. It embeds the token in the URL fragment and is returned only once.

string
Example
{
"invite": {
"id": "inv_01J9Z",
"email": "teammate@example.com",
"role": "member",
"expires_at": 1760604800000,
"created_at": 1760000000000,
"created_by": "usr_01J9Z"
},
"link": "https://portal.wirevod.online/invite#Zk3m0w2Qf9vQ1h8Yl0a7cT6uXbN4rP5sD1eG2jH3kLo"
}

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"
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{
"error": "unauthorized",
"code": "unauthorized",
"message": "Authentication required"
}

The principal lacks the required scope or role (forbidden), the user must change their password before continuing (password_change_required), or the workspace is suspended (tenant_suspended; every request is refused until it is restored; contact support).

Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{
"error": "forbidden",
"code": "forbidden",
"message": "Missing required scope: write"
}

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
}
}
Retry-After
integer

Seconds to wait before retrying.