๐ What is the Transactions API?
The Groups API v1 allows you to retrieve information about the user groups defined in your Clara account. Groups are typically used to organize users into departments, business units, or approval chains.
This API can be used to:
- Display group options when assigning users or policies
- Link transactions or cards to internal teams
- Build internal reporting dashboards by group
๐ Note: This version of the API is read-only. To create, update, or delete groups, use Groups API v2.
๐ Available Endpoints
Operation | Endpoint | Method |
---|---|---|
Find all groups | /v1/groups | GET |
Find group by UUID | /v1/groups/{uuid} | GET |
1๏ธโฃ Find all groups
Use this endpoint to retrieve the list of all groups configured in your organization. Each group includes metadata such as name, status, and unique ID.
๐ Endpoint
GET /v1/groups
๐ค cURL Request
curl -X GET \
"https://public-api.mx.clara.com/api/v1/groups" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
๐ฅ Sample JSON Response
[
{
"uuid": "group-001",
"name": "Finance",
"status": "ACTIVE"
},
{
"uuid": "group-002",
"name": "Sales",
"status": "ACTIVE"
}
]
2๏ธโฃ Find group by UUID
Use this endpoint to fetch details for a specific group by its UUID.
๐ Endpoint
GET /v1/groups/{uuid}
๐ค cURL Request
curl -X GET \
"https://public-api.mx.clara.com/api/v1/groups/group-001" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
๐ฅ Sample JSON Response
{
"uuid": "group-001",
"name": "Finance",
"status": "ACTIVE"
}
๐ก Tip: Use the uuid of a group to associate users, approval flows, or reporting filters with that group.
โ ๏ธ Note: The v1 API does not allow modifying groups โ it is read-only and intended for lookup operations.