Generate Bearer Token(Id Token)




Example Request





  curl --location 'https://optimus-api.crunchmediaworks.com/v1/customer/auth'   --header 'Content-Type: application/json'   --header 'Accept: application/json'   --data-raw '{
  "username": "youremailid@yopmail.com",
  "password": "Password@123"
  }'
  
  


Example Response

{
    "data": {
    "AuthenticationResult": {
    "AccessToken": "xyz"
    "ExpiresIn": 3600,
    "IdToken": "abcd1234"
    "NewDeviceMetadata": {
    "DeviceGroupKey": "-oeHL8RDA",
    "DeviceKey": "us-east-1_7e22ddef-fe9d-4195-816b-157a1f611d9a"
    },
    "RefreshToken": "xyz"
    "TokenType": "Bearer"
    },
    "ChallengeName": null,
    "ChallengeParameters": {},
    "Session": null
    },
    "message": "Authenticated successfully"
   }

API doc link:





Authentication


Use IdToken generated in previous call in all subsequent calls for authorizations.