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

# Create an agent

> Create an agent from instructions, a template, or another agent. sourceAgentId cannot be combined with other fields. Template creation accepts only templateName, name, and triggers; creation from scratch requires name.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public post /v1/agents
openapi: 3.1.0
info:
  title: Tembo Public API
  description: >-
    Manage agents, sessions, repositories, and organization resources with the
    Tembo API.
  version: 1.0.0
servers:
  - url: https://api.tembo.io
    description: Tembo API
  - url: https://{deployment-origin}/api/public-api
    description: Self-hosted Tembo
    variables:
      deployment-origin:
        default: tembo.example.com
        description: Hostname of your self-hosted Tembo deployment
security: []
paths:
  /v1/agents:
    post:
      tags:
        - Agents
      summary: Create an agent
      description: >-
        Create an agent from instructions, a template, or another agent.
        sourceAgentId cannot be combined with other fields. Template creation
        accepts only templateName, name, and triggers; creation from scratch
        requires name.
      operationId: createAgent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: Agent display name. Required when creating from scratch.
                  type: string
                  minLength: 1
                  maxLength: 200
                instructions:
                  $ref: '#/components/schemas/TipTapDocument'
                  description: >-
                    Instructions for the agent as a rich-text document. Mentions
                    can reference integrations used by the agent.
                mcpServers:
                  description: MCP server or connection IDs available to agent runs.
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 200
                agent:
                  description: >-
                    Coding agent and model key used for runs. Omit to use the
                    default.
                  type: string
                  minLength: 1
                  maxLength: 200
                agentOptions:
                  $ref: '#/components/schemas/AgentOptionsInput'
                  description: Agent-specific runtime options, such as reasoning effort.
                sandboxSize:
                  description: Workspace VM size used for agent runs.
                  anyOf:
                    - type: string
                      enum:
                        - nano
                        - micro
                        - medium
                        - large
                        - xl
                        - xxl
                        - ultra
                    - type: 'null'
                projectId:
                  description: Project environment used for agent runs.
                  anyOf:
                    - type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    - type: string
                      const: tembo
                    - type: 'null'
                artifactType:
                  description: Artifact type produced by this agent.
                  anyOf:
                    - type: string
                      enum:
                        - PullRequest
                        - ToolCall
                        - Plan
                        - Response
                        - File
                        - Service
                        - Source
                    - type: 'null'
                repositoryIds:
                  description: Repository IDs available to agent runs.
                  maxItems: 250
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                triggers:
                  description: Integration events that automatically start agent runs.
                  maxItems: 50
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                        maxLength: 200
                        description: >-
                          Integration event name. Use listIntegrationTriggers to
                          discover supported triggers.
                      integrationType:
                        description: >-
                          Provider type for the trigger, such as github or
                          slack.
                        type: string
                        minLength: 1
                        maxLength: 100
                      integrationId:
                        description: Connected integration that supplies trigger events.
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      filters:
                        $ref: '#/components/schemas/TriggerFilters'
                        description: >-
                          Event-specific trigger filters. Use
                          retrieveIntegrationTrigger and
                          listIntegrationTriggerFilterOptions to discover
                          supported fields and values.
                    required:
                      - name
                    additionalProperties: false
                schedules:
                  description: >-
                    Recurring cron schedules that automatically start agent
                    runs.
                  maxItems: 50
                  type: array
                  items:
                    type: object
                    properties:
                      cron:
                        type: string
                        minLength: 1
                        maxLength: 500
                        description: >-
                          Cron expression for recurring agent runs. Agent
                          enabled and archived state controls whether the
                          schedule runs.
                    required:
                      - cron
                    additionalProperties: false
                templateName:
                  description: >-
                    Create from a template discovered with listAgentTemplates.
                    Only name and triggers may also be supplied.
                  type: string
                  enum:
                    - addTestCoverage
                    - addTestCoverageFromJira
                    - autoAgentsMdMaintainer
                    - autoDocsMaintainer
                    - publicApiReleaseMaintainer
                    - commitOfTheDay
                    - customerHealthMonitoringAgent
                    - deadCodeCleanup
                    - dependencySweepAgent
                    - autoFixCi
                    - autoFixSentryError
                    - dailySlackChangelog
                    - duplicateTicketDetector
                    - fixBugsReportedInSlack
                    - enrichGithubIssue
                    - enrichJiraIssue
                    - enrichLinearIssue
                    - hubspotCallTaskCoach
                    - hubspotEmailTaskDrafter
                    - hubspotTicketToLinearBug
                    - prDescription
                    - prReview
                    - pagePerformanceReport
                    - prioritizeSentry
                    - productFaqAgent
                    - productFinanceAgent
                    - queryPerformanceReport
                    - securityFixFromJira
                    - securityScan
                    - skillProgressionMap
                    - slackChannelListener
                    - slopCop
                    - testAudit
                    - staleCodeComments
                    - stalePullRequestNotifier
                    - summarizeChangesDaily
                    - triageNewJiraBug
                sourceAgentId:
                  description: >-
                    Duplicate an existing agent. Must be the only field; cannot
                    be combined with templateName or overrides.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              additionalProperties: false
              minProperties: 1
      responses:
        '201':
          description: Create an agent
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  name:
                    type: string
                  key:
                    type:
                      - string
                      - 'null'
                  sandboxSize:
                    anyOf:
                      - type: string
                        enum:
                          - nano
                          - micro
                          - small
                          - medium
                          - large
                          - xl
                          - xxl
                          - ultra
                      - type: 'null'
                  projectId:
                    type:
                      - string
                      - 'null'
                  templateId:
                    type:
                      - string
                      - 'null'
                  contentVersion:
                    default: 1
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  script:
                    type:
                      - string
                      - 'null'
                  artifactType:
                    anyOf:
                      - type: string
                        enum:
                          - PullRequest
                          - ToolCall
                          - Plan
                          - Response
                          - File
                          - Service
                          - Source
                      - type: 'null'
                  createdAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                  updatedAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                  archivedAt:
                    anyOf:
                      - type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                      - type: 'null'
                  enabledAt:
                    anyOf:
                      - type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                      - type: 'null'
                  organizationId:
                    anyOf:
                      - type: string
                        minLength: 1
                        maxLength: 255
                      - type: 'null'
                  organizationName:
                    type:
                      - string
                      - 'null'
                  createdBy:
                    type:
                      - string
                      - 'null'
                  instructions:
                    anyOf:
                      - $ref: '#/components/schemas/TipTapDocument'
                        description: >-
                          Instructions for the agent as a rich-text document.
                          Mentions can reference integrations used by the agent.
                      - type: 'null'
                  agent:
                    description: >-
                      Runtime and model selection key; not the ID of an agent
                      resource.
                    type:
                      - string
                      - 'null'
                  agentOptions:
                    $ref: '#/components/schemas/AgentOptionsInput'
                  mcpServers:
                    maxItems: 100
                    type: array
                    items:
                      type: string
                      minLength: 1
                      maxLength: 200
                    description: >-
                      Selected MCP server identifiers, including built-in server
                      keys.
                  userState:
                    anyOf:
                      - $ref: '#/components/schemas/AgentState'
                      - type: 'null'
                  codeRepositories:
                    maxItems: 250
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        name:
                          type: string
                        owner:
                          type:
                            - string
                            - 'null'
                        integrationId:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        integrationType:
                          type: string
                      required:
                        - id
                        - name
                        - owner
                        - integrationId
                        - integrationType
                      additionalProperties: false
                  lastRun:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          sessionId:
                            type:
                              - string
                              - 'null'
                          status:
                            type: string
                          createdAt:
                            type: string
                            format: date-time
                            pattern: >-
                              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                          updatedAt:
                            type: string
                            format: date-time
                            pattern: >-
                              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                          durationMs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            description: >-
                              Measured duration of the agent run in
                              milliseconds.
                          errorMessage:
                            type:
                              - string
                              - 'null'
                        required:
                          - id
                          - sessionId
                          - status
                          - createdAt
                          - updatedAt
                          - durationMs
                          - errorMessage
                        additionalProperties: false
                      - type: 'null'
                  scheduleCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  triggerCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  hasPausedSchedule:
                    type: boolean
                  hasPausedTrigger:
                    type: boolean
                  integrationIds:
                    type: array
                    items:
                      type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  integrationTypes:
                    type: array
                    items:
                      type: string
                required:
                  - id
                  - name
                  - key
                  - sandboxSize
                  - projectId
                  - templateId
                  - contentVersion
                  - script
                  - artifactType
                  - createdAt
                  - updatedAt
                  - archivedAt
                  - enabledAt
                  - organizationId
                  - organizationName
                  - createdBy
                  - instructions
                  - agent
                  - agentOptions
                  - mcpServers
                  - userState
                  - codeRepositories
                  - lastRun
                  - scheduleCount
                  - triggerCount
                  - hasPausedSchedule
                  - hasPausedTrigger
                  - integrationIds
                  - integrationTypes
                additionalProperties: false
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '409':
          description: Resource conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Agent operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - apiKey: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: |
            import Tembo from '@tembo-io/sdk';

            const client = new Tembo();

            const agent = await client.agents.create({});
        - lang: rust
          label: Rust SDK
          source: >
            use tembo_rs::*;


            let client = Tembo::from_env()?;


            let response =
            client.agents().create(AgentsCreateBody::new()).send().await?;
