Invite a workspace member
POST
/invites
const url = 'https://api.invogi.com/v1/invites';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"role":"ADMIN","email":"analyst@example.test"}'};
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.invogi.com/v1/invites \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "role": "ADMIN", "email": "analyst@example.test" }'ADMIN or OWNER. Invitations expire, may be revoked or resent, and never grant OWNER. An ADMIN may invite another ADMIN; only an OWNER may later manage an existing ADMIN membership.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
role
required
string
email
required
string format: email
Example
{ "role": "ADMIN", "email": "analyst@example.test"}Responses
Section titled “Responses”Successful response
Media typeapplication/json
object
id
required
string
email
required
string
role
required
string
expiresAt
required
string format: date-time
createdAt
required
string format: date-time
Example
{ "role": "ADMIN"}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
Conflicting idempotency key or resource processing state
Media typeapplication/json