curl -X POST \
/auth/register \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"email": "",
"password": "********",
"repeatPassword": "********"
}'
{
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ",
"firstName": "John",
"lastName": "Doe",
"email": "jsmith@example.com",
"defaultAccount": "https://example.com/",
"createdAt": "2023-11-07T05:31:56Z",
"confirmToken": "<string>",
"confirmTokenValidUntil": "2023-11-07T05:31:56Z",
"updatedAt": "2021-01-01T00:00:00+00:00",
"confirmed": true,
"userIdentifier": "<string>",
"passwordEqual": true,
"completed": true,
"name": "<string>",
"superAdmin": true,
"passwordRecoveryTokenExpired": true,
"resetPasswordToken": "<string>",
"resetPasswordTokenExpiresAt": "2023-11-07T05:31:56Z"
}
Register a new user
curl -X POST \
/auth/register \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"email": "",
"password": "********",
"repeatPassword": "********"
}'
{
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ",
"firstName": "John",
"lastName": "Doe",
"email": "jsmith@example.com",
"defaultAccount": "https://example.com/",
"createdAt": "2023-11-07T05:31:56Z",
"confirmToken": "<string>",
"confirmTokenValidUntil": "2023-11-07T05:31:56Z",
"updatedAt": "2021-01-01T00:00:00+00:00",
"confirmed": true,
"userIdentifier": "<string>",
"passwordEqual": true,
"completed": true,
"name": "<string>",
"superAdmin": true,
"passwordRecoveryTokenExpired": true,
"resetPasswordToken": "<string>",
"resetPasswordTokenExpiresAt": "2023-11-07T05:31:56Z"
}
Value for the Authorization header parameter.
The new User resource
User resource created
Was this page helpful?