Shiprocket's API at https://apiv2.shiprocket.in/v1/external books and tracks shipments across Indian couriers. First log in with an API user to get a token.
Create an API user under Settings → API → Configure in Shiprocket. The login call returns a token (valid 10 days) that the other calls send as a Bearer token, written {{SHIPROCKET_TOKEN}}.
Full reference: https://apidocs.shiprocket.in/
curl -X POST https://apiv2.shiprocket.in/v1/external/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "{{SHIPROCKET_EMAIL}}", "password": "{{SHIPROCKET_PASSWORD}}"}'
curl https://apiv2.shiprocket.in/v1/external/courier/track/awb/{{AWB_CODE}} \
-H "Authorization: Bearer {{SHIPROCKET_TOKEN}}"
Pincodes, weight in kg, cod 1 for cash on delivery.
curl "https://apiv2.shiprocket.in/v1/external/courier/serviceability/?pickup_postcode=110030&delivery_postcode=560001&weight=0.5&cod=0" \
-H "Authorization: Bearer {{SHIPROCKET_TOKEN}}"