Auth with Roamify API
We are using Bearer Token Authentication for Roamify API. This means that you need to include your Access Token in the Authorization
header of your requests to Roamify API.
Table of Contents
- Auth with Roamify API
- Authentication Flow
- Access Token
- Refresh Token
- Usage - how to use your Access Token
Authentication Flow
- Get Access Token: Retrieve your Access Token (called API Key in the portal) from Roamify Partner Portal .
- Use Access Token: Use the Access Token to make requests to Roamify eSIM API by including it in the
Authorization
header as aBearer
token.
Access Token
Your Access Token is a long-lived token that you can use to make requests to Roamify eSIM API. You never need to refresh it, as it does not expire.
Refresh Token
You can refresh your Access Token in the Roamify Partner Portal, under the API Keys
section. Upon refreshing your Access Token, your old Access Token will be invalidated.
Usage - how to use your Access Token
Here is an example of how you can use your Access Token to make requests to Roamify eSIM API.
curl
curl --request GET \
--url 'https://api-dev.getroamify.com/api/esim/countries?=' \
--header 'Authorization: Bearer {access token here}' \
--header 'Content-Type: application/json' \
Last updated on