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

# List Gitee trigger deliveries

> List the webhook deliveries a Gitee trigger received, with the run each one started.

## Restrictions

| Aspect | Value |
| - | - |
| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |
| Permissions | **Automation Read** (`ai-sre`) |

## Usage

* The caller must be able to manage the rule itself — its owner, or a member of the rule's team — or the call returns `403`.
* Results are newest first. `p` starts at 1 and `0` is treated as 1; `limit` defaults to 20 when `0`.
* `status` is the delivery's own outcome; `reason` carries a machine-readable cause such as `rule_not_found`, `rule_disabled`, `self_echo` or `mcp_unavailable` when no run started.
* `payload_expires_at` and `audit_expires_at` say when the stored payload and the record itself are purged.


## OpenAPI

````yaml /api-reference/safari.openapi.en.json post /safari/automation/delivery/list
openapi: 3.1.0
info:
  title: Flashduty Open API
  description: >-
    Public HTTP API for the Flashduty AI SRE platform — skills, MCP servers
    (connectors), A2A agents, and sessions. Every operation is authenticated
    with an `app_key` query parameter issued from the Flashduty console.
  version: 1.0.0
servers:
  - url: https://api.flashcat.cloud
    description: Flashduty Open API
security:
  - AppKeyAuth: []
tags:
  - name: AI SRE/Skills
    description: AI SRE agent skill management.
  - name: AI SRE/MCP servers
    description: MCP (Model Context Protocol) server management.
  - name: AI SRE/A2A agents
    description: A2A (agent-to-agent) remote agent management.
  - name: AI SRE/Sessions
    description: AI SRE agent session history — list, inspect, and export transcripts.
  - name: AI SRE/Automations
  - name: AI SRE/Knowledge
  - name: AI SRE/Artifacts
    description: >-
      AI SRE artifact gallery — publish, browse, and publicly share
      agent-produced files.
  - name: AI SRE/Runners
    description: Self-hosted Runner (BYOC) management.
