Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
The user information to create
Response
User was created
The created 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"
}
}
Creates a new user. In order to authenticate the request, a valid
OAuth2 token must be provided. The token must be generated
with client_credentials
grant type.
The token must have the following scopes:
users
capital_deposits
OR companies:all
ℹ️ This endpoint requires one of the following scopes:
users
,capital_deposits
,companies:all
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"
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
The user information to create
Show child attributes
User was created
The created user
Show child attributes
Was this page helpful?