Skip to main content
POST
https://mcp.compose.market
/
agent
/
register
Register
curl --request POST \
  --url https://mcp.compose.market/agent/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "dnaHash": "<string>",
  "model": "<string>"
}
'
{
  "success": true,
  "agent": {
    "name": "My Agent",
    "apiUrl": "/agent/0x123.../chat"
  }
}

Body

name
string
required
Agent name.
dnaHash
string
required
The unique DNA hash from the smart contract.
model
string
required
The core model ID.
{
  "success": true,
  "agent": {
    "name": "My Agent",
    "apiUrl": "/agent/0x123.../chat"
  }
}