cURL
curl --request POST \ --url https://api.example.com/api/v1/agents/:name/rotate-key
{ "apiKey": "<string>" }
mnfst_
curl -X POST https://api.manifest.build/api/v1/agents/my-agent/rotate-key \ -H "Cookie: better-auth.session_token=YOUR_SESSION_TOKEN"
{ "apiKey": "mnfst_XYZ123ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefg789" }
{ "statusCode": 404, "message": "Agent not found or access denied" }