curl --request POST \
--url https://api.mnemom.ai/v1/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "my-agent",
"hash_proof": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
"card_json": {},
"policy_yaml": "<string>"
}
'{
"id": "smolt-a1b2c3d4",
"agent_hash": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"card_id": "<string>",
"policy_created": true
}Register a new agent with a name and hash proof. Optionally attach an alignment card and policy.
curl --request POST \
--url https://api.mnemom.ai/v1/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "my-agent",
"hash_proof": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
"card_json": {},
"policy_yaml": "<string>"
}
'{
"id": "smolt-a1b2c3d4",
"agent_hash": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"card_id": "<string>",
"policy_created": true
}Supabase JWT token in Authorization: Bearer header
Agent name. 2-32 characters, alphanumeric and hyphens only, must start and end with alphanumeric.
2 - 32^[a-zA-Z0-9][a-zA-Z0-9-]{0,30}[a-zA-Z0-9]$"my-agent"
SHA256 hex string used to derive the agent ID and hash.
16"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2"
Optional alignment card JSON to attach on creation.
Optional YAML policy string to create alongside the agent.
Agent registered successfully