Create a staff invitation
The staff API creates or renews a tenant-pinned Sailor staff invitation in the exact workspace owned by the API key. The invited person becomes a Sailor staff member after accepting the invitation.
Sailor derives the organization and subaccount from the API key. Neither identifier can be supplied or overridden in the request.
Request
The API key needs the staff:write scope. Send a unique Idempotency-Key for each intended invitation.
Unknown fields are rejected. A caller cannot provide organization, subaccount, or external-system identifiers.
Response
email_delivery_failed means the tenant-pinned invitation exists but its email needs to be resent from Sailor. It does not mean the invitation was lost.
Recovery
If Sailor returns 409 request_in_progress, retry with the same key after Retry-After. A completed response is replayed exactly for that key.
Create one key per automation and grant only staff:write when it manages only Sailor staff invitations.