Venly API
Search…
⌃K

How to get a Bearer token

How to get a Bearer token
post
https://login.venly.io
/auth/realms/Arkane/protocol/openid-connect/token
Get bearer and refresh token

Requesting the Bearer token

Request

Response

{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJmQi1UenBOb0hBVGhwT2J4aW9qTDBrdm83MldmRzRXRXh1eFpiaXlGQUhzIn0.eyJleHAiOjE2MTI5MDYwNTksImlhdCI6MTYxMjkwNDI1OSwianRpIjoiYWVkYjFlMGYtOGE1Yi00ZjRiLWEwMTQtMDQyNmJiOGZkN2JkIiwiaXNzIjoiaHR0cHM6Ly9sb2dpbi1xYS5hcmthbmUubmV0d29yay9hdXRoL3JlYWxtcy9BcmthbmUiLCJhdWQiOiJyZWFsbS1tYW5hZ2VtZW50Iiwic3ViIjoiNDkxN2I2ZmEtMjY1Ny00YmRkLWI4ZTgtZmE1ZGQ4YmQ0MDU3IiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiU3RyaWVnZWwtY2Fwc3VsZSIsInNlc3Npb25fc3RhdGUiOiI4NWJhZWY0ZS1hZDZjLTQ4ZDAtYTQ3Yy1mNWYxNzQ0OTI0ZWMiLCJhY3IiOiIxIiwicmVzb3VyY2VfYWNjZXNzIjp7InJlYWxtLW1hbmFnZW1lbnQiOnsicm9sZXMiOlsicXVlcnktY2xpZW50cyIsInF1ZXJ5LWdyb3VwcyJdfX0sInNjb3BlIjoidmlldzp3YWxsZXRzIHVzZTphbGwtd2FsbGV0cyB3aGl0ZWxhYmVsIHNpZ246d2FsbGV0cyB2aWV3OnByb2ZpbGUgc2F2ZTp0cmFuc2FjdGlvbiBlbWFpbCBwcm9maWxlIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJjbGllbnRIb3N0IjoiMTcyLjY5LjU0LjM1IiwiY2xpZW50SWQiOiJTdHJpZWdlbC1jYXBzdWxlIiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LX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246d2FsbGV0cyB2aWV3OnByb2ZpbGUgc2F2ZTp0cmFuc2FjdGlvbiBlbWFpbCBwcm9maWxlIn0.NbqHUU56DbGCdD0ZVCTiKo440ZzJ1bORGxuSEATvvLM",
"token_type": "bearer",
"not-before-policy": 1572970662,
"session_state": "85baef4e-ad6c-48d0-a47c-f5f1744924ec",
"scope": "view:wallets use:all-wallets whitelabel sign:wallets view:profile save:transaction email profile"
}
In the response a refresh_token is also provided. This is however deprecated, and will be removed in future releases. Do not use the refresh token to receive a new access_token. To receive a new access_token, simply call the endpoint again, including your client_id and client_secret.

Using the Bearer token in the API-calls

In the result of the previous call, an access_token is returned. This access_token needs to be passed with every API call that you do (as a Bearer token in the authorization header).
Request
curl --location --request GET 'https://api-qa.arkane.network/api/wallets' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJmQi1UenBOb0hBVGhwT2J4aW9qTDBrdm83MldmRzRXRXh1eFpiaXlGQUhzIn0.eyJleHAiOjE2Njc5ODQzMjUsImlhdCI6MTY2Nzk4NDAyNSwianRpIjoiMGFjNDIyNjQtNWZiYi00M2I2LTgwZDAtODZiN2E3NWI2MzhkIiwiaXNzIjoiaHR0cHM6Ly9sb2dpbi1xYS5hcmthbmUubmV0d29yay9hdXRoL3JlYWxtcy9BcmthbmUiLCJhdWQiOlsiQXJrYW5lTWFya2V0IiwicmVhbG0tbWFuYWdlbWVudCIsIkFya2FuZUJ1c2luZXNzUG9ydGFsIiwiTkZULUFQSSJdLCJzdWIiOiI0OTE3YjZmYS0yNjU3LTRiZGQtYjhlOC1mYTVkZDhiZDQwNTciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTdHJpZWdlbC1jYXBzdWxlIiwic2Vzc2lvbl9zdGF0ZSI6IjNkMTAwNWFlLTAxYmYtNGIwNC1hNWM0LWFhYjg5ZmViNGYyMCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cHM6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NhdmU6dHJhbnNhY3Rpb24gcHJvZmlsZSIsImNvbXBhbmllcyI6W3siaWQiOiJjMGY3NzAyMi0xYWJhLTQ1YjItYWRlNy1iMTNhYTViMDlhNzIiLCJuYW1lIjoiU3RyaWVnZWwifV0sImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiY2xpZW50SG9zdCI6IjE4OC40NC44My40NiIsImNsaWVudElkIjoiU3RyaWVnZWwtY2Fwc3VsZSIsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1zdHJpZWdlbC1jYXBzdWxlQGFya2FuZS5uZXR3b3JrIiwiY2xpZW50QWRkcmVzcyI6IjE4OC40NC44My40NiIsImVtYWlsIjoic2VydmljZS1hY2NvdW50LXN0cmllZ2VsLWNhcHN1bGVAYXJrYW5lLm5ldHdvcmsifQ.VgsaeHDKM7oNwQRxEkXkA2UhhFfkBg-HOnlz_xjE_T9B99Q6P_-JNwgKWXsRFe7ujdJl-OrwJhik8aqzLSGigplkN9HtpksHt9KoKMlM3aoaR8IaWIKSlj8Gly9roxMU20Ts7B2K9OQrdWfyIfCbKI43XMpqWaYMZoz-LqRMKHs09NGXEfVOJhGlB173mOMHgN0ZoKc1ddUlSSE1ES0m4RH08sMs-Wp2pNkvlPFyqXZB1Qnu_KVo4UhHbH4g5ztugCF6wTO71eFHxyJKDJOjiFhjCO-4-Iadx6I9dCg9VGFbNL06B3EUns_niemoLn6kiKyndLaJIugUIl8_gtQ86g'
In Postman, you can add the Bearer token in Authorization tab

Refreshing your access / Bearer token

The access token is valid for 5 minutes. After 5 minutes, you will need to request a new access token. This can be done by performing the same client_credentialscall: Requesting the Bearer token
Do not use the refresh_token as this is deprecated and will be removed in future releases.