WhatsApp · Business Agent

List crawled websites

Returns crawled websites.

GEThttps://api.pozy.ai/v1/accounts/{accountId}/business-agent/websites
listBusinessAgentWebsites

Guide: Business AI agent

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the messages resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
accountIdrequiredstring

Example

curl -X GET "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/business-agent/websites" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • websitesarray of objectrequired
    12 child fields
    • urlstring (URL)required
    • included_sub_domainsarray of string
    • included_url_patternsarray of string
    • excluded_sub_domainsarray of string
    • excluded_url_patternsarray of string
    • single_urlsarray of string (URL)
    • idstringrequired
    • crawl_statusstring
    • crawl_errorstring
    • pages_crawledinteger
    • last_crawled_atinteger
    • created_atinteger
200 response
{
  "websites": [
    {
      "url": "https://pozy.ai/media/example-1.jpg",
      "included_sub_domains": [
        "string"
      ],
      "included_url_patterns": [
        "https://pozy.ai/media/example-1.jpg"
      ],
      "excluded_sub_domains": [
        "string"
      ],
      "excluded_url_patterns": [
        "https://pozy.ai/media/example-1.jpg"
      ],
      "single_urls": [
        "https://pozy.ai/media/example-1.jpg"
      ],
      "id": "6bfebd43ddc270f6d2c56fc5",
      "crawl_status": "active",
      "crawl_error": "string",
      "pages_crawled": 1,
      "last_crawled_at": 1,
      "created_at": 1
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Business Agent