Agents

List agents

GET

Query parameters

environmentIdstringRequired
Environment ID

Response

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