Authentication
/auth/sign-in
This endpoint returns a user
and a authorization token
.
POST
/
api
/
v1
/
auth
/
sign-in
Copy
curl --location --request POST 'https://api.rapidagent.ai/api/v1/auth/sign-in' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "[email protected]",
"password": "My password"
}'
Copy
{
"success": true,
"data": {
"token": "authorization_bearer_token",
"user": {
"id": "clhj28u1300006ig02ptpm1sh",
"email": "[email protected]",
"name": "Jane Doe",
"createdAt": "2023-05-11T11:42:54.323000+00:00",
"updatedAt": "2023-05-11T11:42:54.323000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
}
}
}
Body
A valid user email.
A valid password
Response
Indicates whether the call was successful.
Object containing the user
and token
.
Show data object
Show data object
Copy
curl --location --request POST 'https://api.rapidagent.ai/api/v1/auth/sign-in' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "[email protected]",
"password": "My password"
}'
Copy
{
"success": true,
"data": {
"token": "authorization_bearer_token",
"user": {
"id": "clhj28u1300006ig02ptpm1sh",
"email": "[email protected]",
"name": "Jane Doe",
"createdAt": "2023-05-11T11:42:54.323000+00:00",
"updatedAt": "2023-05-11T11:42:54.323000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
}
}
}
Copy
curl --location --request POST 'https://api.rapidagent.ai/api/v1/auth/sign-in' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "[email protected]",
"password": "My password"
}'
Copy
{
"success": true,
"data": {
"token": "authorization_bearer_token",
"user": {
"id": "clhj28u1300006ig02ptpm1sh",
"email": "[email protected]",
"name": "Jane Doe",
"createdAt": "2023-05-11T11:42:54.323000+00:00",
"updatedAt": "2023-05-11T11:42:54.323000+00:00",
"deletedAt": null,
"profile": null,
"Agent": null,
"ApiToken": null,
"Document": null
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.