Skip to main content
POST
/
agents
Create an agent
curl --request POST \
  --url https://api.deck.co/v2/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "id": "<string>",
  "object": "<string>",
  "name": "<string>",
  "description": "<string>",
  "tasks": [
    {
      "id": "<string>",
      "object": "<string>",
      "name": "<string>",
      "status": "<string>"
    }
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Clerk JWT, client credential JWT, or secret key (sk_live_...)

Body

name
string
required
description
null | string

Response

Created

id
string
required
object
string
required
name
string
required
description
null | string
required
tasks
object[]
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
request_id
string
required