The Photon Commerce API uses API Key, Client_ID and user email to authenticate requests. You can view these credentials on the account page.
Your credentials carry many privileges, so be sure to keep them secure! Do not share your credentials in publicly accessible areas such as GitHub, client-side code, and so forth.
Authentication to the API is performed via HTTP Basic Auth. Provide your credentials in the header. You do not need to provide a password.
All API requests must be made over HTTPS. API requests without authentication will also fail.
curl -H 'Client_ID: your_client_id' -H 'Authorization: apikey your_email:your_api_key'
In case some credentials are missing or are incorrect, the API will return an HTTP 401 Unauthorized Client error.