|
To access 2c8’s public API, you as a customer need to be running version 2025.2 or newer. At the moment, only reading from the API (GET) is available. Write operations to the APIs will be launched in 2026. Note! 2c8 provides limited support for the implementation of integrations that use the API. All use of the API is at your own risk. |
Documentation
On developer.2c8.com, the public documentation for the API is available via Swagger. All available endpoints are listed there. Note that there is no API behind this public documentation, and therefore no requests can be made through this interface.
However, each customer has their own Swagger instance on their server. Through this instance, you can test retrieving data from the various endpoints.
How do we use our servers API?
Start by creating an API key.
This is done by going to portal.2c8.com and then navigating to the Servers tab. On your server, click the three dots on the far right and select “Configure”. Press CTRL+V / Paste into the Token field. Log in by clicking “Next”.
Once logged in, go to “API Keys” and click “Create API Key”. Give the API key any name you like and set an optional expiration date. Click “Create”. Save the key in a secure location — it is not possible to view an already created API key afterwards.Your server’s Swagger UI is accessible via {your-server-url}/mt-backend (for example, example.2c8.com/mt-backend).
To make requests, you now need to authenticate against the API. Click the “Authorize” button and enter the API key you created.
To retrieve data from an endpoint, open the endpoint and select “Try it out”. Here you can also see any parameters that must be included when performing a GET request.When performing a GET request against an endpoint, it is done from {your-server-url}/mt-backend/v1/{endpoint-name}. The API key must be sent in the header for authentication.
Comments
0 comments
Please sign in to leave a comment.