Register User Platform

Client users can register on the client platform apps. During registration, user client can select the auth configuration that will be used for registration and login.

Method : POST

Endpoint URL : https://{hostname}/access/v2/register/app

Header Request

Accept: application/json

Content-Type: application/json

Platform Key : {{platform_key}} Generate from initialization


  • Request Body
{
    "Fullname" : "Audrey Cantika",   #byauthentication
    "Email": "[email protected]",
    "Password": "123123",
    "PasswordConfirmation": "123123",
    "InstallId": "5rt673",
    "DeviceId": "b858f3",
    "DeviceType": "android",
    "Type": "email",
    "DeviceBrand": "xiaomi",
    "DeviceModel": "black shark",
    "Location": "Jakarta",
    "IP": "172.2.2.1"
}

  • Response Body
👍

Success

{
    "Data": {
        "OTPKey": "f5738iud3ca6e7862c426de2ffbcf01c41e96eea25fe809d555a93485da4284ca16219ffc7d5dac5451cf7a1d802ac151f50400a64d7e2a1e30fa4202562852353134bb08e283361885bd4a443c640b8b66e0b41837d4d55b80702be9fce",
        "ResendOTPKey": "5e89252nhkc994db5802d0ebad03ebe528i486abd37f33e2d4cec03636b0f92bd14be4b8e67da252ca9b94a2d25252f7dcd0751dc8ee8cb2aabe437be300fe7eff406e66b001cdb8a6c27ffa01eb3bc018fb91cba06b202480"
    },
    "Message": "register successfully",
    "Code": 200
}

❗️

Error

{
    "Code": 302,
    "Data": {},
    "Message": "Validation, User exist please do login",
}

📘

Registration Status Code


CodeStatusDescription
200OkSuccess register platform
201CreatedUser inactive. System will send OTP code
400Bad RequestInvalid data request
429Too Many RequestSpam request login
500Internal Server ErrorServer down/error