Authentication Endpoint

This endpoint will consume your Other API requests quota in your subscription.

This endpoint allows you to authenticate and gets an AUTHORIZATION_TOKEN to use for other requests :

Endpoint: POST https://core.bryj.ai/users/sign_in.json

Parameters using JSON body:

PropertyTypeDescriptionDefault
user[email]StringThe user’s e-mailrequired
user[password]StringThe user’s e-mailrequired

Example:

{
   "user":{
      "email":"user@bryj.ai",
      "password":"userpassword"
   }
}

Response:

For successful requests, you get an authorization bearer token in the header of the request, and a JSON message containing some user’s attributes :

Response Headers
Date: Wed, 18 May 2022 14:45:18 GMT
.
.
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJiOTc2OTJjZi0xZmYxLTRkYzEtOWM5Ni01ZDI3MGM3MGZiYTkiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE2NTI4NjcxMTgsImV4cCI6MTY1Mjg3MDcxOCwianRpIjoiYzllM2ZhY2ItNTkyYS00OTg0LTlkNmUtNjQ4YTg1ODljOWRkIn0.G1-_rGmWnjM7zqJcMQqzPWQH-enqRvLCKaiCe9XYM4k
.
.
PropertyTypeDescription
userObjectAn object containing more information around the authenticated user.
The Authorization header must be added to all bryj API calls with the obtained value Bearer XXXXXXXX.
  • Status OK: 200
{
   "user":{
      "email":"user@bryj.ai",
      "password":"userpassword"
   }
}
  • Status KO : HTTP_RESPONSE_ERROR_CODE (ERROR)
{
  "error_message": “ERROR_MESSAGE”
}