Authentication
Generate short lived bearer token
Changed onGenerates and returns a bearer token. Behavior of this API differs on the basis of the auth mechanism used to make the request.
- For API key auth, this API generates a JWT token whcih is valid for 24 hours and returns it.
- For JWT bearer auth, returns the same JWT token in response For information on how to generate API token, refer Generating New API Keys section of docs.
post/authenticate
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
OK
Changes
- breaking
removed the media type
text/plainfor the response with the status
- breaking
- info
endpoint added
- info