Skip to main content
POST
/
v1
/
agents
Create an agent
curl --request POST \
  --url https://api.getsly.ai/v1/v1/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "parentAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "kyaTier": 0,
  "generateKeypair": false,
  "skills": [
    "<string>"
  ],
  "metadata": {}
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "parent_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "status": "active",
    "kya_tier": 1,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "skills": [],
    "metadata": {},
    "public_key": "<string>",
    "connected": false
  },
  "credentials": {
    "token": "<string>",
    "warning": "<string>"
  },
  "authKey": {
    "keyId": "<string>",
    "publicKey": "<string>",
    "privateKey": "<string>",
    "algorithm": "ed25519",
    "warning": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).

Body

application/json
parentAccountId
string<uuid>
required
name
string
required
Required string length: 1 - 255
description
string
Maximum string length: 1000
kyaTier
integer
default:0
Required range: 0 <= x <= 3
generateKeypair
boolean
default:false

If true, returns an Ed25519 keypair (private key shown once)

skills
string[]
metadata
object

Response

Agent created

data
object
required
credentials
object
required
authKey
object