Skip to main content
A nonce is a number used once. It prevents somebody from capturing a valid signed update and submitting it repeatedly. Call this endpoint immediately before constructing a signed DID-document mutation. If another mutation is accepted first, fetch the nonces again and rebuild the payload.

Request

string
required
The complete OpenPayload DID whose authorization counters you need.

Response

string
required
The DID associated with the returned counters.
string
required
The unsigned 64-bit nonce for DID-document component authorization.
string
The nonce for alias authorization when that runtime contract is available.
string
required
The unsigned 64-bit nonce used for root-public-key rotation authorization.
string
required
The nonce for device changes and DID deactivation.
string
required
The Policy V2 nonce for creating, replacing, or deleting this DID’s delivery policy and changing its delivery constraints.
Treat nonce values as unsigned integer strings. JavaScript numbers cannot represent every u64 value safely.

Straight to the point

  • Authentication: none
  • Use the returned nonce in the next authorization payload
  • Fetch again after a 409 nonce_mismatch
  • Persona counters use GET /personas/{persona}/nonces

Authorization explained

Learn how the nonce, canonical payload, expiration, and signature fit together.