API

Welcome to the CRS API development guide!

Change log

We improve our API regularly. Keep track of recent changes in our changelog.

Endpoints

We have two endpoints. One for our test environment and one for the production environment.

Test
https://test-api.centrop.app/

Production
https://api.centrop.app/

HTTPS And JSON Only

The CRS API is only accessible through HTTPS and requests and responses are always JSON formatted.

Authentication

Using the CRS API requires an API Key. API Keys can be revoked easily and cannot be used to login to the CRS web app. Best security practice is to use a dedicated API Key per application.

The CRS API uses a HTTP Header to authenticate. Add a header called x-api-key and give this the value of your API key.

Example: x-api-key: VZ9SI1th.B6EJhiOQJpeUjE7v9OMb5ClL7NkVFiCd

Pagination

All GET requests are limited to 50 results. You can use the ‘pagesize’ query parameter to get the next 100 results. Like so:

https://api.centrop.app/products?pagesize=100

You can add the page query parameter to this url to go to another page:

https://api.centrop.app/products?pagesize=100&page=4