API Authentication
In order to use the PlayTiX API, you need to authenticate your HTTP requests with a security token.
#
Authorization server url- Staging: https://connect.playtix.team/oauth2/aus3iwvbgi8x9IWi95d7
- Prod: coming soon
#
Get credentialsTo use the PlayTiX API, you need a client ID and secret that will be provided by the PlayTiX team.
These values must be kept secure at all time, as such they must not be used inside a front end application (mobile or web).
#
Get security tokenTo get a security token, you need to send a POST HTTP request to the token endpoint of the authorization server with the client_credentials grant type and your client id and secret as Basic Auth
Endpoint url: /v1/token?grant_type=client_credentials
Example of a RAW HTTP request:
Example with curl:
Example of the server response:
#
Using the tokenOnce you have an access_token, you can send it to the PlayTiX API to authenticate your requests.
Example of RAW HTTP request: