POST
/
agents
curl --request POST \
  --url https://commerce.driv.ly/api/agents \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "ai_3jks93ndk3s9",
  "model": "gpt-4o",
  "prompt": "Respond to the customer service request",
  "functions": [
    "fnc_ed904md03684"
  ]
}'
{
  "data": {
    "id": "ai_3jks93ndk3s9",
    "model": "gpt-4o",
    "prompt": "Respond to the customer service request",
    "functions": [
      "fnc_ed904md03684"
    ]
  },
  "success": true
}

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json

Response

200
application/json

Agent Created

The response is of type object.