Generate your Auth token

Created by KloudShip Support Admin, Modified on Fri, 24 Oct at 7:45 PM by KloudShip Support

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:

MethodPOST
Production Environment URLhttps://api.kloudship.com/api/v1/Auth/Token
Test Environment URLhttps://api-ppd.kloudship.com:960/api/v1/Auth/Token 
Content-Typeapplication/json


Request Body:

FieldTypeRequiredDescription
apiKeystringYesYour KloudShip API Key
secretKeystringYesYour 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:

  • Create Shipment: Create a shipment for your package 


Not Yet Signed Up?

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article