Skip to content

Create a site ​

This Sites operation is available through POST /sites. Use the reference below to inspect its request contract and documented responses before connecting it to your application.

Request preparation ​

Send a POST request to /sites on the appropriate server. Check the API overview for base URL guidance and the server information in the interactive reference. Replace path placeholders with identifiers from the intended account or site; a similarly named record in another workspace is not interchangeable.

No separate path or query parameters are declared for this operation in the current specification. Do not invent filtering or pagination options from another endpoint; use only the contract shown here.

This operation defines a required request body. Documented media types: application/json. Review required fields, nested objects, and allowed values in the request schema. Keep identifiers and field types intact when replacing example data with your own values.

Authentication and scope ​

The specification lists these security alternatives: BearerAuth, AccessToken. Read any operation-specific restrictions as well: browser-session, account-role, and signed-user requirements may impose additional conditions. See authentication before choosing a credential.

Keep credentials in the appropriate private configuration and remove secrets from shared logs. Confirm the target resource belongs to the intended workflow before issuing a request. Authentication alone should not be treated as confirmation that a supplied account, site, or customer identifier is correct.

Response handling ​

The documented responses for Create a site are:

  • 201: Created
  • 403: Site limit reached

Exercise this operation with controlled test data before enabling it in an automated workflow. Validate the request against the schema and inspect the response before updating local state. Do not assume that a successful response means background processing has finished; follow any documented status or follow-up operation when the action queues additional work.

If a connection fails after submission, investigate the current server state before repeating an action whose outcome is uncertain. When requesting support, retain the method, route, response status, and sanitized error message. The interactive reference below provides the detailed schemas and examples for this specific operation.

Create a site​

POST
/sites

Authorizations​

BearerAuth

JWT token from login

Type
HTTP (bearer)
or
AccessToken

Personal access token. Value: Token <your-token>

Type
API Key (header: Authorization)

Request Body​

application/json
JSON
{
  
"name": "string",
  
"color": "string",
  
"website_url": "string",
  
"description": "string"
}

Responses​

Created

application/json
JSON
{
  
"site": "string",
  
"url": {
  
  
"_id": "string",
  
  
"title": "string",
  
  
"url": "string",
  
  
"site": "string",
  
  
"crawl_enabled": true,
  
  
"last_crawled": "string",
  
  
"crawled_pages_count": 0,
  
  
"indexed_pages_count": 0,
  
  
"crawl_frontier_count": 0,
  
  
"crawl_visited_count": 0,
  
  
"crawl_failed_count": 0,
  
  
"crawl_skipped_count": 0,
  
  
"crawl_partial": true,
  
  
"crawl_engine_version": 0,
  
  
"index_health": {
  
  
  
"status": "string",
  
  
  
"indexed_pages_count": 0,
  
  
  
"stored_indexed_pages_count": 0,
  
  
  
"count_mismatch": true,
  
  
  
"queued_pages_count": 0,
  
  
  
"visited_pages_count": 0,
  
  
  
"failed_pages_count": 0,
  
  
  
"skipped_pages_count": 0,
  
  
  
"last_crawled": "string"
  
  
},
  
  
"knowledge_source_type": "auto",
  
  
"knowledge_classification_version": 0,
  
  
"knowledge_classification_state": "string",
  
  
"knowledge_classified_at": "string",
  
  
"host_id": "string",
  
  
"createdAt": "string",
  
  
"updatedAt": "string"
  
},
  
"warnings": [
  
  
{
  
  
  
"code": "string",
  
  
  
"message": "string"
  
  
}
  
]
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI