Skip to main content
POST
/
auth
/
login
cURL
curl --request POST \
  --url https://app.closerx.ai/api/auth/login/ \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "email": "[email protected]",
  "password": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "user": {
      "id": 123,
      "email": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "profile_picture": "<string>",
      "contact_number": "<string>",
      "email_verified": true,
      "companies": {
        "user_type": "<string>",
        "company_id": 123,
        "company_name": "<string>",
        "company_name_view": "<string>"
      },
      "access_token": "<string>",
      "refresh_token": "<string>",
      "is_superadmin": true,
      "agent_exists": true,
      "subscription_status": "<string>",
      "is_suspended": true,
      "ghl_connected": true,
      "term_condition_excepted": true,
      "twilio_type": "<string>",
      "salesforce_connected": true,
      "snowie_connected": true,
      "telnyx_connected": true,
      "spreadsheet_connected": true,
      "login_domain": "<string>"
    }
  }
}

Authorizations

api_key
string
header
required

Body

application/json

Login Credentials

email
string<email>
required

User's email address

password
string<password>
required

User's password

Response

Login response

success
boolean
required

Indicates whether the login was successful

message
string
required

Message describing the result of the login request

data
object
required