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"
}'
{
"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
}
}
}
This endpoint returns a user
and a authorization token
.
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"
}'
{
"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
}
}
}
user
and token
.Show data object
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"
}'
{
"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
}
}
}