Skip to main content
POST
/
protocol
/
agents
Register Agent
curl --request POST \
  --url https://api.sandbox.nevermined.dev/api/v1/protocol/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Legal Assistant",
  "description": "AI-powered legal document analysis",
  "tags": [
    "legal",
    "ai"
  ],
  "endpoints": [
    {
      "POST": "https://your-api.com/query"
    }
  ],
  "agentDefinitionUrl": "https://your-api.com/openapi.json"
}
'
{
  "success": true,
  "agentId": "<string>"
}

Authorizations

Authorization
string
header
required

Your Nevermined API Key (starts with 'nvm:'). Get one at nevermined.app under Settings > API Keys.

Body

application/json

Agent configuration

name
string
required

Agent display name

endpoints
object[]
required

API endpoints (HTTP verb and URL)

agentDefinitionUrl
string
required

URL to OpenAPI spec, MCP Manifest, or A2A agent card

description
string

Agent description

tags
string[]

Searchable tags

Response

Agent created successfully

success
boolean
agentId
string

The agent's unique identifier (DID)