Skip to main content
POST
/
api
/
agents
/
init
Initialize an AI agent
curl --request POST \
  --url http://localhost:3001/api/agents/init \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agentId": "<string>",
  "depinCid": "<string>"
}
'
{
  "success": true,
  "agentId": "<string>",
  "initialized": true,
  "stats": {
    "agentId": "<string>",
    "totalEpochs": 123,
    "totalVectors": 123,
    "currentRoot": "<string>",
    "lastEpoch": 123,
    "createdAt": "2023-11-07T05:31:56Z"
  },
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Lucid API key (lk_live_... or lk_test_...)

Body

application/json
agentId
string
required
depinCid
string

Response

OK

success
boolean
required
agentId
string
required
initialized
boolean
required
stats
object
message
string