Create authentication token
Changed onExchanges a client_secret for a JWT bearer token. Use the returned token in the Authorization: Bearer <token> header for authenticated Fincore endpoints. Tokens expire; create a new token after receiving 401 Unauthorized.
Request
- Base URLhttps://apicore.stg.finch.lat
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier for the client.
Request body
Example request
{
"client_id": "c2d1d1e3-3340-4170-980e-e9269bbbc551",
"client_secret": "your_client_secret_here"
}Response
Successfully created credential token.
Example response
{
"id": "1307f4e3-3960-4b98-9a14-0b6839245cc9",
"client_id": "c2d1d1e3-3340-4170-980e-e9269bbbc551",
"client_credential_id": "e981c6d8-4d49-45f2-a7ee-f956dca15500",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRfaWQiOiJjMmQxZDFlMy0zMzQwLTQxNzAtOTgwZS1lOTI2OWJiYmM1NTEiLCJleHAiOjE3NDEyODE0MTl9.ziSqMClLqwUVfyM15bqUF_7-PINY0ZiWkH01s8pO3gA",
"status": "ACTIVE",
"expires_at": "2025-03-06 11:16:59.491631",
"created_at": "2025-03-05 11:16:59.488685-06:00",
"updated_at": "2025-03-05 11:16:59.488685-06:00"
}Changes
- breaking
for the
pathrequest parameterclientId, the format changed from no format touuid - breaking
the
response's property format changed fromdate-timeto no format for status - info
api tag
Authenticationadded - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- breaking