Skip to main content
POST
/
auth
/
login
Authenticate a partner
curl --request POST \
  --url https://playground.answeringagent.com/api/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "password": "<string>"
}
'
{
  "token": "<string>",
  "user": {
    "id": 123,
    "name": "<string>",
    "email": "<string>",
    "current_team_id": 123,
    "profile_photo_url": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Body

application/json
email
string<email>
required

User's email address

password
string<password>
required

User's password

Response

Successful authentication

token
string

Authentication token for subsequent API requests

user
object