postman.luma.faranex.com Open in urlscan Pro
54.209.161.111  Public Scan

URL: https://postman.luma.faranex.com/
Submission: On June 19 via automatic, source certstream-suspicious — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

 * Body
 * Headers (9)

 * Body
 * Headers (9)

 * Body
 * Headers (9)

 * Body
 * Headers (0)




Public


Documentation Settings

ENVIRONMENT
Beta

LAYOUT
Double Column

LANGUAGE
cURL - cURL



Luma
Introduction
Admin


LUMA



ADMIN


AUTH




POSTLOGIN

https://api.luma.faranex.com/admin/v1/login
PARAMS

Bodyformdata
email

root@luma.com

password

password

Example Request
Login

curl


curl --location 'https://api.luma.faranex.com/admin/v1/login' \
--form 'email="root@luma.com"' \
--form 'password="password"'

200 OK
Example Response
 * Body
 * Headers (9)

View More
json


{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwaS5sdW1hLmZhcmFuZXguY29tL2FkbWluL3YxL2xvZ2luIiwiaWF0IjoxNzE4Nzk1MjU2LCJleHAiOjE3MTg3OTg4NTYsIm5iZiI6MTcxODc5NTI1NiwianRpIjoiVkdTdzRoN2tqMk95WUY5aiIsInN1YiI6IjEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.cBQQ5EjHytB2kRUYdcZJMUkmnKxL13wuyw6zl5Mgino",
  "otp": "409413"
}

Server

nginx/1.18.0 (Ubuntu)

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

Cache-Control

no-cache, private

Date

Wed, 19 Jun 2024 11:07:36 GMT

X-Frame-Options

SAMEORIGIN

X-Content-Type-Options

nosniff

Service-Worker-Allowed

/


POSTVERIFY OTP


https://api.luma.faranex.com/admin/v1/verify-otp
AUTHORIZATIONBearer Token
Token

Bodyformdata
otp

123

Example Request
Verify OTP

curl


curl --location 'https://api.luma.faranex.com/admin/v1/verify-otp' \
--form 'otp="123"'

200 OK
Example Response
 * Body
 * Headers (9)

json


{
  "message": "Otp verified"
}

Server

nginx/1.18.0 (Ubuntu)

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

Cache-Control

no-cache, private

Date

Wed, 19 Jun 2024 11:07:44 GMT

X-Frame-Options

SAMEORIGIN

X-Content-Type-Options

nosniff

Service-Worker-Allowed

/

USERS

AUTHORIZATIONBearer Token
Token




GETLIST USERS


https://api.luma.faranex.com/admin/v1/users
AUTHORIZATIONBearer Token
This request is using Bearer Token from folderUsers
Example Request
List Users

curl


curl --location 'https://api.luma.faranex.com/admin/v1/users'

200 OK
Example Response
 * Body
 * Headers (9)

View More
json


{
  "result": [
    {
      "id": 1,
      "name": "Root",
      "email": "root@luma.com",
      "role": "root",
      "phone": "09121231212",
      "company_id": null,
      "created_at": "2024-06-19T10:29:14.000000Z",
      "updated_at": "2024-06-19T10:29:14.000000Z"
    }
  ],
  "message": "The operation was successful",
  "success": true,
  "pagination": {
    "page": 1,
    "per_page": 15,
    "count": 1,
    "total_count": 1
  }
}

Server

nginx/1.18.0 (Ubuntu)

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

Cache-Control

no-cache, private

Date

Wed, 19 Jun 2024 11:13:27 GMT

X-Frame-Options

SAMEORIGIN

X-Content-Type-Options

nosniff

Service-Worker-Allowed

/


POSTCREATE USER


https://api.luma.faranex.com/admin/v1/users
AUTHORIZATIONBearer Token
This request is using Bearer Token from folderUsers
Bodyraw (json)
json


{
  "name": "New User",
  "email": "test@test.com",
  "password": "password",
  "phone": "1234567890",
  "role": "admin",
  "company_id": 1
}

Example Request
Create User

curl


curl --location 'https://api.luma.faranex.com/admin/v1/users' \
--data-raw '{
  "name": "New User",
  "email": "test@test.com",
  "password": "password",
  "phone": "1234567890",
  "role": "admin",
  "company_id": 1
}'

Example Response
 * Body
 * Headers (0)

No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
COMPANIES (ROOT ONLY)

AUTHORIZATIONBearer Token
Token