components:
  schemas:
    TipTapDocument:
      anyOf:
        - $ref: '#/components/schemas/TipTapNode'
        - $ref: '#/components/schemas/CustomDocument'
      description: >-
        Rich-text document containing text, formatting, images, and mentions. A
        document typically has a "doc" root with nested content nodes.
      example:
        type: doc
        content:
          - type: paragraph
            content:
              - type: text
                text: Hello
    AgentOptionsInput:
      anyOf:
        - type: object
          properties:
            reasoningLevel:
              type: string
              minLength: 1
              maxLength: 100
            mode:
              description: >-
                Use Build (normal) to execute work or Plan (planning) to plan
                before writing code.
              type: string
              enum:
                - normal
                - planning
            speed:
              description: >-
                Preferred execution speed when supported by the selected
                runtime.
              type: string
              enum:
                - normal
                - fast
                - ultrafast
            goal:
              type: object
              properties:
                enabled:
                  type: boolean
                objective:
                  type: string
                  maxLength: 100000
              additionalProperties: false
            ultracode:
              description: >-
                Whether the agent orchestrates multi-agent workflows for every
                task when supported by the selected runtime and model.
              type: boolean
          additionalProperties: {}
        - $ref: '#/components/schemas/RuntimeAgentOptions'
      description: >-
        Execution settings for the selected agent runtime, including
        provider-specific options.
    TriggerFilters:
      anyOf:
        - $ref: '#/components/schemas/AtlassianIssueAddedToBoardFilters'
        - $ref: '#/components/schemas/AtlassianIssueAssignedToUserFilters'
        - $ref: '#/components/schemas/AtlassianIssueCommentCreatedFilters'
        - $ref: '#/components/schemas/AtlassianIssueCreatedFilters'
        - $ref: '#/components/schemas/AtlassianIssueLabelAddedFilters'
        - $ref: '#/components/schemas/AtlassianIssueStatusChangedFilters'
        - $ref: '#/components/schemas/AtlassianIssueUpdatedFilters'
        - $ref: '#/components/schemas/BitbucketPullRequestOpenedFilters'
        - $ref: '#/components/schemas/GithubCreateFilters'
        - $ref: '#/components/schemas/GithubIssueClosedFilters'
        - $ref: '#/components/schemas/GithubIssueCommentCreatedFilters'
        - $ref: '#/components/schemas/GithubIssueOpenedFilters'
        - $ref: '#/components/schemas/GithubPullRequestClosedFilters'
        - $ref: '#/components/schemas/GithubPullRequestMergedFilters'
        - $ref: '#/components/schemas/GithubPullRequestOpenedFilters'
        - $ref: '#/components/schemas/GithubPullRequestReadyForReviewFilters'
        - $ref: '#/components/schemas/GithubPullRequestLabeledFilters'
        - $ref: '#/components/schemas/GithubPullRequestReviewRequestedFilters'
        - $ref: '#/components/schemas/GithubPullRequestReviewSubmittedFilters'
        - $ref: '#/components/schemas/GithubReleasePublishedFilters'
        - $ref: '#/components/schemas/GithubPullRequestSynchronizeFilters'
        - $ref: '#/components/schemas/GithubTemboPullRequestOpenedFilters'
        - $ref: '#/components/schemas/GithubWorkflowRunFailedFilters'
        - $ref: '#/components/schemas/GithubWorkflowRunCompletedFilters'
        - $ref: '#/components/schemas/GitlabBotMergeRequestCommentFilters'
        - $ref: '#/components/schemas/GitlabIssueClosedFilters'
        - $ref: '#/components/schemas/GitlabIssueOpenedFilters'
        - $ref: '#/components/schemas/GitlabIssueLabelAddedFilters'
        - $ref: '#/components/schemas/GitlabIssueUpdatedFilters'
        - $ref: '#/components/schemas/GitlabMergeRequestClosedFilters'
        - $ref: '#/components/schemas/GitlabMergeRequestMergedFilters'
        - $ref: '#/components/schemas/GitlabMergeRequestOpenedFilters'
        - $ref: '#/components/schemas/GitlabMergeRequestUpdatedFilters'
        - $ref: '#/components/schemas/GitlabMergeRequestReadyForReviewFilters'
        - $ref: '#/components/schemas/GitlabPipelineFailedFilters'
        - $ref: '#/components/schemas/GitlabRefCreatedFilters'
        - $ref: '#/components/schemas/LinearIssueCreateFilters'
        - $ref: '#/components/schemas/LinearIssueLabelAddedFilters'
        - $ref: '#/components/schemas/LinearIssueStatusChangedFilters'
        - $ref: '#/components/schemas/LinearIssueUpdatedFilters'
        - $ref: '#/components/schemas/SentryIssueCreatedFilters'
        - $ref: '#/components/schemas/SlackMessageReactionAddedFilters'
        - $ref: '#/components/schemas/SlackMessageSentInChannelFilters'
        - type: object
          properties:
            spaces:
              description: >-
                Only trigger if the page is in a space with one of these names
                or IDs
              type: array
              items:
                type: string
            titleContains:
              description: Only trigger if the page title contains one of these substrings
              type: array
              items:
                type: string
          additionalProperties: {}
        - type: object
          properties:
            spaces:
              description: >-
                Only trigger if the page is in a space with one of these names
                or IDs
              type: array
              items:
                type: string
            titleContains:
              description: Only trigger if the page title contains one of these substrings
              type: array
              items:
                type: string
            previousSpaces:
              description: >-
                Only trigger if the page was moved from a space with one of
                these names or IDs
              type: array
              items:
                type: string
          additionalProperties: {}
        - type: object
          properties:
            spaces:
              description: >-
                Only trigger if the page is in a space with one of these names
                or IDs
              type: array
              items:
                type: string
            titleContains:
              description: Only trigger if the page title contains one of these substrings
              type: array
              items:
                type: string
            locations:
              description: Only trigger for footer comments, inline comments, or both
              type: array
              items:
                type: string
                enum:
                  - footer
                  - inline
          additionalProperties: {}
        - type: object
          properties:
            spaces:
              description: >-
                Only trigger if the page is in a space with one of these names
                or IDs
              type: array
              items:
                type: string
            titleContains:
              description: Only trigger if the page title contains one of these substrings
              type: array
              items:
                type: string
            labels:
              description: Only trigger if the added label has one of these values
              type: array
              items:
                type: string
            commentContains:
              description: Only trigger if the comment contains one of these substrings
              type: array
              items:
                type: string
          additionalProperties: {}
        - type: object
          properties:
            spaces:
              description: >-
                Only trigger if the page is in a space with one of these names
                or IDs
              type: array
              items:
                type: string
            titleContains:
              description: Only trigger if the page title contains one of these substrings
              type: array
              items:
                type: string
            labels:
              description: Only trigger if the removed label has one of these values
              type: array
              items:
                type: string
            commentContains:
              description: Only trigger if the comment contains one of these substrings
              type: array
              items:
                type: string
          additionalProperties: {}
        - $ref: '#/components/schemas/EmptyTriggerFilters'
      description: >-
        Conditions that determine whether the selected integration event starts
        the agent. Available fields depend on the integration and event type.
    AgentState:
      type: object
      propertyNames:
        type: string
      additionalProperties: {}
      description: >-
        User-defined state keyed by name. Values may be any JSON value,
        including nested objects and arrays. No application-specific keys are
        required.
    TipTapNode:
      anyOf:
        - oneOf:
            - $ref: '#/components/schemas/TipTapImageNode'
            - $ref: '#/components/schemas/TipTapMentionNode'
            - $ref: '#/components/schemas/TipTapHeadingNode'
            - $ref: '#/components/schemas/TipTapOrderedListNode'
            - $ref: '#/components/schemas/TipTapTaskItemNode'
            - $ref: '#/components/schemas/TipTapCodeBlockNode'
        - $ref: '#/components/schemas/TipTapContentNode'
    CustomDocument:
      type: object
      additionalProperties: {}
      description: Rich-text content with custom document properties and node attributes.
    RuntimeAgentOptions:
      type: object
      propertyNames:
        type: string
      additionalProperties: {}
      description: Runtime-specific execution settings and provider extensions.
    AtlassianIssueAddedToBoardFilters:
      type: object
      properties:
        projects:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
        boards:
          description: Only trigger if the issue is on one of the specified boards
          type: array
          items:
            type: string
        statuses:
          description: >-
            Only trigger if the issue was moved to one of the specified statuses
            (board columns)
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
        includeNewIssues:
          description: Also trigger for newly created issues (not just status changes)
          type: boolean
      additionalProperties: {}
    AtlassianIssueAssignedToUserFilters:
      type: object
      properties:
        projects:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
        includeNewIssues:
          description: Also trigger for newly created issues that are already assigned
          type: boolean
      additionalProperties: {}
    AtlassianIssueCommentCreatedFilters:
      type: object
      properties:
        projects:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
        commentedBy:
          description: Only trigger if the comment was added by one of the specified users
          type: array
          items:
            type: string
        messageContains:
          description: Only trigger if the comment contains one of these substrings
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
      additionalProperties: {}
    AtlassianIssueCreatedFilters:
      type: object
      properties:
        projects:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
        issueTypes:
          description: >-
            Only trigger for the specified issue types, such as Story, Bug, or
            Sub-task.
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
      additionalProperties: {}
    AtlassianIssueLabelAddedFilters:
      type: object
      properties:
        projects:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
        teams:
          description: >-
            Only trigger if the issue belongs to one of these Jira teams. Enter
            exact team names or team IDs (from the team profile URL).
          type: array
          items:
            type: string
        labels:
          description: Only trigger if one of the specified labels was added
          type: array
          items:
            type: string
      additionalProperties: {}
    AtlassianIssueStatusChangedFilters:
      type: object
      properties:
        projects:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
        statuses:
          description: Only trigger if the issue was moved to one of the specified statuses
          type: array
          items:
            type: string
        previousStatuses:
          description: >-
            Only trigger when the issue changes from one of the specified
            previous statuses.
          type: array
          items:
            type: string
        issueTypes:
          description: >-
            Only trigger for the specified issue types, such as Story, Bug, or
            Sub-task.
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
      additionalProperties: {}
    AtlassianIssueUpdatedFilters:
      type: object
      properties:
        projects:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
        issueTypes:
          description: >-
            Only trigger for the specified issue types, such as Story, Bug, or
            Sub-task.
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
      additionalProperties: {}
    BitbucketPullRequestOpenedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        openedBy:
          description: >-
            Only trigger if the pull request was opened by one of the specified
            users
          type: array
          items:
            type: string
        temboPrs:
          description: Enable agent for Tembo-created pull requests (disabled by default)
          type: boolean
      additionalProperties: {}
    GithubCreateFilters:
      type: object
      properties:
        repositories:
          type: array
          items:
            type: string
        refType:
          description: 'Only trigger for the specified Git reference type: branch or tag.'
          type: array
          items:
            type: string
            enum:
              - branch
              - tag
        branchNames:
          type: array
          items:
            type: string
        tagNames:
          type: array
          items:
            type: string
      additionalProperties: {}
    GithubIssueClosedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the issue is in one of the repositories
          type: array
          items:
            type: string
        openedBy:
          description: Only trigger if the issue was opened by one of the specified users
          type: array
          items:
            type: string
        temboIssues:
          description: Enable agent for Tembo-created issues (disabled by default)
          type: boolean
      additionalProperties: {}
    GithubIssueCommentCreatedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the comment is in one of the repositories
          type: array
          items:
            type: string
        commentedBy:
          description: >-
            Only trigger if the comment was created by one of the specified
            users
          type: array
          items:
            type: string
        commentOn:
          description: Trigger on comments on issues, pull requests, or both
          type: array
          items:
            type: string
            enum:
              - issues
              - pull_requests
        messageContains:
          description: Only trigger if the comment contains one of these substrings
          type: array
          items:
            type: string
      additionalProperties: {}
    GithubIssueOpenedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the issue is in one of the repositories
          type: array
          items:
            type: string
        openedBy:
          description: Only trigger if the issue was opened by one of the specified users
          type: array
          items:
            type: string
        temboIssues:
          description: Enable agent for Tembo-created issues (disabled by default)
          type: boolean
      additionalProperties: {}
    GithubPullRequestClosedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        openedBy:
          description: >-
            Only trigger if the pull request was opened by one of the specified
            users
          type: array
          items:
            type: string
        temboPrs:
          default: true
          description: Enable agent for Tembo-created pull requests (enabled by default)
          type: boolean
      additionalProperties: {}
    GithubPullRequestMergedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        mergedBy:
          description: >-
            Only trigger if the pull request was merged by one of the specified
            users
          type: array
          items:
            type: string
        temboPrs:
          default: true
          description: Enable agent for Tembo-created pull requests (enabled by default)
          type: boolean
      additionalProperties: {}
    GithubPullRequestOpenedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        labels:
          description: >-
            Only trigger if the pull request has at least one of the specified
            labels
          type: array
          items:
            type: string
        openedBy:
          description: >-
            Only trigger if the pull request was opened by one of the specified
            users
          type: array
          items:
            type: string
        branches:
          description: Only trigger if the pull request targets one of these branches
          type: array
          items:
            type: string
        draftPrs:
          description: Trigger also for draft pull requests (disabled by default)
          type: boolean
        temboPrs:
          default: true
          description: Enable agent for Tembo-created pull requests (enabled by default)
          type: boolean
      additionalProperties: {}
    GithubPullRequestReadyForReviewFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        openedBy:
          description: >-
            Only trigger if the pull request was opened by one of the specified
            users
          type: array
          items:
            type: string
        temboPrs:
          default: true
          description: Enable agent for Tembo-created pull requests (enabled by default)
          type: boolean
      additionalProperties: {}
    GithubPullRequestLabeledFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        labels:
          description: Only trigger when one of these labels is added
          type: array
          items:
            type: string
        labeledBy:
          description: Only trigger if the label was added by one of the specified users
          type: array
          items:
            type: string
        temboPrs:
          default: true
          description: Enable agent for Tembo-created pull requests (enabled by default)
          type: boolean
      additionalProperties: {}
    GithubPullRequestReviewRequestedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        reviewers:
          description: >-
            Only trigger when one of these users or team slugs is requested as a
            reviewer
          type: array
          items:
            type: string
        temboPrs:
          default: true
          description: Enable agent for Tembo-created pull requests (enabled by default)
          type: boolean
      additionalProperties: {}
    GithubPullRequestReviewSubmittedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        reviewStates:
          description: Only trigger for reviews with one of these states
          type: array
          items:
            type: string
            enum:
              - approved
              - changes_requested
              - commented
        reviewedBy:
          description: >-
            Only trigger if the review was submitted by one of the specified
            users
          type: array
          items:
            type: string
        temboPrs:
          default: true
          description: Enable agent for Tembo-created pull requests (enabled by default)
          type: boolean
        temboReviews:
          description: >-
            Trigger also for reviews submitted by Tembo (disabled by default).
            Replies Tembo posts to review threads never trigger.
          type: boolean
      additionalProperties: {}
    GithubReleasePublishedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the release is in one of the repositories
          type: array
          items:
            type: string
      additionalProperties: {}
    GithubPullRequestSynchronizeFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        pushedBy:
          description: >-
            Only trigger if the commits were pushed by one of the specified
            users
          type: array
          items:
            type: string
        draftPrs:
          description: Trigger even if the pull request is a draft
          type: boolean
        temboPrs:
          default: true
          description: Enable agent for Tembo-created pull requests (enabled by default)
          type: boolean
      additionalProperties: {}
    GithubTemboPullRequestOpenedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pull request is in one of the repositories
          type: array
          items:
            type: string
        draftPrs:
          description: Also trigger for draft pull requests
          type: boolean
      additionalProperties: {}
    GithubWorkflowRunFailedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the workflow run is in one of the repositories
          type: array
          items:
            type: string
        workflowNames:
          description: Only trigger for specific workflow names
          type: array
          items:
            type: string
        branches:
          description: Only trigger for specific branches
          type: array
          items:
            type: string
      additionalProperties: {}
    GithubWorkflowRunCompletedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the workflow run is in one of the repositories
          type: array
          items:
            type: string
        workflowNames:
          description: Only trigger for specific workflow names
          type: array
          items:
            type: string
        branches:
          description: Only trigger for specific branches
          type: array
          items:
            type: string
        conclusions:
          description: Only trigger for these completed workflow results, such as success
          type: array
          items:
            type: string
            enum:
              - success
              - failure
              - neutral
              - cancelled
              - timed_out
              - action_required
              - stale
              - skipped
        events:
          description: >-
            Only trigger for these originating GitHub events; use schedule for
            cron runs, not push or pull_request
          type: array
          items:
            type: string
            minLength: 1
      additionalProperties: {}
    GitlabBotMergeRequestCommentFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the comment is in one of the repositories
          type: array
          items:
            type: string
        botUsernames:
          description: Only trigger if the comment is from one of these bot usernames
          type: array
          items:
            type: string
      additionalProperties: {}
    GitlabIssueClosedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the issue is in one of the repositories
          type: array
          items:
            type: string
        closedBy:
          description: Only trigger if the issue was closed by one of the specified users
          type: array
          items:
            type: string
        temboIssues:
          description: Enable agent for Tembo-created issues (disabled by default)
          type: boolean
      additionalProperties: {}
    GitlabIssueOpenedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the issue is in one of the repositories
          type: array
          items:
            type: string
        openedBy:
          description: Only trigger if the issue was opened by one of the specified users
          type: array
          items:
            type: string
        temboIssues:
          description: Enable agent for Tembo-created issues (disabled by default)
          type: boolean
      additionalProperties: {}
    GitlabIssueLabelAddedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the issue is in one of the repositories
          type: array
          items:
            type: string
        labels:
          description: Only trigger if one of the added labels matches these labels
          type: array
          items:
            type: string
        addedBy:
          description: Only trigger if the label was added by one of the specified users
          type: array
          items:
            type: string
      additionalProperties: {}
    GitlabIssueUpdatedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the issue is in one of the repositories
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
        updatedBy:
          description: Only trigger if the issue was updated by one of the specified users
          type: array
          items:
            type: string
      additionalProperties: {}
    GitlabMergeRequestClosedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the merge request is in one of the repositories
          type: array
          items:
            type: string
        closedBy:
          description: >-
            Only trigger if the merge request was closed by one of the specified
            users
          type: array
          items:
            type: string
        temboMrs:
          description: Enable agent for Tembo-created merge requests (disabled by default)
          type: boolean
      additionalProperties: {}
    GitlabMergeRequestMergedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the merge request is in one of the repositories
          type: array
          items:
            type: string
        mergedBy:
          description: >-
            Only trigger if the merge request was merged by one of the specified
            users
          type: array
          items:
            type: string
        temboMrs:
          description: Enable agent for Tembo-created merge requests (disabled by default)
          type: boolean
      additionalProperties: {}
    GitlabMergeRequestOpenedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the merge request is in one of the repositories
          type: array
          items:
            type: string
        draftMrs:
          description: >-
            Include draft merge requests. Drafts are excluded when omitted or
            false.
          type: boolean
        temboMrs:
          description: Enable agent for Tembo-created merge requests (disabled by default)
          type: boolean
      additionalProperties: {}
    GitlabMergeRequestUpdatedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the merge request is in one of the repositories
          type: array
          items:
            type: string
        pushedBy:
          description: >-
            Only trigger if the commits were pushed by one of the specified
            users
          type: array
          items:
            type: string
        draftMrs:
          description: >-
            Include draft merge requests. Drafts are excluded when omitted or
            false.
          type: boolean
        temboMrs:
          description: Enable agent for Tembo-created merge requests (disabled by default)
          type: boolean
      additionalProperties: {}
    GitlabMergeRequestReadyForReviewFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the merge request is in one of the repositories
          type: array
          items:
            type: string
        temboMrs:
          description: Enable agent for Tembo-created merge requests (disabled by default)
          type: boolean
      additionalProperties: {}
    GitlabPipelineFailedFilters:
      type: object
      properties:
        repositories:
          description: Only trigger if the pipeline is in one of the repositories
          type: array
          items:
            type: string
        branches:
          description: Only trigger for specific branches
          type: array
          items:
            type: string
      additionalProperties: {}
    GitlabRefCreatedFilters:
      type: object
      properties:
        repositories:
          type: array
          items:
            type: string
        refType:
          description: 'Only trigger for the specified Git reference type: branch or tag.'
          type: array
          items:
            type: string
            enum:
              - branch
              - tag
        branchNames:
          type: array
          items:
            type: string
        tagNames:
          type: array
          items:
            type: string
      additionalProperties: {}
    LinearIssueCreateFilters:
      type: object
      properties:
        teams:
          description: Only trigger if the issue belongs to one of the specified teams
          type: array
          items:
            type: string
        projects:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
        states:
          description: >-
            Only trigger if the issue state type matches one of the specified
            types
          type: array
          items:
            type: string
        openedBy:
          description: Only trigger if the issue was opened by one of the specified users
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
        temboIssues:
          description: Enable agent for Tembo-created issues (disabled by default)
          type: boolean
      additionalProperties: {}
    LinearIssueLabelAddedFilters:
      type: object
      properties:
        teams:
          description: Only trigger if the issue belongs to one of the specified teams
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if one of the specified labels was added to the issue
          type: array
          items:
            type: string
      additionalProperties: {}
    LinearIssueStatusChangedFilters:
      type: object
      properties:
        teams:
          description: Only trigger if the issue belongs to one of the specified teams
          type: array
          items:
            type: string
        statuses:
          description: Only trigger if the issue was moved to one of the specified statuses
          type: array
          items:
            type: string
        previousStatuses:
          description: >-
            Only trigger when the issue changes from one of the specified
            previous statuses.
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
      additionalProperties: {}
    LinearIssueUpdatedFilters:
      type: object
      properties:
        teams:
          description: Only trigger if the issue belongs to one of the specified teams
          type: array
          items:
            type: string
        states:
          description: >-
            Only trigger if the issue state type matches one of the specified
            types
          type: array
          items:
            type: string
        assignedTo:
          description: Only trigger if the issue is assigned to one of the specified users
          type: array
          items:
            type: string
        labels:
          description: Only trigger if the issue has at least one of the specified labels
          type: array
          items:
            type: string
        temboIssues:
          description: Enable agent for Tembo-updated issues (disabled by default)
          type: boolean
      additionalProperties: {}
    SentryIssueCreatedFilters:
      type: object
      properties:
        priorities:
          description: Only trigger if the issue has one of the specified priorities
          type: array
          items:
            type: string
            enum:
              - high
              - medium
              - low
        projectSlugs:
          description: Only trigger if the issue is in one of the specified projects
          type: array
          items:
            type: string
      additionalProperties: {}
    SlackMessageReactionAddedFilters:
      type: object
      properties:
        emojis:
          description: Only trigger if one of these emoji reactions is added
          type: array
          items:
            type: string
        channels:
          description: Only trigger if the reaction is added in one of these channels
          type: array
          items:
            type: string
        users:
          description: Only trigger if the reaction is added by one of these user names
          type: array
          items:
            type: string
      additionalProperties: {}
    SlackMessageSentInChannelFilters:
      type: object
      properties:
        channels:
          description: Only trigger if the message is sent in one of the channels
          type: array
          items:
            type: string
        users:
          description: Only trigger if the message was sent by one of these user names
          type: array
          items:
            type: string
        messageContains:
          description: Only trigger if the message contains one of these substrings
          type: array
          items:
            type: string
        messageNotContains:
          description: >-
            Skip messages containing any of these case-sensitive substrings (for
            example, On-call handover:)
          type: array
          items:
            type: string
      additionalProperties: {}
    EmptyTriggerFilters:
      type: object
      properties: {}
      additionalProperties: {}
    TipTapImageNode:
      type: object
      properties:
        text:
          type: string
          maxLength: 1000000
        marks:
          maxItems: 1000
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TipTapLinkMark'
              - $ref: '#/components/schemas/TipTapMark'
        type:
          type: string
          const: image
        attrs:
          $ref: '#/components/schemas/TipTapImageAttributes'
        content:
          maxItems: 10000
          type: array
          items:
            $ref: '#/components/schemas/TipTapNode'
      required:
        - type
      additionalProperties: {}
    TipTapMentionNode:
      type: object
      properties:
        text:
          type: string
          maxLength: 1000000
        marks:
          maxItems: 1000
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TipTapLinkMark'
              - $ref: '#/components/schemas/TipTapMark'
        type:
          type: string
          const: mention
        attrs:
          $ref: '#/components/schemas/TipTapMentionAttributes'
        content:
          maxItems: 10000
          type: array
          items:
            $ref: '#/components/schemas/TipTapNode'
      required:
        - type
      additionalProperties: {}
    TipTapHeadingNode:
      type: object
      properties:
        text:
          type: string
          maxLength: 1000000
        marks:
          maxItems: 1000
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TipTapLinkMark'
              - $ref: '#/components/schemas/TipTapMark'
        type:
          type: string
          const: heading
        attrs:
          type: object
          properties:
            level:
              type: integer
              minimum: 1
              maximum: 6
          additionalProperties: {}
        content:
          maxItems: 10000
          type: array
          items:
            $ref: '#/components/schemas/TipTapNode'
      required:
        - type
      additionalProperties: {}
    TipTapOrderedListNode:
      type: object
      properties:
        text:
          type: string
          maxLength: 1000000
        marks:
          maxItems: 1000
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TipTapLinkMark'
              - $ref: '#/components/schemas/TipTapMark'
        type:
          type: string
          const: orderedList
        attrs:
          type: object
          properties:
            start:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            type:
              type:
                - string
                - 'null'
          additionalProperties: {}
        content:
          maxItems: 10000
          type: array
          items:
            $ref: '#/components/schemas/TipTapNode'
      required:
        - type
      additionalProperties: {}
    TipTapTaskItemNode:
      type: object
      properties:
        text:
          type: string
          maxLength: 1000000
        marks:
          maxItems: 1000
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TipTapLinkMark'
              - $ref: '#/components/schemas/TipTapMark'
        type:
          type: string
          const: taskItem
        attrs:
          type: object
          properties:
            checked:
              type: boolean
          additionalProperties: {}
        content:
          maxItems: 10000
          type: array
          items:
            $ref: '#/components/schemas/TipTapNode'
      required:
        - type
      additionalProperties: {}
    TipTapCodeBlockNode:
      type: object
      properties:
        text:
          type: string
          maxLength: 1000000
        marks:
          maxItems: 1000
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TipTapLinkMark'
              - $ref: '#/components/schemas/TipTapMark'
        type:
          type: string
          const: codeBlock
        attrs:
          type: object
          properties:
            language:
              type:
                - string
                - 'null'
          additionalProperties: {}
        content:
          maxItems: 10000
          type: array
          items:
            $ref: '#/components/schemas/TipTapNode'
      required:
        - type
      additionalProperties: {}
    TipTapContentNode:
      type: object
      properties:
        text:
          type: string
          maxLength: 1000000
        marks:
          maxItems: 1000
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TipTapLinkMark'
              - $ref: '#/components/schemas/TipTapMark'
        type:
          type: string
          minLength: 1
          maxLength: 100
          not:
            enum:
              - image
              - mention
              - heading
              - orderedList
              - taskItem
              - codeBlock
        attrs:
          $ref: '#/components/schemas/TipTapExtensionAttributes'
        content:
          maxItems: 10000
          type: array
          items:
            $ref: '#/components/schemas/TipTapNode'
      additionalProperties: {}
    TipTapLinkMark:
      type: object
      properties:
        type:
          type: string
          const: link
        attrs:
          type: object
          properties:
            href:
              type:
                - string
                - 'null'
            target:
              type:
                - string
                - 'null'
            rel:
              type:
                - string
                - 'null'
            class:
              type:
                - string
                - 'null'
            title:
              type:
                - string
                - 'null'
          additionalProperties: {}
      required:
        - type
      additionalProperties: {}
    TipTapMark:
      type: object
      properties:
        type:
          type: string
          minLength: 1
          maxLength: 100
          not:
            enum:
              - link
        attrs:
          $ref: '#/components/schemas/TipTapExtensionAttributes'
      required:
        - type
      additionalProperties: {}
    TipTapImageAttributes:
      type: object
      properties:
        src:
          type:
            - string
            - 'null'
        alt:
          type:
            - string
            - 'null'
        title:
          type:
            - string
            - 'null'
        width:
          type:
            - string
            - 'null'
        data-uploading:
          type:
            - string
            - 'null'
        data-placeholder-id:
          type:
            - string
            - 'null'
        upload-progress:
          type:
            - string
            - 'null'
      additionalProperties: {}
    TipTapMentionAttributes:
      type: object
      properties:
        id:
          type:
            - string
            - 'null'
        label:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
        mentionSuggestionChar:
          type:
            - string
            - 'null'
        metadata:
          anyOf:
            - type: object
              properties:
                integrationType:
                  type: string
                codeRepositoryId:
                  type: string
                isHeader:
                  type: boolean
                argumentHint:
                  type: string
                commandName:
                  type: string
                source:
                  type: string
              additionalProperties: {}
            - type: 'null'
      additionalProperties: {}
    TipTapExtensionAttributes:
      type: object
      propertyNames:
        type: string
      additionalProperties: {}
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

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