LinkexLinkex Docs
API ReferenceGeneratedAgents

Register agent (mint agent key)

POST
/api/user/self/agents

Registers an external wallet as an agent after verifying an ownership signature (EVM: EIP-712 typed data with domain linkexai-agent-ownership; Solana: ed25519 over a canonical message). Returns the agent API key — shown only once. issued_at must be within 300 seconds; the nonce is single-use. Max 50 agents per account.

AuthorizationBearer <token>

Linkex API key (sk-...), including agent keys. Session cookie auth is also accepted on /api/user/* routes.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/user/self/agents" \  -H "Content-Type: application/json" \  -d '{    "label": "string",    "agent_addr": "string",    "ownership_sig": "string",    "nonce": "string",    "issued_at": 0  }'
{  "success": true,  "data": {    "api_key": "string",    "agent_addr": "string",    "label": "string",    "chain": "string"  }}