Agents

Get an agent

GET

Path parameters

agentIdstringRequired
Agent ID

Query parameters

environmentIdstringRequired
Environment ID

Response

This endpoint returns an object
data
objectOptional

Errors

GET
$curl -G https://api.x.flatfile.com/v1/agents/us_ag_YOUR_ID \
> -H "Authorization: Bearer <token>" \
> -d environmentId=us_env_YOUR_ID
Response
1{
2 "data": {
3 "id": "us_ag_YOUR_ID",
4 "compiler": "js",
5 "slug": "default",
6 "source": "module.exports = { routeEvent: async (...args) => { console.log(args) } }",
7 "topics": [
8 "workbook:updated"
9 ]
10 }
11}