Skip to main content

Overview

API

Easily integrate your system to the platform, you may handle the following resources:

Authentication

Before using the API you need to generate a token, following the next steps:

  1. In your store, go to Dashboard > Settings > Integrations
  2. In the first section of the panel, API Integration Key. Click on the button Generate new key to generate you api key.
  3. Copy it and use it with your integration.
note

Keys can be generated per admin user.

Flood Protection with Rate Limiter

To prevent malicious usage, protect the platform from resource exhaustion and ensure all API users receive a great service we implement a number of rate limiting techniques. The standard base rate limiter provides information regarding remaining requests in the current time frame through the usage of the follow headers:

Header NameHeader Description
X-RateLimit-Limitwill let you know the total number of allowed requests per minute. This number will depend on the API endpoint in question, authentication mechanism being used and customer's plan level.
X-RateLimit-Remainingwill let you know how many requests are left in the current time frame.
X-RateLimit-ResetIt will let you know when the limits will be renewed. Shown as UNIX timestamp.
note

X-RateLimit-Reset will be available once the Limit has been exhausted

# Example with the default rate limit of 100

HTTP/1.1 200 OK
Content-Type: application/json
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 100
X-RateLimit-Reset: 1666897200

# After another request:
HTTP/1.1 200 OK
Content-Type: application/json
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 99
X-RateLimit-Reset: 1666897200

# After window resets
HTTP/1.1 200 OK
Content-Type: application/json
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 100
X-RateLimit-Reset: 1666897260

# If you make more than the allowed requests
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1666897320