Skip to main content

Sign Up

This api for register lumyri account

Admin sign up

This api use for register user as an admin Currently, it only using in website

Endpoint

[POST] /auth/signup/admin

Parameters

  • first_name: required
    • Type: string
  • last_name: required
    • Type: string
  • email: required
    • Type: string
    • Validate: email input must be valid
  • password: required
    • Type: string
    • Validate:
      • More than 8 characters
      • Must contain both uppercase and lowercase
      • Atleast 1 special character
      • Atleast 1 number

Code sample

curl --location --request POST 'https://api-v1-stg.lumyri.com/auth/signup/admin' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "Admin",
"last_name": "Test",
"email": "admin@example.com",
"password": "Password@123"
}'

Response

{
"error": null,
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X2lkIjoiODA1YWZiYjktYzcyMS00ZDFiLTg0NWItYWVkNmVjNWEwY2IyIiwiaXNzIjoiNkttMGxDaW13RWpNdldCTnZvWUQ1UU1URTIydTk4WlIiLCJ1c2VyX2lkIjoiZmIxOWRjZmEtNDg2Mi00ZDNkLTgyYjItMGQ4N2ViYTA1ZGM1In0.smX0CIvb-ML29yQA4Kdd61DiZEj-HX71CuhqI72FPfc",
"user": {
"id": "fb19dcfa-4862-4d3d-82b2-0d87eba05dc5",
"first_name": "Admin",
"last_name": "Test",
"phone": "",
"email": "admin@example.com",
"country": "",
"city": "",
"avatar": "",
"company": {
"id": "805afbb9-c721-4d1b-845b-aed6ec5a0cb2",
"name": "",
"phone": "",
"address": "",
"describe": "",
"email": ""
},
"role": {
"name": "Admin",
"description": "Have full access to platform",
"category": "SYSTEM ROLE",
"permission": {
"platform": {
"applications": { "all": true, "view": true },
"admins": { "all": true, "view": true },
"roles": { "all": true, "view": true },
"billing": { "all": true, "view": true }
},
"application": {
"applications": null,
"tickets": { "all": true, "view": true },
"agents": { "all": true, "view": true },
"customers": { "all": true, "view": true },
"live_map": { "all": true, "view": true },
"labels": { "all": true, "view": true },
"settings": { "all": true, "view": true }
}
}
},
"address": null,
"state": "CARD_NOT_FOUND",
"language": "",
"timezone": "",
"default_app": ""
}
}
}

Customer Signup

This api use for register user as an customer Currently, it only using in customer mobile application

Endpoint

[POST] /auth/signup/admin

Parameters

  • first_name: required
    • Type: string
  • last_name: required
    • Type: string
  • email: required
    • Type: string
    • Validate: email input must be valid
  • password: required
    • Type: string
    • Validate:
      • More than 8 characters
      • Must contain both uppercase and lowercase
      • Atleast 1 special character
      • Atleast 1 number

Code sample

curl --location --request POST 'https://api-v1-stg.lumyri.com/auth/signup/customer' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "Customer",
"last_name": "Test",
"email": "customer@example.com",
"password": "Password@123"
}'

Response

{
"error": null,
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X2lkIjoiIiwiaXNzIjoieXpzVVk0Mk9FUlB0SWZRYUVIV0N5OTcxZXUwWlp6dzQiLCJ1c2VyX2lkIjoiZDBiZjc4MGUtNGIwZi00MDE0LTkyODUtMzA2NTdiMWFkMDExIn0.LVKuEtST3IRYywW86ZZ_scMHH5ZouJa-sGV_FlQBy8w",
"user": {
"id": "d0bf780e-4b0f-4014-9285-30657b1ad011",
"first_name": "Customer",
"last_name": "Test",
"phone": "",
"email": "customer@example.com",
"country": "",
"city": "",
"avatar": "",
"company": {
"id": "",
"name": "",
"phone": "",
"address": "",
"describe": "",
"email": ""
},
"role": {
"name": "Customer",
"description": "",
"category": "SYSTEM ROLE",
"permission": {
"platform": {
"applications": { "all": false, "view": false },
"admins": { "all": false, "view": false },
"roles": { "all": false, "view": false },
"billing": { "all": false, "view": false }
},
"application": {
"applications": null,
"tickets": { "all": false, "view": false },
"agents": { "all": false, "view": false },
"customers": { "all": false, "view": false },
"live_map": { "all": false, "view": false },
"labels": { "all": false, "view": false },
"settings": { "all": false, "view": false }
}
}
},
"address": null,
"state": "ACTIVED",
"language": "",
"timezone": "",
"default_app": ""
}
}
}