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

# Retry a failed report execution



## OpenAPI

````yaml /api-reference/openapi.json post /report-executions/{executionId}/retry
openapi: 3.0.0
info:
  title: Costory
  version: '1.0'
  description: API Documentation
servers:
  - url: https://app-api.costory.io
security: []
paths:
  /report-executions/{executionId}/retry:
    post:
      tags:
        - Reports
      summary: Retry a failed report execution
      operationId: retryReportExecution
      parameters:
        - schema:
            type: string
            format: cuid
          required: true
          name: executionId
          in: path
      responses:
        '204':
          description: Execution retried
        '400':
          description: Execution cannot be retried
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ReportsValidationError'
                  - type: object
                    properties:
                      error:
                        type: string
                        enum:
                          - EXECUTION_NOT_RETRYABLE
                    required:
                      - error
                    additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '404':
          description: Execution not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportsNotFound'
        '500':
          description: Execution outcome could not be resolved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportsRetryOutcomeUnknown'
      security:
        - bearerAuth: []
components:
  schemas:
    ReportsValidationError:
      type: object
      properties:
        error:
          type: string
          enum:
            - VALIDATION_ERROR
        reason:
          type: string
        details:
          anyOf:
            - type: string
            - type: number
            - type: boolean
            - nullable: true
              type: string
              enum:
                - null
            - type: array
              items: {}
            - type: object
              additionalProperties: {}
      required:
        - error
        - details
      additionalProperties: false
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          description: Unauthorized error message
      required:
        - error
    ReportsNotFound:
      type: object
      properties:
        error:
          type: string
          enum:
            - NOT_FOUND
      required:
        - error
      additionalProperties: false
    ReportsRetryOutcomeUnknown:
      type: object
      properties:
        ok:
          type: boolean
          enum:
            - false
        error:
          type: string
          enum:
            - OUTCOME_UNKNOWN
        reportId:
          type: string
        executionId:
          type: string
      required:
        - ok
        - error
        - reportId
        - executionId
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or Clerk ak_* API key
      description: >-
        Send `Authorization: Bearer <credential>` using either a Clerk session
        JWT or a Clerk API key (`ak_*`). API keys may identify a user (`user_*`)
        or organization (`org_*`) principal and are generated in the Clerk
        Dashboard under API keys.

````