Skip to main content
POST
Invite a person
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Invites a person by email as an admin or a member, and answers the link once. Inviting the same email again replaces the earlier invite: its old link stops working.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Headers

Idempotency-Key
string

Not accepted on this call. Sending it is 400 bad_request.

Required string length: 1 - 255

Body

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

Response

The invite, with its link.

createdAt
string
required

ISO 8601.

email
string
required
expiresAt
string
required

ISO 8601.

id
string
required
invitedByEmail
string
required
role
enum<string>
required
Available options:
admin,
member
status
enum<string>
required

expired: its link no longer works. Send it again.

Available options:
pending,
expired
emailed
boolean
required

Whether an email with the link was sent.

joinUrl
string
required

The link to send. Shown this once and never again.