Skip to main content
API Reference/Authentication

Authentication

The Sellvy API uses API keys to authenticate requests. You can manage your API keys from your dashboard under Settings → API Keys.

Base URL

https://api.sellvy.io/v1

All API endpoints are relative to this base URL. All requests must be made over HTTPS.

API key types

Sellvy provides two types of API keys for different environments:

Key PrefixEnvironmentDescription
sk_live_ProductionUse for live transactions. Creates real orders and charges real money.
sk_test_SandboxUse for development and testing. No real charges are made.

Warning: Keep your API keys secret. Never expose them in client-side code, public repositories, or frontend bundles. Use environment variables on your server.

Header format

Include your API key in the Authorization header as a Bearer token:

const response = await fetch("https://api.sellvy.io/v1/products", {
  method: "GET",
  headers: {
    "Authorization": "Bearer sk_live_your_api_key",
    "Content-Type": "application/json"
  }
});

const data = await response.json();

Error responses

If authentication fails, the API returns one of the following:

StatusErrorMeaning
401unauthorizedNo API key provided or the key is invalid.
403forbiddenThe API key does not have permission for this resource.

Rate limits

API rate limits vary by plan. Exceeding the limit returns a 429 Too Many Requests response with a Retry-After header.

PlanRequests / minuteRequests / day
Free605,000
Pro30050,000
Business1,000Unlimited
Was this page helpful?