Skip to main content

Authentication

API Token

To authorize, use this code
# with curl, there's no need to authorize separately -- just pass your API token in with every call
curl -X POST -H "Content-Type: application/json" \
-d '{"item_name":"xyz","keywords":["k1","k2"]}' \
-u "[your API token]:" https://ac.cnstrc.com/v1/item
note

Make sure to replace [your API token] with your API token from your dashboard.

You authenticate to the REST API by providing your API token, which you can obtain from your dashboard.

Authentication is done using HTTP Basic Auth. Provide your API token as the basic auth username in every request. You do not need to provide a password. All API requests must be made over HTTPS.

Verification

curl -u "[your API token]:" "https://ac.cnstrc.com/v1/verify?key=[your API key]"

You can verify that authentication works correctly by issuing a simple verification request.

HTTP Request

GET https://ac.cnstrc.com/v1/verify?key=[your API key]