Skip to main content

Authentication

All API requests require authentication using an API key provided by OneTablet technical support.

API Key

Include your API key in the x-api-key header with every request:

curl -H "x-api-key: your-api-key" https://public-api.onetablet.co/api/v1/orders

Example

curl -X GET "https://public-api.onetablet.co/api/v1/orders" \
-H "x-api-key: abc123def456ghi789"

Error Response

If the API key is invalid or missing, you'll receive a 401 Unauthorized response:

{
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized"
}

Getting an API Key

Contact OneTablet technical support to obtain your API key for accessing the Orders API.