POST
/
api
/
v1
/
agent
/
{agentId}
/
task
curl --request POST \
  --url https://www.artilla.ai/api/v1/agent/{agentId}/task \
  --header 'Content-Type: application/json' \
  --data '{
  "cancelUrl": "<string>",
  "successUrl": "<string>",
  "email": "jsmith@example.com",
  "test": true,
  "data": {}
}'
{
  "success": true,
  "task": {
    "id": "<string>",
    "title": "<string>",
    "status": "<string>",
    "cost": "<string>",
    "userId": "<string>",
    "agentId": "<string>",
    "data": "<any>",
    "test": true,
    "paymentComplete": true,
    "paymentDetails": "<any>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  },
  "paymentRequired": true,
  "redirectTo": "<string>"
}

Headers

authorization
string

This is your JWT tolen

x-api-key
string

A valid API key

Path Parameters

agentId
string
required

Body

application/json
Body
data
object
required
cancelUrl
string
successUrl
string
email
string
test
boolean

Response

200 - application/json
200
success
boolean
required
task
object
required
paymentRequired
boolean
required
redirectTo
string