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

# Get a workflow

> Returns a workflow and the document formats its API trigger accepts. `triggerFormats` is empty when the workflow has no API trigger, and the trigger then rejects every document. `triggerFormats` always reflects the current graph, while `updatedOn` moves only when the workflow itself changes (its name or enabled state), not when only its graph is edited.

Requires the `workflows:read` [scope](/api-reference/authentication#scopes). Check `triggerFormats` before you [trigger the workflow](/api-reference/trigger-webhook): a document in any other format is rejected with `400 Bad Request`.

`triggerFormats` always reflects the workflow's current graph. `updatedOn` reflects changes to the workflow itself, such as its name or enabled state, and does not move when only its graph is edited.


## OpenAPI

````yaml GET /workflows/{workflowId}
openapi: 3.1.1
info:
  title: Ingestly API
  description: >-
    Public Ingestly API. Authenticate every request with an API key in the
    `X-Api-Key` header. A key belongs to one organization and carries scopes
    (such as `workflows:trigger` or `runs:read`); each operation requires one
    scope, and a key without it is rejected with 403. Errors use RFC 7807
    problem details.
  version: 1.0.0
servers:
  - url: https://api.ingestly.ai
security:
  - ApiKey: []
tags:
  - name: Workflows
  - name: Runs
  - name: Review Tasks
  - name: Events
  - name: Documents
paths:
  /workflows/{workflowId}:
    get:
      tags:
        - Workflows
      summary: Get a workflow
      description: >-
        Returns a workflow and the document formats its API trigger accepts.
        `triggerFormats` is empty when the workflow has no API trigger, and the
        trigger then rejects every document. `triggerFormats` always reflects
        the current graph, while `updatedOn` moves only when the workflow itself
        changes (its name or enabled state), not when only its graph is edited.
      operationId: getWorkflow
      parameters:
        - name: workflowId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          headers:
            X-Correlation-ID:
              description: >-
                Server-generated request identifier. Quote it when contacting
                support.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWorkflowResponse'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '401':
          description: >-
            Unauthorized. The API key is missing, invalid, expired or
            deactivated.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '403':
          description: >-
            Forbidden. The API key lacks the `workflows:read` scope, or the plan
            does not include API access.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '404':
          description: >-
            Not Found. No workflow with this id exists in the key's organization
            and environment.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '429':
          description: >-
            Too Many Requests. The plan's rate limit was exceeded; retry after
            the seconds in Retry-After.
          headers:
            Retry-After:
              description: Seconds until the rate limit window resets.
              schema:
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetailResponse'
components:
  schemas:
    GetWorkflowResponse:
      required:
        - id
        - name
        - environment
        - isEnabled
        - triggerFormats
        - createdOn
        - updatedOn
      type: object
      properties:
        id:
          examples:
            - 0199a6c1-9e2f-7c3d-8a4b-1c2d3e4f5a6b
          type: string
          format: uuid
        name:
          examples:
            - Purchase orders
          type: string
        environment:
          examples:
            - prod
          enum:
            - dev
            - prod
          type: string
        isEnabled:
          examples:
            - true
          type: boolean
        triggerFormats:
          examples:
            - - pdf
              - png
              - jpeg
          type: array
          items:
            enum:
              - pdf
              - docx
              - xlsx
              - pptx
              - csv
              - png
              - jpeg
              - tiff
              - gif
              - webp
            type: string
        createdOn:
          examples:
            - '2026-09-14T09:12:44+00:00'
          type: string
          format: date-time
        updatedOn:
          examples:
            - '2026-10-01T16:30:02+00:00'
          type: string
          format: date-time
    ProblemDetailResponse:
      required:
        - status
        - title
        - type
        - instance
        - traceId
      type: object
      properties:
        status:
          type: integer
          format: int32
        title:
          type: string
        type:
          type: string
        instance:
          type: string
        traceId:
          type: string
        detail:
          type:
            - 'null'
            - string
        errors:
          type:
            - 'null'
            - object
          additionalProperties:
            type: array
            items:
              type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````

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