Skip to main content

Introduction

CELITECH API allows you to integrate mobile data connectivity into your applications, products, or services. This guide will walk you through the essential steps to get started with the API, including a detailed explanation of the authentication process.

Step-by-Step Integration

Step 1: Obtain Your API Credentials

  1. Log in to your CELITECH dashboard.
  2. Navigate to the Developers section on the left.
  3. Click on API Credentials.
  4. Here, you will find your Client ID and Client Secret. Copy them as you will need them for authentication.

CELITECH Dashboard

Step 2: Generate Token

For detailed instructions on generating an access token, please refer to the Authentication guide.

After calling the https://auth.celitech.net/oauth2/token endpoint, you will receive a JSON response that includes the access token. It will look something like this:

{
"access_token": "YOUR_ACCESS_TOKEN",
"token_type": "Bearer",
"expires_in": 3600
}

Copy the value of access_token for use in subsequent requests. Make sure to keep this token secure, as it allows access to protected resources.

Step 3: Purchase an eSIM

Use the following Depending on your choice of programming language, making sure to provide the access token retrieved from the previous step.

curl -i -X POST \
https://api.celitech.net/v1/purchases \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"destination": "FRA",
"dataLimitInGB": 1,
"startDate": "2024-01-01",
"endDate": "2024-01-31"
}'