Authentication Endpoint

Retrieve your token

This endpoint will not consume your API requests quota in your subscription upon successful login.

This endpoint allows you to authenticate and get your token to use for other requests :

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

Headers:

HeaderValue
Acceptapplication/json
Content-Typeapplication/json

Parameters using JSON body:

PropertyTypeDescriptionDefault
user[email]StringThe user’s e-mailrequired
user[password]StringThe user’s e-mailrequired
{
   "user":{
      "email":"user@bryj.ai",
      "password":"userpassword"
   }
}

Response:

  • Status OK: 200

For successful requests, you get an authorization bearer token in the header of the request. See an example ran in Postman below, the token is located in the Authorization header.

Then an Authorization key must be added to your headers in your next calls requiring authorization (campaign sending, retrieving stats…) headers. You can copy paste the exact output of the previous header’s response Bearer <YOUR_TOKEN> . See an example below of the added header:

Appendix

Authentication example cURL

curl --request POST 'https://core.bryj.ai/users/sign_in.json' \
--header 'Content-Type: application/json' \
--data-raw '{
   "user":{
      "email":"YOUR_EMAIL",
      "password":"YOUR_PASSWORD"
   }
}'

Authentication example using POSTMAN

Headers:

Body:

Response: