Skip to main content
GET
/
api
/
v1
/
phone-numbers
/
by-agent
Phone numbers grouped by agent
curl --request GET \
  --url https://{subdomain}.mihu.ai/api/v1/phone-numbers/by-agent \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": [
    {
      "agent_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "channels": [
        "call"
      ],
      "phone_numbers": [
        {
          "phone_number": "<string>",
          "phone_number_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "source": "purchased",
          "channels": [
            "call"
          ]
        }
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Query Parameters

Filter by phone number or agent name (case-insensitive substring).

Response

200 - application/json

Success

success
boolean

Indicates whether the request completed successfully. True for successful responses; false for documented error responses.

message
string

Human-readable response message. Safe to display in logs or simple client notifications; use structured fields for program logic.

data
object[]

One row per agent. Agents with no phone numbers configured are omitted.