In this article
Learn how to find, copy and refresh your API key in the Portal so your integration can authenticate its API calls. You'll also learn what happens to the old key when you refresh it and how to send the key in API calls.
Before you start
- Create an account, or log in to your existing account. To use the API your account must be verified; see Create and verify your eSIM Go account.
- Each eSIM Go organisation has a single API key.
- Your API key is displayed once only, when it is generated or refreshed. Copy it and store it locally.
- If you did not store it, refresh it. The old key stops working immediately and there is no grace period, so update every system that uses it.
- Terminology note: older articles call the API key an "API token".
- Admins and Users have the same access to the API page. See Manage users (add and delete).
- Log in at https://portal.esim-go.com/.
Find and copy your API key
- Log in to the Portal.
- Go to Settings > Developer > API.
- Your API key is shown once only, when it is generated or refreshed, so copy it and store it locally at that moment.
- If you did not store it, refresh it using the steps below. Settings > Developer > API is where you refresh the key.
Refresh your API key
Refreshing makes the old key obsolete straight away. Any integration using the old key will stop working until you update it. All users on your account get an email notification when the key is refreshed.
- Log in to the Portal.
- Go to Settings > Developer > API.
- Click Refresh Token under Generate New Token.
- Your new API key is displayed once. Copy it.
- Store the new API key locally. See Cyber security best practices.
Don't forget to update your integration with the new API key.
Tip: Plan a key refresh for a quiet time and update every system that uses the key straight away. The old key stops working immediately, so any integration still using it can't place orders for your customers until you update it.
Use your API key in API calls
The base URL is https://api.esim-go.com/v2.5. Send your API key in an HTTP header called X-API-Key with every call. The header name is case-insensitive. A missing or invalid API key returns 403 Forbidden. See API error troubleshooting. To check your key works, call GET /organisation.
See the v2.5 docs. For a worked example, see Create an eSIM using the API.