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

# Get cron run

> **Token scope:** `account` · `org` · `project` — read-only tokens allowed.

Read one run and every attempt it made.



## OpenAPI

````yaml /openapi/project.json get /projects/{projectId}/cron-jobs/{id}/runs/{runId}
openapi: 3.1.0
info:
  title: InstaCloud API — Project level
  version: 0.1.0
  description: >-
    Endpoints under `/projects/{projectId}`: branches, services, deploys,
    secrets, databases, storage, cron, observability, governance. Callable with
    any token whose binding covers the project.


    Generated from the platform's own OpenAPI document
    (https://api.instacloud.com/openapi.json); see the [API
    overview](/reference/api/overview) for authentication and token scopes.
servers:
  - url: https://api.instacloud.com
    description: InstaCloud
security:
  - bearerAuth: []
tags:
  - name: Projects
    description: Projects inside an organization.
  - name: Branches
    description: >-
      Branch environments of a project: isolated database, storage and compute
      per branch.
  - name: Services
    description: 'Services on a branch: compute, postgres, storage and managed databases.'
  - name: Deploy
    description: Deploy an image or a source to a compute service.
  - name: Compute
    description: Build output of a compute service.
  - name: Secrets
    description: User secrets, service credentials and how they bind into compute env.
  - name: Database
    description: Postgres databases, extensions, credentials and ad-hoc SQL.
  - name: Storage
    description: Objects in a storage service.
  - name: Backups
    description: Database backups and restores.
  - name: Cron
    description: Scheduled HTTP calls against a service or an external URL.
  - name: Observability
    description: Logs, metrics, deploy events and database insight.
  - name: Governance
    description: Per-project agent policy and the approval queue.
  - name: Audit
    description: The project's event timeline, including agent-ingested events.
  - name: Domains
    description: >-
      Domains bought through InstaCloud, bring-your-own zones and their DNS
      records.
  - name: Billing
    description: Usage, cycles, invoices and credits.
  - name: Templates
    description: Deploy a template into a project.
