light-mode-image
Learn
API ReferenceMessaging

Sign a message

Roles

adminissuermanaged-issuer

Analytics Events

MESSAGING_SIGN_STARTMESSAGING_SIGN_SUCCESSMESSAGING_SIGN_FAIL
POST/v1/messaging/sign

Accepts a message payload and signs it with a JWS (JSON Web Signature) using the a specific key from the DID (Decentralized Identifier) provided in the request.

Analytic events

  • MESSAGING_SIGN_START
  • MESSAGING_SIGN_SUCCESS
  • MESSAGING_SIGN_FAIL

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

Sign message request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/messaging/sign" \  -H "Content-Type: application/json" \  -d '{    "didUrl": "did:web:organization.com#2vcj3MjR4d",    "payload": {      "msg": "this is a message"    }  }'
"string"

How would you rate this page?