Ephemeral Authentication Tokens

This endpoint accepts a request made with an API Key in the Authorization header and issues an ephemeral authentication token (expiring in 24 hours) in response.

Ephemeral Authentication Tokens

This endpoint accepts requests made with an API Key in the Authorization header and responds with an ephemeral authentication token (valid for 24 hours). This token can be used in subsequent API calls.

keyAPI Key Requirements
  • You must have a valid API Key generated within your production or sandbox Stax account.
  • The API Key should be included in the Authorization header as a Bearer token.

Usage Scenarios

Standard Authentication:

  • If no URL parameters are passed, the endpoint reads your API Key from the Authorization header.
  • Issues an ephemeral token with your Stax User as the JWT subject.
exclamation-triangle
Important Note

This method is not suitable for SSO capabilities because SSO requires specifying a particular user.

Key Benefits

clock
Temporary Access

Tokens expire in 24 hours for enhanced security.

unlock-alt
Flexible Authentication

Support for both standard and user-specific token generation.

sign-in-alt
SSO Ready

Enable seamless single sign-on experiences.

Query Params
string

Provide the Stax User ID for whom the ephemeral token should be issued. Leave blank to issue the token for the API Key in the Authorization header.

string

Provide the URL-encoded email of the Stax User for whom the ephemeral token should be issued. Leave blank to issue the token for the API Key in the Authorization header.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json