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
organizationId
Organization ID to invite the user to
Headers
x-admin-api-key
Request
This endpoint expects an object.
email
Email address or API username (api_<uuid> format) of the user to invite
roles
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.
success
Indicates whether the operation was successful
message
Message describing the invitation result. For immediate assignments: “Roles assigned immediately…”. For traditional flow: “Invitation sent to…”
organizationId
ID of the organization for this invitation
userExists
Indicates whether the invited user already exists in the system
rolesAssignedImmediately
Indicates whether roles were assigned immediately without requiring invitation redemption