paths:
  /projects/{projectId}/cron-jobs/{id}/runs/{runId}:
    get:
      tags:
        - Cron
      summary: Get cron run
      description: >-
        **Token scope:** `account` · `org` · `project` — read-only tokens
        allowed.


        Read one run and every attempt it made.
      operationId: getCronRun
      parameters:
        - schema:
            format: uuid
            type: string
          in: path
          name: projectId
          required: true
        - schema:
            format: uuid
            type: string
          in: path
          name: id
          required: true
        - schema:
            format: uuid
            type: string
          in: path
          name: runId
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  run:
                    type: object
                    properties:
                      id:
                        format: uuid
                        type: string
                      schedule_id:
                        format: uuid
                        type: string
                      scheduled_at:
                        format: date-time
                        description: >-
                          the tick this run belongs to (manual runs: when it was
                          asked for)
                        type: string
                      trigger_type:
                        type: string
                        enum:
                          - scheduled
                          - manual
                      schedule_revision:
                        description: >-
                          the schedule as of dispatch; a later edit does not
                          change a run in flight
                        type: integer
                      status:
                        description: >-
                          the terminal status IS the result — there is no
                          separate outcome
                        type: string
                        enum:
                          - queued
                          - preparing
                          - sending
                          - retry_wait
                          - succeeded
                          - failed
                          - unknown
                          - cancelled
                          - skipped
                      skip_reason:
                        type:
                          - string
                          - 'null'
                        enum:
                          - overlap
                          - late
                          - null
                      skipped_count:
                        type: integer
                      dispatch_generation:
                        type: integer
                      dispatched_at:
                        format: date-time
                        type:
                          - string
                          - 'null'
                      execution_epoch:
                        description: >-
                          bumped per attempt; a superseded worker’s late result
                          is dropped against it
                        type: integer
                      platform_retry_count:
                        type: integer
                      application_retry_count:
                        type: integer
                      next_attempt_at:
                        format: date-time
                        type:
                          - string
                          - 'null'
                      started_at:
                        format: date-time
                        type:
                          - string
                          - 'null'
                      finished_at:
                        format: date-time
                        type:
                          - string
                          - 'null'
                      created_at:
                        format: date-time
                        type: string
                      config:
                        type: object
                        properties:
                          target:
                            description: >-
                              Where the job sends its request. An internal
                              target names the SERVICE, never a URL: the worker
                              resolves the live route at send time, so a
                              redeploy or a region move cannot leave a job
                              firing at a dead host.
                            anyOf:
                              - required:
                                  - kind
                                  - url
                                type: object
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - external
                                  url:
                                    description: absolute http(s) URL
                                    type: string
                              - required:
                                  - kind
                                  - serviceId
                                  - path
                                type: object
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - service
                                  serviceId:
                                    format: uuid
                                    description: >-
                                      a compute service in this project’s
                                      organization
                                    type: string
                                  path:
                                    description: >-
                                      request path on that service, leading
                                      slash required (e.g. /tasks/nightly)
                                    type: string
                          method:
                            type: string
                            enum:
                              - GET
                              - POST
                          headerNames:
                            description: >-
                              names only, literal and secret-backed alike —
                              never values
                            type: array
                            items:
                              type: string
                          requestTimeoutMs:
                            type: integer
                          retry:
                            type: object
                            properties:
                              platformMaxRetries:
                                minimum: 0
                                maximum: 10
                                description: >-
                                  retries for failures where nothing was sent
                                  (wake/transport). Default 2.
                                type: integer
                              applicationMaxRetries:
                                minimum: 0
                                maximum: 10
                                description: >-
                                  retries for a non-2xx answer. Default 0 — a
                                  broken endpoint should not be hammered.
                                type: integer
                              retryableStatuses:
                                maxItems: 20
                                description: e.g. [429, 503]; empty means none
                                type: array
                                items:
                                  minimum: 100
                                  maximum: 599
                                  type: integer
                              maxRunAgeMs:
                                minimum: 0
                                description: >-
                                  give up on the run once it is this old,
                                  whatever the retry budget says
                                type: integer
                        required:
                          - target
                          - method
                          - headerNames
                          - requestTimeoutMs
                          - retry
                    required:
                      - id
                      - schedule_id
                      - scheduled_at
                      - trigger_type
                      - schedule_revision
                      - status
                      - skip_reason
                      - skipped_count
                      - dispatch_generation
                      - dispatched_at
                      - execution_epoch
                      - platform_retry_count
                      - application_retry_count
                      - next_attempt_at
                      - started_at
                      - finished_at
                      - created_at
                      - config
                  attempts:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          format: uuid
                          type: string
                        run_id:
                          format: uuid
                          type: string
                        attempt_no:
                          type: integer
                        execution_epoch:
                          type: integer
                        started_at:
                          format: date-time
                          type: string
                        finished_at:
                          format: date-time
                          type:
                            - string
                            - 'null'
                        wake_ms:
                          description: >-
                            time spent waking the target, excluded from the
                            request timeout
                          type:
                            - integer
                            - 'null'
                        request_ms:
                          type:
                            - integer
                            - 'null'
                        failure_kind:
                          type:
                            - string
                            - 'null'
                          enum:
                            - wake_failed
                            - blocked
                            - http_error
                            - timeout
                            - transport
                            - interrupted
                            - null
                        error_code:
                          type:
                            - string
                            - 'null'
                        http_status:
                          type:
                            - integer
                            - 'null'
                        response_excerpt:
                          type:
                            - string
                            - 'null'
                      required:
                        - id
                        - run_id
                        - attempt_no
                        - execution_epoch
                        - started_at
                        - finished_at
                        - wake_ms
                        - request_ms
                        - failure_kind
                        - error_code
                        - http_status
                        - response_excerpt
                required:
                  - run
                  - attempts
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Session access JWT or an API token (`insta_<prefix>_<secret>`).

````