Skip to content

Issue an enrollment token (secret shown once)

POST
/v1/admin/orgs/{org_id}/projects/{project_id}/enrollment-tokens
org_id
required
string
project_id
required
string
object
label
string
scopes
Array<string>
allowed_domains
Array<string>
max_mailboxes
integer
daily_send_limit
integer
reusable
boolean
expires_in_hours
integer

Created (token shown once).

object
id
string
token

Raw enrollment token

string
prefix
string
scopes
Array<string>
max_mailboxes
integer
daily_send_limit
integer

Missing or invalid credential.

The canonical error envelope. error is a stable machine code.

object
error
required

Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).

string
Example
forbidden
message

Human-readable detail (never leaks internals).

string
Example
missing required scope

Authenticated but lacking the required scope, or out of quota.

The canonical error envelope. error is a stable machine code.

object
error
required

Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).

string
Example
forbidden
message

Human-readable detail (never leaks internals).

string
Example
missing required scope