Issue an enrollment token (secret shown once)
POST /v1/admin/orgs/{org_id}/projects/{project_id}/enrollment-tokens
POST
/v1/admin/orgs/{org_id}/projects/{project_id}/enrollment-tokens
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” org_id
required
string
project_id
required
string
Request Body
Section titled “Request Body ”object
label
string
scopes
Array<string>
allowed_domains
Array<string>
max_mailboxes
integer
daily_send_limit
integer
reusable
boolean
expires_in_hours
integer
Responses
Section titled “ Responses ”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 scopeAuthenticated 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