POST
/
api
/
external
/
v2
/
users
Create a new user
curl --request POST \
  --url https://app.pennylane.com/api/external/v2/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user": {
    "email": "[email protected]",
    "first_name": "John",
    "last_name": "Doe",
    "phone_number": "+33606060606",
    "send_invitation": false
  }
}'
{
  "user": {
    "id": 123,
    "email": "[email protected]",
    "created_at": "2021-01-01T00:00:00Z",
    "updated_at": "2021-01-01T00:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
user
object
required

The user information to create

Response

User was created

user
object
required

The created user