Airchains Docs
Search
K
Comment on page

Generate Bearer Token

How to Generate Bearer Token
post
https://api.airchains.technology/authenticate
/auth
Generate Bearer Token

Requesting the Bearer token

Using the Bearer token in the API-calls

In the result of the previous call, an bearerToken is returned. This bearerToken needs to be passed with every API call that you do (as a Bearer token in the authorization header).
curl --location --request GET 'https://api.airchains.technology/wallet/retrieve-all' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcGlLZXkiOiJwa19GNjkzNzQ4NTY5MUJDQkE0RDlBRDFFQkJDODM0NzY4OCIsImFwaVNlY3JldCI6ImExN2EyYjYyMDcwNzA2YTU4NTUyNTAzNmJjMGFjMDhhOjgyNjkxZjNjMWM1ODM2ZDMwNmY4MjM3M2E2NWE5NmYxYTJlZWE4MGZiZGZhOGNiOGFiMTExYjdlNTgwZWI4ZmMwNzllYzFhMDcyYTNhYjhhZWZlNThhYTJjYWM5MmNlZiIsImlhdCI6MTY3Njk4NTAwNCwiZXhwIjoxNjc2OTg2MjA0fQ.0PLI4hOP0c-NVbXEq2QEi2zBhQY0QtcMTSskVLqmLlQ'
In Postman, you can add the Bearer token in Authorization tab