Enrollments
The Enrollments API allows businesses to programmatically invite new users to their organization, assigning them roles and workspace access from the moment of onboarding. It also provides visibility into the status of pending and processed invitations, enabling automated and auditable user onboarding workflows.
Returns a paginated list of user enrollments (invitations) for the organization filtered by status. Requires can_manage_users permission.
Organization API token (tot_) — preferred authentication method. Pass the token directly without Bearer prefix.
Page number (0-based)
0Page size (default 20)
20Organization token (tot_). Pass the token directly without Bearer prefix.
tot_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx200
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Internal Server Error – unexpected server error
GET /organizations/enrollments HTTP/1.1
Host: api.transactionlink.io
Authorization: text
Accept: */*
{
"content": [
{
"enrollmentId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "user@example.com",
"status": "PENDING",
"lastInvitationSentAt": "2025-01-01T10:00:00Z"
}
],
"totalElements": 1,
"totalPages": 1,
"size": 20,
"number": 0
}Send an invitation to a user to join the organization with a specified role and optional workspace assignments. Requires can_manage_users permission.
Organization API token (tot_) — preferred authentication method. Pass the token directly without Bearer prefix.
Organization token (tot_). Pass the token directly without Bearer prefix.
tot_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxEmail address of the user to invite
Identifier of the organization role to assign
First name of the user
Last name of the user
Job title of the user
Created – invitation sent successfully
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Not Found – resource does not exist
Internal Server Error – unexpected server error
POST /organizations/enrollments HTTP/1.1
Host: api.transactionlink.io
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 264
{
"email": "user@example.com",
"roleId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"firstName": "Jan",
"lastName": "Kowalski",
"title": "Developer",
"workspaceAssignments": [
{
"workspaceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"roleId": "c3d4e5f6-a7b8-9012-cdef-123456789012"
}
]
}{
"enrollmentId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "user@example.com",
"status": "PENDING",
"lastInvitationSentAt": "2025-01-01T10:00:00Z"
}Resend an existing enrollment invitation. Requires can_manage_users permission.
Organization API token (tot_) — preferred authentication method. Pass the token directly without Bearer prefix.
Identifier of the enrollment
Organization token (tot_). Pass the token directly without Bearer prefix.
tot_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx200
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Not Found – resource does not exist
Internal Server Error – unexpected server error
POST /organizations/enrollments/{enrollmentId}/resend HTTP/1.1
Host: api.transactionlink.io
Authorization: text
Accept: */*
{
"enrollmentId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "user@example.com",
"status": "PENDING",
"lastInvitationSentAt": "2025-01-02T10:00:00Z"
}Cancel a pending enrollment invitation. Requires can_manage_users permission.
Organization API token (tot_) — preferred authentication method. Pass the token directly without Bearer prefix.
Identifier of the enrollment to cancel
Organization token (tot_). Pass the token directly without Bearer prefix.
tot_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx204 No Content
No content
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Not Found – resource does not exist
Internal Server Error – unexpected server error
POST /organizations/enrollments/{enrollmentId}/cancel HTTP/1.1
Host: api.transactionlink.io
Authorization: text
Accept: */*
No content
Last updated