This reference provides precise specifications for authenticating API requests. All requests to the Quivo API require authentication using a session token. This ensures that only authorized users can access your account data and perform operations on your behalf. For step-by-step instructions, see the Make your first API call tutorial. The authentication process consists of the following steps:Documentation Index
Fetch the complete documentation index at: https://api-docs.quivo.co/llms.txt
Use this file to discover all available pages before exploring further.
- Obtaining a session token: Exchange your API credentials—API key, username, and password—for a temporary session token via the
POST /loginendpoint. - Using the token: Include the session token in the
Authorizationheader of all subsequent API requests.
Session tokens expire after one hour. When they expire, refresh them. See the Token expiration section below for handling token refresh automatically.
Prerequisites
Before you start, make sure you have the following:- Static API Key: Your static API key provided by Quivo. You can retrieve it from the Quivo Dashboard
- Username: Your Quivo account username
- Password: Your Quivo account password
All API examples in this reference use
${BASE_URL} as a placeholder. Replace it with the correct base URL configured for the correct environment. For more information see Environments page.Obtain a session token
Exchange your credentials for a session token via thePOST /login endpoint. Replace the placeholders with your actual data.
- Request
- Response
Use this request to exchange your credentials for a session token:
Use the token in requests
Include the token in theAuthorization header of all API requests. You must also include your API key in the X-Api-Key header. The following example shows how to make an authenticated request using the GET /orders endpoint. Replace the placeholders with your actual data.
- Request
- Response
Use this request example to make an authenticated API call with your session token:
Token expiration
Session tokens expire after 1 hour. When a token expires, you receive a401 Unauthorized error response.
Handling token expiration
When you receive a 401 error, your integration should automatically:- Retry authentication: Call the
POST /loginendpoint again to obtain a new token - Retry the original request: Use the new token to retry the request that failed
Where to go next
Now that you understand authentication, continue with these guides:Create a Fulfillment Order
Start the fulfillment process by creating orders for your customers.
Send Inventory
Send your products to Quivo warehouses to make them available for fulfillment.