POST - AUTH/TOKEN
The Authentication API is used to generate an access token required to access KloudShip Carrier APIs.
You’ll need your API Key and Secret Key (available in your account dashboard) to request a token.
Endpoint details:
| Method | POST |
|---|---|
| Production Environment URL | https://api.kloudship.com/api/v1/Auth/Token |
| Test Environment URL | https://api-ppd.kloudship.com:960/api/v1/Auth/Token |
| Content-Type | application/json |
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
| apiKey | string | Yes | Your KloudShip API Key |
| secretKey | string | Yes | Your KloudShip Secret Key |
Example:
{
"apiKey": "your_api_key",
"apiSecret": "your_secret_key"
}cURL:
curl --location 'https://api-ppd.kloudship.com:960/api/v1/Auth/Token' \
--header 'Content-Type: application/json' \
--data '{
"apiKey": "your_api_key",
"apiSecret": "your_secret_key"
}'Response:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30"
}Next Steps:
Not Yet Signed Up?
- Get started with KloudShip - This article explains steps like signing up, KYC, and adding balance to your account
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article