younifyd
Menu

Register User

Register a new User

POST/users/register

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Register User action (under Users).
  3. Fill in the fields below, then reference the result from later steps as {{registerUser.response.data}}.

Request

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

Request body

Enter the body as JSON in the step's Body field.

emailstringrequired

Email for the new user.

passwordstringrequired

Password for the new user.

first_namestring

First name for the new user.

last_namestring

Last name for the new user.

verification_urlstring

Provide a custom verification url which the link in the email will lead to. The verification token will be passed as a parameter. Note: You need to configure the USER_REGISTER_URL_ALLOW_LIST environment variable to enable this feature.

json
{
  "email": "string",
  "password": "string",
  "first_name": "string",
  "last_name": "string",
  "verification_url": "string"
}

Response

Returns 204 with a any. Read it in later steps with {{registerUser.response.data.<field>}}.

Need more? See the Directus guide for connection setup and behaviour shared by every action.