POST
/
agents
curl --request POST \
  --url http:///%7B{api_host}%7D/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspace": "/tmp/TEST",
  "configuration": "{{CURRENT_CONFIGURATION}}",
  "engine": "rhino"
}'
{
  "id": "90507e2b-c555-4b0f-930d-273bca4446a8",
  "key": "2501-526ae9b6-32a9-4487-a1d3-b5afa1b2b520",
  "name": "2501-526ae9b6-32a9-4487-a1d3-b5afa1b2b520",
  "status": "idle",
  "workspace": "/tmp/TEST",
  "configuration_id": "5a0333ab-a1ff-4362-bde5-346853b9deea",
  "history": [],
  "container_id": null,
  "owner_id": "3f98e890-cb11-4397-b928-480cb94e8fd0",
  "last_active_at": null,
  "created_at": "2024-08-23T14:10:52.203Z",
  "updated_at": "2024-08-23T14:10:52.203Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json · object

The body is of type object.

Response

201 - application/json
Created

The response is of type object.