MINT_OUT=$(curl -sS -X POST "$CLAWB_BASE_URL/v1/identity/credentials/mint" \
-H "Content-Type: application/json" \
-H "X-Clawb-Api-Key: $CLAWB_API_KEY" \
-d '{
"agent_id":"agt_01...",
"provider":"sendgrid",
"audience":"clawb.provider",
"ttl_seconds":300,
"one_time":true,
"scopes":["email:send"],
"token_type":"jwt"
}')
curl -sS -X POST "$CLAWB_BASE_URL/v1/identity/credentials/revoke" \
-H "Content-Type: application/json" \
-H "X-Clawb-Api-Key: $CLAWB_API_KEY" \
-d '{
"token":"<credential-token>",
"reason":"cleanup"
}'
curl -sS -X POST "$CLAWB_BASE_URL/v1/identity/credentials/revoke-by-agent" \
-H "Content-Type: application/json" \
-H "X-Clawb-Api-Key: $CLAWB_API_KEY" \
-d '{
"agent_id":"agt_01...",
"reason":"agent reset"
}'