logoSellhub
background
Sellhub Docs
Sellhub Docs
Getting Started

All API endpoints require authentication using an API key which can be readily obtained from your store dashboard.

Obtaining an API Key

To obtain an API key:

  1. Log in to your account on our platform
  2. Navigate to the API section in your account settings
  3. Generate a new API key

Keep your API key secure and do not share it publicly.

Using Your API Key

Authorization Header

Do not use Bearer in your Authorization header. The API key should be used as-is.

Include your API key in the Authorization header of each request:

Authorization: your-api-key-here

Example using cURL:

curl -H "Authorization: Basic your-api-key-here" https://dash.sellhub.cx/api/sellhub/customers

The server will use the provided API key to determine the associated store ID internally.

Error Responses

If authentication fails, you will receive a 401 Unauthorized response:

401 Unauthorized
{
  "error": "Unauthorized",
  "message": "Invalid or missing API key"
}

On this page