Skip to main content
POST
Add a website to crawl

Request contract

  • Method and path: POST /apis/v1/social/messaging/business-agent/websites
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/messaging/business-agent/websites
  • connectionId: query; required
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

No additional charge for this operation.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

connectionId
string
required

Your messaging connection (msc_...), from GET /apis/v1/social/messaging/connections. On a request with a JSON body it may be sent as a top-level body member instead.

Pattern: ^msc_[0-9A-Za-z]+$

Body

application/json
url
string<uri>
required
connectionId
string

The connection, when not sent as the connectionId query parameter.

Pattern: ^msc_[0-9A-Za-z]+$
excluded_sub_domains
string[]
excluded_url_patterns
string[]
included_sub_domains
string[]
included_url_patterns
string[]

Only URLs containing one of these substrings are ingested.

single_urls
string<uri>[]

Crawl only these exact pages instead of the whole site.

Response

Success

url
string<uri>
required
id
string
required
excluded_sub_domains
string[]
excluded_url_patterns
string[]
included_sub_domains
string[]
included_url_patterns
string[]

Only URLs containing one of these substrings are ingested.

single_urls
string<uri>[]

Crawl only these exact pages instead of the whole site.

crawl_error
string
crawl_status
string

not_started, pending, in_progress, completed, completed_no_data or failed (see crawl_error).

created_at
integer

Unix seconds.

last_crawled_at
integer

Unix seconds.

pages_crawled
integer