All API endpoints (exceptDocumentation Index
Fetch the complete documentation index at: https://musubinetwork.com/llms.txt
Use this file to discover all available pages before exploring further.
/health and /auth/token) require a JWT bearer token.
Obtaining a Token
Request a token from your participant backend:Response
Using the Token
Include the token in theAuthorization header on all subsequent requests:
JWT Claims
The token contains these claims:| Claim | Description |
|---|---|
sub | Your Canton Party ID |
canton_party_id | Your Canton Party ID (same as sub) |
role | Your participant type: institution, custodian, or market-maker |
iss | Token issuer: musubi |
aud | Token audience: musubi-api |
exp | Expiration timestamp (default: 1 hour from issuance) |
Token Lifecycle
- Tokens expire after 3600 seconds (1 hour) by default
- Request a new token before the current one expires
- Expired tokens return
401 Unauthorized
Verifying Your Identity
Use the/api/v1/whoami endpoint to confirm your backend’s party identity, participant id, and schema version:
schema_version field is pinned at "v2" post-ADR-0011 PR-03 — clients MUST gate on this value so any future breaking shape change is detectable, not silent. participant_id is the Canton participant id discovered from the Ledger API at boot; it is the empty string "" in sandbox / localnet mode (no MUSUBI_LEDGER_API_JWT).