Skip to main content
POST
Invite someone
Creates an invitation link and emails it when your deployment has an email provider. The link is always in the response, so you can send it through Slack or another channel. For bulk onboarding, see User provisioning. Mints an invitation link, and emails it when the deployment has an email provider. The link is always returned so you can deliver it yourself.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Body

application/json
email
string<email>
required
role
enum<string>
required
Available options:
admin,
member

Response

Invitation created

id
string
joinUrl
string
emailed
boolean

Whether an email went out.