# API authentication

When accessing the Codefort API you have the option to authenticate in three ways.

# Parameter authentication

You can access the API by adding the two URL parameters key and secret.

Example

https://your-shop.codefort.io/api/rest/orders.json?key={your-api-key}&secret={your-api-secret}

# Header authentication

You can access the API by specifying the following two headers when sending requests to the Codefort API.

Key Value
X-API-KEY {your-api-key}
X-API-SECRET {your-api-secret}

# Admin authentication

When logged in as an admin you can view all the API endpoints by prefixing /admin/ to the URL.

This is not meant to be used with third-party integrations, but gives the developer a quick way to look into the data available in the API right from the browser.

Normal API endpoint
https://your-shop.codefort.io/api/rest/collections.json?limit=2

Admin API endpoint
https://your-shop.codefort.io/admin/api/rest/collections.json?limit=2