Users & Authentication
Get Media Token
Obtain a short-lived JWT that authorises access to protected media files hosted by Nexudus.
GET
Get Media Token
Get Media Token
Issues a short-lived JWT scoped to the authenticated customer that can be appended to media URLs (as thet query parameter) to access protected files — such as invoice PDFs, uploaded documents, and other customer-specific media stored by Nexudus.
This token is distinct from the bearer token used for API calls. It is a lightweight media-access credential with a short expiry and must be
refreshed before downloading files in long-lived sessions.
Authentication
Requires a valid customer bearer token in theAuthorization header.
Request
No request body or query parameters are required.Response
Returns aJwtMedia object.
Short-lived JWT to append as
?t={jwt} when constructing authenticated media URLs. For example: /api/public/billing/invoices/{id}/pdf?t={jwt}.Example Response
TypeScript Integration
Usage in Portal
Error Responses
The bearer token is missing, expired, or invalid. The customer must sign in again.
Related Endpoints
Get Media Token