Create a staff invitation

Creates or renews one Sailor staff invitation pinned to the credential’s workspace. Organization and subaccount identifiers are derived server-side and cannot be supplied by the caller.

Authentication

AuthorizationBearer

Workspace API key created in Sailor Settings > Integrations > API access.

Headers

Idempotency-KeystringRequired8-255 characters
Unique retry key retained for 86400 seconds. Reusing it with different request data is rejected.

Request

This endpoint expects an object.
emailstringRequiredformat: "email"<=254 characters
roleenumRequired
Allowed values:
team_idslist of stringsOptional

Response headers

X-Request-IdstringOptional
Stable request identifier for support and observability.
RateLimit-PolicystringOptional
Versioned structured quota policy. The syntax follows IETF RateLimit draft 11 and may evolve before standardization.
RateLimitstringOptional
Current structured quota state for the authenticated credential.
Idempotent-ReplayedstringOptional
True when this exact response was replayed from a completed idempotency record.

Response

The tenant-pinned Sailor staff invitation is ready.

oktrue
staff_inviteobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
503
Service Unavailable Error