paths:
  /safari/automation/delivery/list:
    post:
      tags:
        - AI SRE/Automations
      summary: List Gitee trigger deliveries
      description: >-
        List the webhook deliveries a Gitee trigger received, with the run each
        one started.
      operationId: automation-delivery-read-list
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SCMDeliveryListRequest'
            example:
              rule_id: rule_7Qm2Xc9Tb1Vk
              p: 1
              limit: 20
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ResponseEnvelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/ListGiteeDeliveriesResponse'
              example:
                request_id: 01HK8XQE3Z3KQ7M2NTFQ5YJ8P9R4
                data:
                  total: 1
                  deliveries:
                    - delivery_id: gitee_8d3f11c2-7b0e-4d6a-9f21-2c5b8e4a7d10
                      account_id: 10001
                      rule_id: rule_7Qm2Xc9Tb1Vk
                      trigger_id: trg_6Wm2QaLz
                      hook_id: hook_4412
                      event_type: merge_request
                      object_id: '2096'
                      action: merge
                      effective_timestamp: 1716962400000
                      summary_json: >-
                        {"title":"fix: bound the retry
                        queue","author":"li.na","head_branch":"fix/retry-queue","base_branch":"main"}
                      status: started
                      reason: ''
                      run_id: run_6Hc1Vd8Np3
                      attempts: 1
                      payload_expires_at: 1717567200
                      audit_expires_at: 1719559200
                      created_at: 1716962403
                      updated_at: 1716962411
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - AppKeyAuth: []
components:
  schemas:
    SCMDeliveryListRequest:
      type: object
      description: Parameters for paging one rule's repository deliveries.
      required:
        - rule_id
      properties:
        rule_id:
          type: string
          description: Automation rule whose deliveries to list.
        p:
          type: integer
          format: int64
          description: Page number, starting at 1; `0` is treated as 1.
        limit:
          type: integer
          format: int64
          description: Page size; `0` is treated as 20.
    ResponseEnvelope:
      type: object
      description: >-
        Standard response envelope used by every Flashduty public API. On
        success `data` contains the endpoint-specific payload and `error` is
        absent. On failure `error` is present and `data` is absent. `request_id`
        is always present and is also mirrored in the `Flashcat-Request-Id`
        response header.
      properties:
        request_id:
          type: string
          description: >-
            Unique ID for this request. Mirrored in the Flashcat-Request-Id
            header. Include it when reporting issues.
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
        error:
          $ref: '#/components/schemas/DutyError'
        data:
          description: >-
            Operation-specific payload, documented in each operation's 200
            response. Operations without a payload return `{}` or omit `data`
            entirely.
      required:
        - request_id
    ListGiteeDeliveriesResponse:
      type: object
      required:
        - total
        - deliveries
      properties:
        total:
          type: integer
          format: int64
          description: Total number of deliveries recorded for the rule.
        deliveries:
          type: array
          items:
            $ref: '#/components/schemas/GiteeDeliveryTable'
          description: Deliveries on the requested page, newest first.
    DutyError:
      type: object
      description: >-
        Error payload inside the response envelope. Present only on non-2xx
        responses.
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: >-
            Human-readable error message in the response language (`locale` /
            `lang` query parameter or `Accept-Language` header). May name the
            offending field; do not parse it.
          example: The specified parameter template_id is not valid.
      required:
        - code
        - message
    GiteeDeliveryTable:
      type: object
      description: One delivery a Gitee trigger received.
      required:
        - delivery_id
        - account_id
        - rule_id
        - trigger_id
        - hook_id
        - event_type
        - object_id
        - action
        - effective_timestamp
        - summary_json
        - status
        - reason
        - run_id
        - attempts
        - payload_expires_at
        - audit_expires_at
        - created_at
        - updated_at
      properties:
        delivery_id:
          type: string
          description: Delivery ID Gitee assigned to the webhook call.
        account_id:
          type: integer
          format: int64
          description: Account that owns the rule.
        rule_id:
          type: string
          description: Automation rule that received the delivery.
        trigger_id:
          type: string
          description: Gitee trigger inside that rule.
        hook_id:
          type: string
          description: Repository webhook Gitee delivered from.
        event_type:
          type: string
          description: Gitee event that fired, for example `push` or `merge_request`.
        object_id:
          type: string
          description: >-
            Identifier of the Gitee object the event is about; empty when the
            event has none.
        action:
          type: string
          description: Action of the event; empty when the event has no action.
        effective_timestamp:
          type: integer
          format: int64
          description: >-
            Unix timestamp in milliseconds of the moment Gitee says the event
            happened.
        summary_json:
          type: string
          description: JSON text summarizing the event, stored with the delivery.
        status:
          type: string
          description: >-
            Delivery status: `received` accepted, `duplicate` already seen,
            `filtered` matched no trigger, `started` a run was created, `failed`
            could not be processed.
        reason:
          type: string
          description: >-
            Machine-readable reason when the delivery did not start a run, for
            example `rule_not_found` or `self_echo`; empty on success.
        run_id:
          type: string
          description: Automation run this delivery started; empty when no run was created.
        attempts:
          type: integer
          description: How many times this delivery has been attempted.
        payload_expires_at:
          type: integer
          format: int64
          description: >-
            Unix timestamp in seconds when the stored payload is purged (7 days
            after the delivery).
        audit_expires_at:
          type: integer
          format: int64
          description: >-
            Unix timestamp in seconds when the delivery record itself is purged
            (30 days after the delivery).
        created_at:
          type: integer
          format: int64
          description: Unix timestamp in seconds when the delivery was recorded.
        updated_at:
          type: integer
          format: int64
          description: Unix timestamp in seconds of the last change to the delivery.
    ErrorResponse:
      type: object
      description: Response envelope for errors. `error` is required; `data` is absent.
      properties:
        request_id:
          type: string
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          description: >-
            Unique trace ID of this request; include it when reporting issues so
            logs can be located.
        error:
          $ref: '#/components/schemas/DutyError'
      required:
        - request_id
        - error
    ErrorCode:
      type: string
      description: >-
        Error code. Every failed response sets `error.code` to one of these
        stable strings; branch on it rather than on the HTTP status.


        | Code | HTTP | Meaning |

        |---|---|---|

        | `OK` | 200 | Reserved; never returned on a failed request. |

        | `InvalidParameter` | 400 | A parameter is missing, has the wrong type,
        or failed validation; `message` usually names the field. |

        | `BadRequest` | 400 | The request breaks a business rule or conflicts
        with the current state of an object; `message` says which. |

        | `InvalidContentType` | 400 | The body is not sent as
        `application/json`. |

        | `ResourceNotFound` | 400 | The referenced object does not exist in
        this account or was deleted. Returned as HTTP 400, not 404. |

        | `NoLicense` | 400 | The account's plan does not include the feature, a
        plan quota is used up, the plan has expired, or credits are
        insufficient. |

        | `ReferenceExist` | 400 | The object is still referenced by other
        objects, so it cannot be deleted. |

        | `Unauthorized` | 401 | The APP Key is missing, invalid, or deleted. |

        | `BalanceNotEnough` | 402 | Console-only (billing); not returned by
        Open API operations. |

        | `AccessDenied` | 403 | The APP Key's permission scope or the creator's
        role does not allow this operation or object. |

        | `RouteNotFound` | 404 | No operation matches the HTTP method and path.
        |

        | `MethodNotAllowed` | 405 | The path exists but not for this HTTP
        method. |

        | `UndonedOrderExist` | 409 | Console-only (billing); not returned by
        Open API operations. |

        | `EntityTooLarge` | 413 | The request body exceeds the size limit. |

        | `RequestLocked` | 423 | Console-only (sign-in protection); not
        returned by Open API operations. |

        | `RequestVerifyRequired` | 428 | Console-only (verification code); not
        returned by Open API operations. |

        | `DangerousOperation` | 428 | Console-only (MFA for high-risk actions);
        not returned by Open API operations. |

        | `RequestTooFrequently` | 429 | A rate limit was hit; wait for the
        `Flashcat-Request-Rate-Limit-Delay` response header (seconds) before
        retrying. |

        | `InternalError` | 500 | Unexpected server error; retry with backoff
        and include `request_id` when reporting. |

        | `ServiceUnavailable` | 503 | A backend dependency is overloaded or
        unavailable; retry with backoff. |
      enum:
        - OK
        - InvalidParameter
        - BadRequest
        - InvalidContentType
        - ResourceNotFound
        - NoLicense
        - ReferenceExist
        - Unauthorized
        - BalanceNotEnough
        - AccessDenied
        - RouteNotFound
        - MethodNotAllowed
        - UndonedOrderExist
        - EntityTooLarge
        - RequestLocked
        - RequestVerifyRequired
        - DangerousOperation
        - RequestTooFrequently
        - InternalError
        - ServiceUnavailable
      x-enumDescriptions:
        OK: Reserved; never returned on a failed request.
        InvalidParameter: >-
          A parameter is missing, has the wrong type, or failed validation;
          `message` usually names the field.
        BadRequest: >-
          The request breaks a business rule or conflicts with the current state
          of an object; `message` says which.
        InvalidContentType: The body is not sent as `application/json`.
        ResourceNotFound: >-
          The referenced object does not exist in this account or was deleted.
          Returned as HTTP 400, not 404.
        NoLicense: >-
          The account's plan does not include the feature, a plan quota is used
          up, the plan has expired, or credits are insufficient.
        ReferenceExist: >-
          The object is still referenced by other objects, so it cannot be
          deleted.
        Unauthorized: The APP Key is missing, invalid, or deleted.
        BalanceNotEnough: Console-only (billing); not returned by Open API operations.
        AccessDenied: >-
          The APP Key's permission scope or the creator's role does not allow
          this operation or object.
        RouteNotFound: No operation matches the HTTP method and path.
        MethodNotAllowed: The path exists but not for this HTTP method.
        UndonedOrderExist: Console-only (billing); not returned by Open API operations.
        EntityTooLarge: The request body exceeds the size limit.
        RequestLocked: >-
          Console-only (sign-in protection); not returned by Open API
          operations.
        RequestVerifyRequired: Console-only (verification code); not returned by Open API operations.
        DangerousOperation: >-
          Console-only (MFA for high-risk actions); not returned by Open API
          operations.
        RequestTooFrequently: >-
          A rate limit was hit; wait for the `Flashcat-Request-Rate-Limit-Delay`
          response header (seconds) before retrying.
        InternalError: >-
          Unexpected server error; retry with backoff and include `request_id`
          when reporting.
        ServiceUnavailable: A backend dependency is overloaded or unavailable; retry with backoff.
      example: InvalidParameter
  responses:
    BadRequest:
      description: Invalid request — usually a missing or malformed parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingParameter:
              summary: Missing required parameter
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InvalidParameter
                  message: The specified parameter skill_id is not valid.
    Unauthorized:
      description: Missing or invalid app_key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingAppKey:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: Unauthorized
                  message: You are unauthorized.
    Forbidden:
      description: >-
        The app_key is valid, but its permission scope or the creator's role
        does not allow this operation or object.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            accessDenied:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: AccessDenied
                  message: Access Denied.
    TooManyRequests:
      description: >-
        Rate limit hit. Wait for the number of seconds in
        `Flashcat-Request-Rate-Limit-Delay`, then retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            rateLimited:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: RequestTooFrequently
                  message: Request too frequently.
      headers:
        Flashcat-Request-Rate-Limit-Delay:
          description: >-
            Seconds until the current rate-limit window resets. Absent when the
            request was rejected by the gateway's global protection limit.
          schema:
            type: integer
            minimum: 0
    ServerError:
      description: Unexpected server-side error. Include the request_id when reporting.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internal:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InternalError
                  message: >-
                    We encountered an internal error, and it has been reported.
                    Please try again later.
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: app_key
      description: >-
        APP Key created in the Flashduty console under My → APP Key. Send it as
        the `app_key` query parameter or in the `Fd-App-Key` request header. Its
        effective access is the intersection of the key's permission scope and
        the creator's current role permissions. Keep it secret.

````

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