Skip to main content
POST
/
v1
/
organizations
/
{id}
/
invite-links
Create a shareable invite link (admin only)
curl --request POST \
  --url http://0.0.0.0:3000/v1/organizations/{id}/invite-links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expires_in_days": 7,
  "max_uses": null
}
'
{
  "id": 1,
  "token": "AbC123xyZ",
  "url": "https://app/invite/AbC123xyZ",
  "expires_at": "2026-06-04T12:00:00Z",
  "max_uses": null,
  "uses_count": 0,
  "revoked": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID da organização

Body

application/json
expires_in_days
integer | null

Dias até expirar. null = nunca expira. Padrão: 7.

max_uses
integer | null

Limite de usos. null = ilimitado.

Response

Invite link created