API
URL
https://api.cartesius.io/<version>/<endpoint>
HTTP requests will automatically be redirected to HTTPS.
Authentication
To use the API, you need an API Key. You can create an API Key by registering at Cartesius. With a paid plan, you can also create multiple API Keys with CORS and IP-Restrictions.
On HTTP API Requests, you can use the API Key in the query parameters with the key apiKey
or you can add it in the request headers with X-API-KEY
. If you use an Integration of Cartesius, please consult the documentation to see how to authenticate your requests.
API Response Model
Rate Limiting
Depending on your plan, you are allowed to send a specific number of requests per day and per second, with a soft (overage is allowed) or hard limit (capped).
If you exceed one of the restrictions, the server will respond with a 429 Too Many Requests
. The following headers will be sent to specify when you can send requests again:
Number of seconds until a request will be allowed again.
Remaining requests, you can send in the current timeframe (second).
Timestamp of the rate limit reset.
Number of requests allowed per second.
CORS
Each API Key can have its own CORS restrictions. Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) apart from its own from which a browser should permit loading resources. You can specify domains for CORS in the Studio. They will be sent as access-control-allow-origin
header.
IP-Restrictions
Next to CORS, each API Key can also have its own IP restrictions. You can manage IPs that are allowed to access the API in the Studio. If an IP tries to call the API, that is not whitelisted, the request will be rejected 401 - Unauthorized
. The requests will not count towards your daily and secondly request limit.
Versioning
Cartesius is currently in beta. We intend to deliver the first stable version (v1) mid-2023.
A new version will always be deployed if there are breaking changes. You will be informed on the new version via email or in the Studio.
Current Versions
beta
https://api.cartesius.io/beta/<endpoint>
Nightly build
v1
Coming mid-2023
Last updated