Users

Sign in user. It returns Authorization header with JWT token.

POST sign in

Endpoint

POST /api/v1/users/sign_in

Parameters

Name Description Boolean
user[login] required Email or phone number
user[password] required User password
user[remember_me] User remember me true

Request

Route

POST /api/v1/users/sign_in

Headers

Accept: application/json
Content-Type: application/json
Host: example.org
Cookie: 

Body

{
  "user": {
    "login": "teodora.mcglynn+operator@example.com",
    "password": "correcT_passw0rd!"
  }
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTQ2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE2LCJleHAiOjE3NjYyMTg0MTYsImp0aSI6IjQ1ODA3YTdjLTdmZDItNGI2Zi1iY2EyLWJmMmE0OTQ3NjdiMCJ9.ly1rn3lXKZ8Ro6xyvz3YgZNmsAHWdKGOzZJ0eQSnYEI
etag: W/"e9827bbcf62c2899e5ade78a7197fe7a"
cache-control: max-age=0, private, must-revalidate
x-request-id: ac42f8d9-683b-4541-a52c-14e77464467b
x-runtime: 0.013761
content-length: 429

Body

{
  "user": {
    "id": 1946,
    "company": {
      "id": 733,
      "address": "Apt. 219 783 Doyle Loop, Port Wiley, SC W0 3AB",
      "country": "GBR",
      "currency": "GBP",
      "license_number": "5999710300",
      "name": "Pacocha Group",
      "state": "verified"
    },
    "contact_phone_number": null,
    "email": "teodora.mcglynn+operator@example.com",
    "financial_company_id": null,
    "first_name": "Teodora",
    "job_position": null,
    "last_name": "McGlynn",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}