# API - User side
# Documentation

API specification is available in YAML format, and can also be explored here
# Creating a user
We suggest creating in your database-side for each user a 'password' (unique random string). When it's the first time using the platform, a call to create the user on Glooh's side needs to be done:
POST /custom/createUser
{
"user": "<GUID>",
"password": "<Randomly_generated_password>",
"tags":"Array<string>
}
# A note on the tags parameter
By default, if no tag is passed - we consider that it's an ECOOH user that has been created. For GoLive, please pass on the tag: mall_fr
This query will not only register the user, but also login them at the same time. JWT will be returned.
Read all the code and result you will receive in the API specification.
# Generating a JWT token for the user
POST /auth/login
{
user: <GUID>
password: <Randomly_generated_password>
}
← Introduction iFrame →