Sign
POST /v1/sign
Signs an arbitrary message using the agent's private key, returning a JSON Web Signature (JWS).
Auth: Authorization: Bearer AND badge in request body (both required)
Timeout: 10 seconds
Request
curl -X POST https://identity.sentryagent.ai/v1/sign \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJFZERTQSIs..." \
-d '{
"message": "Hello, I am agent XYZ",
"badge": "eyJhbGciOiJFZERTQSIs..."
}'Response
{
"jws": "eyJhbGciOiJFZERTQSIsImtpZCI6...",
"did": "did:sentryagent:abc123",
"signed_at": "2026-06-01T10:00:00.000Z"
}The jws can be verified by any party using the agent's public key from GET /v1/jwks.