Organization
The Organization API allows businesses to programmatically manage their organisational structure by retrieving available roles and listing workspaces — both live and sandbox environments
Returns all available roles for the organization (owner, admin, member). 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_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx200
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Internal Server Error – unexpected server error
GET /organizations/roles HTTP/1.1
Host: api.transactionlink.io
Authorization: text
Accept: */*
[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "admin",
"organizationId": "f1e2d3c4-b5a6-7890-fedc-ba0987654321"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "member",
"organizationId": "f1e2d3c4-b5a6-7890-fedc-ba0987654321"
},
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"name": "owner",
"organizationId": "f1e2d3c4-b5a6-7890-fedc-ba0987654321"
}
]Returns all workspaces belonging to the organization. Filters results to workspaces the token has can_view_workspace permission on.
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_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx200
Bad Request – invalid request parameters
Unauthorized – JWT token missing or invalid
Forbidden – insufficient permissions
Internal Server Error – unexpected server error
GET /organizations/workspaces HTTP/1.1
Host: api.transactionlink.io
Authorization: text
Accept: */*
[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "My Workspace",
"description": "Main production workspace",
"workspaceType": "LIVE"
}
]List all available roles for a workspace. Requires can_view_workspace permission.
Organization API token (tot_) — preferred authentication method. Pass the token directly without Bearer prefix.
Identifier of the workspace
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
GET /organizations/workspaces/{workspaceId}/roles HTTP/1.1
Host: api.transactionlink.io
Authorization: text
Accept: */*
[
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Editor",
"workspaceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "Can edit records and workflows",
"permissions": [
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"resourceType": "table",
"relation": "can_edit_data",
"resourceId": "d4e5f6a7-b8c9-0123-def0-123456789012"
}
],
"createdDateTime": "2025-01-01T10:00:00Z",
"type": "CUSTOM"
}
]Last updated