Workspaces

Invite an email into a workspace (workspace admin role and admin token scope)

post/api/workspaces/{slug}/invitations

Request

  • Base URL: https://tre-app.com
  • URL: https://tre-app.com/api/workspaces/{slug}/invitations
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Opaque 1–200 character key. The same user, endpoint, and key replay the cached response for 24 hours when the request body fingerprint matches. A reused key with a different body answers 422 IDEMPOTENCY_KEY_REUSED; the same key while the original is still in flight answers 409 CONFLICT.

Request body

emailstring email required
role'owner' | 'admin' | 'member'

Response

Success

emailstring email required
role'owner' | 'admin' | 'member' required
acceptedboolean required

True when the address already had an account and joined immediately.

Changes

No recorded changes to this operation across all 1 revision of this API.