Creating or Find a User

Endpoint

POST /api/:partner/users/create-or-find

When requesting this URL replace :partner with your specific partner tag, which you will receive when onboarded with Rampp. This tag must match the one provided to you by Mintplex.

{
    headers: "Authorization <USER_ETH_ADDRESS_ALL_LOWERCASE>",
    body: JSON.stringify({}),
}

You will then be returned a response like

200 OK

{
    "user": {
        "uid": "Mintplex_UID",
        "addresses": ["ETH_ADDRESS"],
        "createdAt": {
            "_seconds": 1657824893,
            "_nanoseconds": 764000000
        },
        ...other details
    }
}

400 BAD

{
    "status": false,
    "message": "invalid params",
    "user": null
}

Last updated