Authentication
/auth/sign-up
Authentication
/auth/sign-up
This endpoint creates a new user
.
POST
/
api
/
v1
/
auth
/
sign-up
curl --location --request POST 'https://api.rapidagent.ai/api/v1/auth/sign-up' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Jane Doe",
"email": "[email protected]",
"password": "My password"
}'
{
"success": true,
"data": {
"user": {
"id": "clhqo2uql00026i1eeegxkzpw",
"email": "[email protected]",
"password": "$2b$12$KhnsvpK0S5hfHa5KSEGLOuy8g2tkRXnB5tEQukMugKXQHOFoIT9ga",
"name": "Jane Doe",
"createdAt": "2023-05-16T19:28:30.089000+00:00",
"updatedAt": "2023-05-16T19:28:30.089000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
}
}
}
Body
The name of the user.
A valid user email.
A valid password
Response
Indicates whether the call was successful.
Object containing the user
.
The authenticated user as an object.
curl --location --request POST 'https://api.rapidagent.ai/api/v1/auth/sign-up' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Jane Doe",
"email": "[email protected]",
"password": "My password"
}'
{
"success": true,
"data": {
"user": {
"id": "clhqo2uql00026i1eeegxkzpw",
"email": "[email protected]",
"password": "$2b$12$KhnsvpK0S5hfHa5KSEGLOuy8g2tkRXnB5tEQukMugKXQHOFoIT9ga",
"name": "Jane Doe",
"createdAt": "2023-05-16T19:28:30.089000+00:00",
"updatedAt": "2023-05-16T19:28:30.089000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
}
}
}
curl --location --request POST 'https://api.rapidagent.ai/api/v1/auth/sign-up' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Jane Doe",
"email": "[email protected]",
"password": "My password"
}'
{
"success": true,
"data": {
"user": {
"id": "clhqo2uql00026i1eeegxkzpw",
"email": "[email protected]",
"password": "$2b$12$KhnsvpK0S5hfHa5KSEGLOuy8g2tkRXnB5tEQukMugKXQHOFoIT9ga",
"name": "Jane Doe",
"createdAt": "2023-05-16T19:28:30.089000+00:00",
"updatedAt": "2023-05-16T19:28:30.089000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
}
}
}