PressOne offers different authentication methods depending on the service:
1.
Obtain your API key from your dashboard
2.
Generate a JWT access token by calling POST /customer/v2/token with your API key
3.
Include the JWT token in the Authorization header for all API requests: Bearer <your_token>
4.
Tokens are valid for 24 hours and can be refreshed using POST /customer/v2/auth/refresh
Example Authentication Flow for Data eSIM:POST /customer/v2/token
Content-Type: application/json
{
"api_key": "your_api_key_here"
}
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 86400
}
1.
PressOne Africa will provide you with an API key
2.
Use the Bearer token authentication method
3.
Add the "Authorization" header to every request: Authorization: Bearer YOUR_API_KEY
4.
Base URL: https://api.pressone.co/
All subsequent API requests must include:Authorization: Bearer YOUR_API_KEY