Get access token with app credentials
You can grant your app access to Banqup APIs with an access token, that can be generated using the app credentials from your Banqup Developer Portal account. Follow the recipe below to get an access token using the client credentials OAuth2 flow.
Prerequisites
- You have an account and an app on Banqup Developer Portal.
Step 1: Get app credentials
On the Banqup Developer Portal, retrieve the app credentials (API keys) required for the OAuth2 authentication flow.
Step 2: Generate token
In the API Explorer, make this API request to generate an access token.
Endpoint: /oauth2/client_credential/accesstoken
Request body: View documentation
curl -L 'https://{{serverURL}}/oauth2/client_credential/accesstoken' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials' \
-d 'client_id=AiSnJC8qLIwveB5awDnrlrZJxjUDHyhoYXfl6toTX1KQluNG' \
-d 'client_secret=AfkZ0eLOAxOcDZvROO1UWpqD7EQAO4DeuI4fDfLOzthP2MOd5y4pGZW5fDZbuJP9'
Successful response
The access token is valid for 60 minutes.
eyJraWQiOiJnVnRVakhXWmEyQ0w2MGlxdGVhSlZmREdrV3EwVXdGZSIsInR5cCI6IkpXVCIsImFsZyI6IkVTMjU2In0.eyJhY2Nlc3NfdG9rZW4iOiI3N2FjQkNsNWdEUkJQRnFwUUszaE41eWdEdE13IiwiYXBwX25hbWUiOiJNeSB0ZXN0IGFwcDMiLCJzdWIiOiJmMTdmZGJkOS05ZGRkLTQ5ZGItODE2OC00ZTU3ZGEzMTM5NGUiLCJhdWQiOiJhdWRpZW5jZSIsImlzcyI6Imh0dHBzOi8vYXBpLmRldi5idHguZXUuYmFucXVwLmNvbS9vYXV0aDIvY2xpZW50X2NyZWRlbnRpYWwiLCJleHAiOjE3NDAxNjU5NDIsImlhdCI6MTc0MDEzNzE0MiwianRpIjoiMTIzMTI0NTEyMyJ9.-6I89y3HK0z5yRjNT2LIGuCRSy6fuht684BThGLGf3NzROytBRa6-zZDweB6I21y7Ofqfk0un0vIi-JbRVIo
Use the newly generated token to make API requests in the API Explorer, via cURL or other API clients.