> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useinvent.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Meta agent website

> Add a site for Meta to crawl. The crawl runs in the background; read the website to follow its status.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json post /orgs/{org_id}/connections/{connection_id}/whatsapp/phone-numbers/{phone_number_id}/meta-agent/websites
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
tags:
  - name: Inbox
  - name: Chats
  - name: Messages
  - name: Contacts
  - name: Custom channels
  - name: Segments
  - name: Suppressions
  - name: Assistants
  - name: Agents
  - name: Skills
  - name: Knowledge
  - name: AI
  - name: Broadcasts
  - name: Email sending
  - name: WhatsApp
  - name: WhatsApp Meta agent
  - name: Tables
  - name: Records
  - name: Views
  - name: Pages
  - name: Connections
  - name: Workspace
  - name: Sub-organizations
  - name: Analytics and logs
  - name: Workflows
paths:
  /orgs/{org_id}/connections/{connection_id}/whatsapp/phone-numbers/{phone_number_id}/meta-agent/websites:
    post:
      tags:
        - WhatsApp Meta agent
      summary: Add Meta agent website
      description: >-
        Add a site for Meta to crawl. The crawl runs in the background; read the
        website to follow its status.
      parameters:
        - schema:
            type: string
          required: true
          description: The ID of the org
          name: org_id
          in: path
        - schema:
            type: string
          required: true
          description: The ID of the connection
          name: connection_id
          in: path
        - schema:
            type: string
          required: true
          description: The ID of the WhatsApp phone number the Meta agent runs on
          name: phone_number_id
          in: path
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveWhatsAppMetaAgentWebsiteSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SaveWhatsAppMetaAgentWebsiteSchema'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsAppMetaAgentWebsiteSchema'
components:
  schemas:
    SaveWhatsAppMetaAgentWebsiteSchema:
      type: object
      properties:
        url:
          type: string
          format: uri
          description: The site to crawl. The whole domain is crawled by default.
        included_sub_domains:
          type: array
          items:
            type: string
            maxLength: 256
          maxItems: 100
        included_url_patterns:
          type: array
          items:
            type: string
            maxLength: 256
          maxItems: 100
        excluded_sub_domains:
          type: array
          items:
            type: string
            maxLength: 256
          maxItems: 100
        excluded_url_patterns:
          type: array
          items:
            type: string
            maxLength: 256
          maxItems: 100
        single_urls:
          type: array
          items:
            type: string
            format: uri
          maxItems: 100
      required:
        - url
    WhatsAppMetaAgentWebsiteSchema:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
        crawl_status:
          $ref: '#/components/schemas/WhatsAppMetaAgentCrawlStatusSchema'
        crawl_error:
          type: string
        pages_crawled:
          type: number
        last_crawled_at:
          type: string
        created_at:
          type: string
        included_sub_domains:
          type: array
          items:
            type: string
        included_url_patterns:
          type: array
          items:
            type: string
        excluded_sub_domains:
          type: array
          items:
            type: string
        excluded_url_patterns:
          type: array
          items:
            type: string
        single_urls:
          type: array
          items:
            type: string
      required:
        - id
        - url
        - crawl_status
    WhatsAppMetaAgentCrawlStatusSchema:
      type: string
      enum:
        - not_started
        - pending
        - in_progress
        - completed
        - completed_no_data
        - failed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````