Create User (signup)

Create a new user account (signup). A user created through this Gateway API is called a Gateway User.

Prerequisites

  • Before calling this API, ensure you have created and activated a Tenant whose appId matches the App-Id header of this request. The correct appId value can be retrieved from the TenantResource returned by the Dashboard API.
  • You must also have created and activated a CREATE_USER type Route whose appRouteId matches the App-Route-Id header, and whose HTTP method and path match those of this request. The correct appRouteId value can be retrieved from the RouteResource returned by the Dashboard API.

Base URL

https://your-gateway-host

Required Headers

App-Id: app-xxxxxxxx
App-Key: key-xxxxxxxx
App-Route-Id: route-xxxxxxxx

Content-Type: application/json

Method and Path

Use the HTTP method and path specified in the activeConfig field of the Route.

Request Body

The usernameType field accepts the following values: ANY, EMAIL.

📘

If usernameType is set to EMAIL, the field is validated to ensure it contains a valid email address.

📘

A user account created through this Gateway API is called a Gateway User.
Password validation is not performed for Gateway Users.
You must validate the password according to your own password requirements before sending it to the Gateway.

{
  "usernameType" : "ANY",
  "username" : "username",
  "password" : "password",
}
{
  "usernameType" : "EMAIL",
  "username" : "[email protected]",
  "password" : "password",
}

Response 200 OK

{
    "confirmationToken": "confirmationToken"
}
📘

The returned confirmationToken must be used with the Confirm User API to complete the account registration.
You can use the token immediately or send it to the user, for example by email as part of a confirmation link, so they can complete the registration themselves.

Request Flow


Did this page help you?