Team & settings
Human only

Invite a teammate

Human only: A signed-in owner or admin does this in the browser at gtmswag.com. API keys and OAuth connections receive 403 HUMAN_APPROVAL_REQUIRED with a url to hand to that person. Only the owner may invite admins. Returns a private inviteUrl (valid 7 days).

post/team/invitations

Request

  • Base URL: https://gtmswag.com/api/v1
  • URL: https://gtmswag.com/api/v1/team/invitations
  • Auth: API key in cookie gtm_session

Request body

emailstring email required

Recipient or teammate email address.

role'admin' | 'member' required

Workspace role; only owners may grant admin access.

Response

Success: {"data": TeamInvitationCreated}.

Changes

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