Create and send an organization invitation

Create an invitation to join an existing organization. The organization ID is specified in the URL.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path Parameters

organizationIdstringRequired
Organization ID to invite the user to

Headers

x-admin-api-keystringRequired

Request

This endpoint expects an object.
emailstringRequired

Email address or API username (api_<uuid> format) of the user to invite

roleslist of stringsRequired

Array of role IDs to assign to the user for the organization. Must contain at least 1 role. Available organization roles: k3r_user_org_inviter, k3r_user_org_viewer, k3r_user_org_manager, k3r_user_org_operator, k3r_user_org_merchant_admin

Response

Organization invitation created and sent successfully.
successboolean
Indicates whether the operation was successful
messagestring

Message describing the invitation result. For immediate assignments: “Roles assigned immediately…”. For traditional flow: “Invitation sent to…”

organizationIdstring
ID of the organization for this invitation
userExistsboolean
Indicates whether the invited user already exists in the system
rolesAssignedImmediatelyboolean or null
Indicates whether roles were assigned immediately without requiring invitation redemption

Errors