Agents

Get logs for an agent

GET

Path parameters

agentIdstringRequired
Agent ID

Query parameters

environmentIdstringRequired
Environment ID

Response

This endpoint returns an object
pagination
objectOptional
pagination info
data
list of objectsOptional
A log of an agent execution

Errors

GET
$curl -G https://api.x.flatfile.com/v1/agents/us_ag_YOUR_ID/logs \
> -H "Authorization: Bearer <token>" \
> -d environmentId=us_env_YOUR_ID
Response
1{
2 "pagination": {
3 "currentPage": 3,
4 "pageCount": 50,
5 "totalCount": 100
6 },
7 "data": [
8 {
9 "eventId": "us_evt_YOUR_ID",
10 "success": true,
11 "createdAt": "2022-09-18T00:19:57.007Z",
12 "completedAt": "2022-09-18T00:20:04.007Z",
13 "log": "SUCCESS"
14 }
15 ]
16}