Agents

List Agent Roles

GET
Lists roles assigned to an agent.

Path parameters

agentIdstringRequired
The agent id

Response

This endpoint returns an object
data
list of objects

Errors

GET
$curl https://api.x.flatfile.com/v1/agents/%3AagentId/roles \
> -H "X-Disable-Hooks: true" \
> -H "Authorization: Bearer <token>"
Response
1{
2 "data": [
3 {
4 "id": "string",
5 "roleId": "string",
6 "actorId": "string",
7 "resourceId": "string",
8 "createdAt": "2023-01-01T00:00:00Z",
9 "updatedAt": "2023-01-01T00:00:00Z"
10 }
11 ]
12}