API · Read
whoami
Confirm the key and user the session is acting for. Call once at the start to verify wiring before issuing real calls.
GET
/api/agent/v1/whoamiscope: readRequest
No body, no query parameters. Just the bearer token.
bash
curl -H "Authorization: Bearer ac_live_…" \
https://api.advisorscrypto.com/api/agent/v1/whoamiResponse
200 OK
{
"userId": "8d0a1f8b-9c12-4e7a-a5b3-f1c2d4e5a6b7",
"scopes": ["read", "validate", "propose"],
"productLine":
"AC Policy Layer — agents propose, the IPS decides, humans attest."
}Errors
401 Unauthorized
{ "statusCode": 401, "message": "Missing bearer token" }Last updated 2026-06-15