GET /bots/profiles

Get detailed profiles of available WhatsApp AI bots.

Responses

  • 200 application/json

    Bot profiles retrieved successfully

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • data array[object]
      Hide data attributes Show data attributes object
      • jid string
      • name string
      • description string
      • persona_id string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
GET /bots/profiles
curl \
 --request GET 'http://localhost:7001/bots/profiles' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "code": 200,
  "data": [
    {
      "jid": "13135550100@s.whatsapp.net",
      "name": "Meta AI",
      "persona_id": "meta_ai_v1",
      "description": "AI assistant powered by Meta"
    }
  ],
  "status": true,
  "message": "Bot profiles retrieved successfully"
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Bot profiles retrieved successfully",
  "data": [
    {
      "jid": "13135550100@s.whatsapp.net",
      "name": "Meta AI",
      "description": "AI assistant powered by Meta",
      "persona_id": "meta_ai_v1"
    }
  ]
}
Response examples (401)
{
  "code": 401,
  "error": "Invalid or expired JWT token",
  "status": false,
  "message": "Unauthorized"
}
Response examples (401)
{
  "status": false,
  "code": 401,
  "message": "Unauthorized",
  "error": "Invalid or missing authentication"
}
Response examples (500)
{
  "code": 500,
  "error": "Failed to retrieve bot profiles",
  "status": false,
  "message": "Internal server error"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}