POST
/
api
/
v1
/
auth
/
sign-in
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
    }
  }
}

Body

email
string

A valid user email.

password
string

A valid password

Response

success
boolean

Indicates whether the call was successful.

data
object

Object containing the user and 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
    }
  }
}