Exchange credentials for token. (Example only)
POST {{baseUrl}}/oauth2/token
You will be provided with a clientid and a clientsecret which you'll use to authenticate yourself in the system. The first thing you need to do is to get access token which you will then use for further requests. When it expires, you will need to request another one. Multiple tokens can be active at once.
Supported types:
+ client_credentials
Once you have a valid access token, you will need to use it to sign all requests made to the Prio API.
This is done by providing Authorization HTTP header along with each of your requests in the following format:
Authorization:
If this header is not present in the request, the service will reject the request by returning the HTTP error code 400 and respond with an appropriate error message.
Please do not manually perform this operation, we highly encourage you to use an existing OAuth library for your specific language.
Make sure to call this endpoint only in case your current token has expired to reduce roundtrips and overal latency.
Request Body
{"grant_type"=>"client_credentials", "scope"=>"https://www.prioticketapis.com/auth/distributor.booking"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"access_token":"eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ","token_type":"Bearer","expires_in":3600,"scope":"https://www.prioticketapis.com/auth/distributor.booking"}