Register a new user
Outcome
Register/Create a new user using this endpoint.
Endpoint
Example Endpoint
- POST /broker/register_user
- Parameters:
email
: Required. Email address of the user (string)first_name
: Required. First name of the user (string)last_name
: Required. Last name of the user (string)country
: Required. Country of the user (string)
- Response:
- 200 OK: A JSON object containing success message
- 500 Internal Server Error: If an error occurs.
- Parameters:
Parameters
Additional required parameter(s)
Authorization
Header: Required for authentication. Should contain a valid JWT token.Content-Type
Header: Should be set toapplication/json
for JSON data.
Example
Curl
curl --location 'https://hub2.trylevel2.com/broker/register_user' \
--header 'Authorization: Bearer [token]' \
--form 'email=""' \
--form 'first_name=""' \
--form 'last_name=""' \
--form 'country=""'