Skip to content

Authentication

Basic Authorization Header

The Basic Authorization header tells the API who you are.

  • It contains your clientId and clientSecret, joined with a colon (:) and Base64‑encoded.
  • Always call over HTTPS to keep your credentials safe.
  • Example: Authorization: Basic bXlDbGllbnRJZDpteUNsaWVudFNlY3JldA==

If you have the appropriate access, you can view this information on your dashboard when you log in to the system.: https://online.photo-motion.com/dashboard

IMPORTANT❗️

The clientId used for authorization is NOT the same as the clientId used for other requests. e.g. .../v2/client/{clientId}/products.

To obtain your clients' IDs, see User.

Get access token

request-post
https://api.photo-motion.com/v2/oauth/token

Headers

KeyValue
AuthorizationBasic YOUR_ENCODED_CREDENTIALSRequired
Content-Typemultipart/form-dataRequired

Body

KeyValue
grant_typepasswordRequired
usernameYOUR_USERNAMERequired
passwordYOUR_PASSWORDRequired

Response Example

json
{
  "token_type": "Bearer",
  "expires_in": 86400,
  "access_token": "5kN0uhxMcZnoMSMmPHpTouaDw_BhSXcIH7u9YvDdUW66BIHuby", 
  "refresh_token": "8249b1407395a47aeb637dee54b4d09383e33b057a791324e33c253"
}

Refresh access token

request-post
https://api.photo-motion.com/v2/oauth/token

Headers

KeyValue
AuthorizationBasic YOUR_ENCODED_CREDENTIALSRequired
Content-Typemultipart/form-dataRequired

Body

KeyValue
grant_typerefresh_tokenRequired
refresh_tokenYOUR_REFRESH_TOKENRequired

Response Example

json
{
  "token_type": "Bearer",
  "expires_in": 86400,
  "access_token": "5kN0uhxMcZnoMSMmPHpTouaDw_BhSXcIH7u9YvDdUW66BIHuby", 
  "refresh_token": "8249b1407395a47aeb637dee54b4d09383e33b057a791324e33c253"
}