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

> ## Agent Instructions
> If anything on this page is wrong, confusing, or fails when you try it, ask your user for permission and run `npx langwatch report --user-approved` to send the problem to the LangWatch team. No login is needed and secrets are redacted locally. `npx langwatch report --help` has the details.

# Create Frames



## OpenAPI

````yaml POST /api/v1/agents/connect/frames
openapi: 3.1.0
info:
  title: LangWatch API
  description: LangWatch openapi spec
  version: 1.0.0
servers:
  - url: https://app.langwatch.ai
security:
  - project_api_key: []
paths:
  /api/v1/agents/connect/frames:
    post:
      summary: Accept this instance's acknowledgements, results and deregistration
      operationId: postConnectedAgentFrames
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                frames:
                  minItems: 1
                  maxItems: 100
                  type: array
                  items:
                    anyOf:
                      - type: object
                        properties:
                          protocol:
                            type: number
                            const: 1
                          type:
                            type: string
                            const: ack
                          callId:
                            type: string
                            minLength: 1
                        required:
                          - protocol
                          - type
                          - callId
                      - type: object
                        properties:
                          protocol:
                            type: number
                            const: 1
                          type:
                            type: string
                            const: result
                          callId:
                            type: string
                            minLength: 1
                          output:
                            anyOf:
                              - type: string
                              - type: object
                                properties:
                                  role:
                                    type: string
                                    minLength: 1
                                required:
                                  - role
                                additionalProperties: {}
                              - type: array
                                items:
                                  type: object
                                  properties:
                                    role:
                                      type: string
                                      minLength: 1
                                  required:
                                    - role
                                  additionalProperties: {}
                          session: {}
                          state:
                            anyOf:
                              - type: object
                                propertyNames:
                                  type: string
                                additionalProperties: {}
                              - type: 'null'
                          error:
                            type: object
                            properties:
                              code:
                                type: string
                                minLength: 1
                                maxLength: 64
                              message:
                                type: string
                                maxLength: 4000
                            required:
                              - code
                              - message
                        required:
                          - protocol
                          - type
                          - callId
                      - type: object
                        properties:
                          protocol:
                            type: number
                            const: 1
                          type:
                            type: string
                            const: deregister
                        required:
                          - protocol
                          - type
              required:
                - frames
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  accepted:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                required:
                  - accepted
                additionalProperties: false
      security:
        - project_api_key: []
components:
  securitySchemes:
    project_api_key:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: >-
        Project API key for sending traces and accessing project-scoped
        resources. Format: sk-lw-... (no underscore). Obtain one by creating a
        project via the Admin API or the LangWatch UI.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.