Authentication

Two industry-standard methods of authorization are supported for the Photon Commerce API: Bearer authentication and query parameter authentication. All API requests are made over HTTPS.

get
Get your API key

https://api.photoncommerce.com/signin/
Retrieve your developer API key to start sending tasks and receiving data
Request
Response
Request
Form Data Parameters
email
required
string
Your email account
password
required
string
Your account password
Response
200: OK
You will receive this response on a successful login
{
"token": "your_api_key"
}

Bearer authentication

When making an HTTP request to the API, include a key value pair in your header in the form of: Authorization: Bearer YOUR_API_KEY

curl https://api.photoncommerce.com/ \
-H "Authorization: Bearer your_api_key"

Query parameter authentication

When making an HTTP request to the API, include an api_key key in your URL query parameters that has your API key as the value

curl https://api.photoncommerce.com\?api_key\=your_api_key