...
Access token is obtained making POST
request to authorization endpoint https://auth.voipex.io/token
. The post body must be formatted useing using x-www-form-urlencoded
.
Parameter | Value |
---|---|
| password |
| api |
| <access_email> |
| <access_password> |
...
POST
request to https://auth.voipex.io/token-exchange
. Access e-mail is e-mail of user for whom the impersonation will be performed. The impersonification can be performed by the user who has impersonation enabled in the api access.
Parameter | Value |
|
---|---|---|
<access_email> | <email/login assigned to a user that you want to impersonate> |
Example
curl --location --request POST 'https://auth.voipex.io/token-exchange' ; \ --header 'Authorization: Bearer eyJhbGeyJhb...' \ --header 'Content-Type: application/json' \ --data-raw '{"email": "access_email<email>"}'
3. Using our API
Access token is provided in Authorization
header with every request in Bearer <access_token>
format. The best way to try our API is to visit the documentation page. Before making requests, copy your token to the input field in topbar (do not forget to add Bearer
before the token).
...