younifyd
Menu

Invite

Invite User

POST/users/invite

Use it in a workflow

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

Request

Request body

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

emailstringrequired

Email address of the to-be-invited user.

rolestringrequired

Role of the new user

invite_urlstring (url)

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

json
{
  "email": "string",
  "role": "string",
  "invite_url": "string"
}

Response

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

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

Was this page helpful?