Skip to content

Create a user and return a single-use login URL

Request

Security
BearerAuth
Bodyapplication/json

If you need to create a user and automatically generate a login URL.

If accessing via an organisation level token you will need to provide an organisation_group_id in order to indicate which group the user belongs to.

organisation_group_idinteger
Example:1
emailstringrequired
Example:"john.smith@example.org"
first_namestring
Example:"John"
last_namestring
Example:"Smith"
company_namestring
Example:"Parisian Inc"
UIDstring
Example:"ABC123"
metaobject
return_user_detailsboolean

Return the created users details. Only applicable for login url.

Default:false
curl -i -X POST \
  https://propello-cloud.redocly.app/_mock/openapi/v3/user/create/login-url \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "organisation_group_id": 1,
    "email": "john.smith@example.org",
    "first_name": "John",
    "last_name": "Smith",
    "company_name": "Parisian Inc",
    "UID": "ABC123",
    "meta": {
      "sales": 5,
      "location": "London"
    },
    "return_user_details": false
  }'

Responses

OK

Bodyapplication/json
statusinteger
Example:200
timestampstring
Example:"1970-01-30T00:00:00.000000Z"
dataobject
Response
{ "status": 200, "timestamp": "1970-01-30T00:00:00.000000Z", "data": { "login_url": "https://example.yourperx.com/auth-token/BkfEhiym5mvKYSrAp5iQ0YnRTB9mdo3r9kLXe6EuEhTPoAONLNIJ8TNzGerJVwgX", "user": { … } } }