Api::V1::UsersController API

Users

Lookup for a phone number

POST /api/v1/users/lookup

Parameters

Name Description
id Id or 'me'
token token
phone phone

Request

Headers

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

Route

POST /api/v1/users/lookup

Body

{"token":"foobar192","phone":"+33600000191"}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE
Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY
Content-Type: application/json; charset=utf-8
ETag: W/"9e6ae5621f892ac8a98915d398aaa04f"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 4f760855-57a4-497d-8442-1f9453e1229f
X-Runtime: 0.006454
Content-Length: 39

Status

200 OK

Body

{
  "status": "found",
  "secret_type": "code"
}