TAP Get started
This section explains how to get your clientId and clientSecret and how to generate your access token. As a result, you will be able to send you first requests.
Contact TAP customer support
In order to get started with TAP Services please contact our Customer Support. We will then send you the contract.
After the contract is signed, you will receive a welcome email with your:
- client_id - necessary to generate your access token
- client_secret - necessary to generate your access token
- prefix value - a unique alphanumeric string that we define. Refers to you.
Once you've received the welcome email, you are able to generate your access token.
Generate access token
In order to programmatically communicate with our TAP service, you must generate your access token.
The access token is the base64 encoded concatenation of your clientId
and your clientSecret
.
Generate access token
curl -k -d "grant_type=client_credentials" \ -H "Authorization: Basic Base64(clientId:clientSecret)" \ https://api-gateway-test.paas-test.bbsas.no/token
TAP services use several APIs. There are two different environments for each of these APIs: the test environment and the live environment. In the following examples we will always refer to the test environment. Please find the base url's for both, test and live environment in the API reference.
The access token is valid for 3600 seconds (1 hour) before it expires.
If successful, the response should look like this:
Get access token - response
{ "access_token":"3d232508-d89c-3f19-8fb5-57f1cd814d6f", "scope":"default", "token_type":"Bearer",