# OAuth 2.0 In order to acquire the Bearer Token, OAuth's Password Flow must be used. For that, you have to send the following POST request to the provided OAuth URL, using credentials from the **Fact Sheet** NB! Note different audience for different endpoints. ### Example requests cURL ```curl curl --request POST \ --url 'https://{OAuth_URL}' \ --header 'content-type: application/x-www-form-urlencoded' \ --data grant_type=password \ --data client_id=CLIENT_ID \ --data audience=AUDIENCE \ --data username=USERNAME \ --data password=PASSWORD ``` Node.JS ```javascript var axios = require("axios").default; var options = { method: 'POST', url: 'https://{OAuth_URL}', headers: {'content-type': 'application/x-www-form-urlencoded'}, data: new URLSearchParams({ grant_type: 'password', client_id: 'CLIENT_ID', audience: 'AUDIENCE', username: 'USERNAME' password: 'PASSWORD' }) }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); }); ``` ### Response A successful response would return the following JSON with token ```json { "access_token":"eyJz93a...k4laUWw", "token_type":"Bearer", "expires_in":86400 } ``` Issued Bearer **tokens are valid for 24 hours**, after which you would need to request a new token.