Skip to Content
API ReferenceAuthentication

Authentication

The Spedisci.online API uses HTTP Bearer token authentication. Include your API token in the Authorization header of every request.

Authorization Header

Authorization: Bearer <your_api_token>

Example Request

curl -X POST https://demo1.spedisci.online/api/v2/shipping/rates \ -H "Authorization: Bearer <your_api_token>" \ -H "Content-Type: application/json" \ -d '{ ... }'

Keep your API token secure. Never expose it in client-side code or public repositories.

Obtaining a Token

To obtain an API token, log into your Spedisci.online  account or contact supporto@spedisci.online.

Error Responses

If authentication fails, the API returns a 401 Unauthorized response. Verify that:

  • The token is included in the Authorization header
  • The token value is correct and has not expired
  • The header format is exactly Bearer <token> (note the space)
Last updated on