🧑🤝🧑Create User
Create a new user in the DrugNet system.
Make your first request
To make your first request, send an authenticated request to the drugnet endpoint. This will create a user, which is nice.
Create user.
POST
/create_user
This endpoint allows you to create a new user in the DrugNet System.
Request Body
Name
Type
Description
name*
string
The name of the user
email*
string
The email of the user
phone*
string
The phone of the user
country
string
Source country
{
"status": "success",
"message": "User created successfully",
"user": {
"id": 123,
"name": "John Doe",
"phone": "+233 xx xxx xxxx",
"email": "[email protected]"
}
}
Take a look at how you might call this method using our official libraries, or via curl
:
curl --location '/create_user' \
--header 'x-api-key: YOUR API KEY' \
--form 'name="YOUR NAME"' \
--form 'phone="YOUR PHONE"' \
--form 'email="YOUR EMAIL"'
Example
{
"code": 200,
"success": true,
"message": "User created sucessfully"
}
Last updated