> ## 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.

# Upload Meta agent file

> Upload a document for the agent. Files cannot be edited: delete and upload again.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json post /orgs/{org_id}/connections/{connection_id}/whatsapp/phone-numbers/{phone_number_id}/meta-agent/files
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/files:
    post:
      tags:
        - WhatsApp Meta agent
      summary: Upload Meta agent file
      description: >-
        Upload a document for the agent. Files cannot be edited: delete and
        upload again.
      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/UploadWhatsAppMetaAgentFileSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UploadWhatsAppMetaAgentFileSchema'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsAppMetaAgentFileSchema'
components:
  schemas:
    UploadWhatsAppMetaAgentFileSchema:
      type: object
      properties:
        file:
          type: string
          format: binary
          description: >-
            A PDF, DOC, DOCX, PNG or JPG file up to 100 MB. The agent reads it
            when no FAQ matches.
      required:
        - file
    WhatsAppMetaAgentFileSchema:
      type: object
      properties:
        id:
          type: string
        file_name:
          type: string
      required:
        - id
        - file_name
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````