get https://apiprod.fattlabs.com/ephemeral
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.
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.
API Key Requirement:
- 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
Without URL Parameters:
- 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.
- Note: This method is not suitable for SSO capabilities because SSO requires specifying a particular user.
With URL Parameters (user_id or user_email):
- By passing user_id or user_email as URL parameters, the endpoint issues an ephemeral token for the specified Stax User.
- This token can then be used for SSO or authenticating API calls on behalf of that user.