- 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.