Exchange a signed assertion for a short-lived service key
Changed onNo session: the credential is an ES256 JWS signed by a registered service signing key (header kid = its thumbprint). Claims: iss and sub = the service principal user id, aud = the exact SERVICE_TOKEN_AUDIENCE URL when configured (otherwise this endpoint's absolute URL derived from API_BASE_URL and API_VERSION), iat, exp (exp - iat at most 300 seconds), and a single-use jti (16 to 128 characters). Returns an hour-long service key for the X-API-Key header, bound to the same principal, home company and accountant:* scope as a minted service key. Every refusal is the same 401. Rate limited per client IP. Answers 503 until an audience and the service principal are configured; that check runs before body validation, so an empty-body probe tells a misconfigured deployment (503) from a working one (422).
Request
- Base URLhttps://api.medianfi.com/api/v1
- Authnone required
Request body
Compact ES256 JWS
Response
Short-lived service key; the plaintext is returned once and never stored
Changes
- info
endpoint added
- info