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

# List pending GitHub source work

> Lists project-scoped source work for connected repositories. Metadata settlement may require no model work. Available in Galinum Cloud.



## OpenAPI

````yaml /openapi.json get /api/v1/github/refs/due
openapi: 3.1.0
info:
  title: Galinum API
  version: '2026-08-22'
  description: >-
    Galinum's HTTP API. SDK endpoints power the browser SDK. Management
    endpoints use a project secret. The scoped hosted-agent credential writes
    only through lease-fenced evaluation and GitHub source endpoints.
    Managed-only operations return 501 on the self-host server.
servers:
  - url: https://galinum.com
    description: Production
security:
  - publishableKey: []
paths:
  /api/v1/github/refs/due:
    get:
      tags:
        - GitHub sources
      summary: List pending GitHub source work
      description: >-
        Lists project-scoped source work for connected repositories. Metadata
        settlement may require no model work. Available in Galinum Cloud.
      operationId: listDueGithubRefs
      responses:
        '200':
          description: The successful source-work result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubDueRefs'
        '400':
          description: Invalid source request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubSourceError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The source policy or lease refuses this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubSourceError'
        '404':
          description: The source ref is not available in this project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubSourceError'
        '409':
          description: The work, coverage, or current campaign conflicts with this request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubSourceError'
        '413':
          $ref: '#/components/responses/TooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          description: Source evidence is unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubSourceError'
      security:
        - secretKey: []
        - hostedAgentKey: []
components:
  schemas:
    GithubDueRefs:
      type: object
      additionalProperties: false
      required:
        - refs
        - aiLimitReached
        - loopPaused
        - runsUsedToday
        - maxRunsPerDay
      properties:
        refs:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - refId
              - sourceId
              - repository
              - branch
              - refKey
            properties:
              refId:
                type: string
              sourceId:
                type: string
              repository:
                type: string
              branch:
                type: string
              refKey:
                type: string
        aiLimitReached:
          type: boolean
        loopPaused:
          type: boolean
        runsUsedToday:
          type: integer
          minimum: 0
        maxRunsPerDay:
          type: integer
          minimum: 0
    GithubSourceError:
      type: object
      additionalProperties: false
      required:
        - ok
        - status
        - error
      properties:
        ok:
          const: false
        status:
          type: integer
          enum:
            - 400
            - 403
            - 404
            - 409
            - 503
        error:
          type: string
        retryAfterMs:
          type: integer
          minimum: 0
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable description of what went wrong.
  responses:
    Unauthorized:
      description: >-
        Missing or invalid API key. SDK endpoints take the publishable key;
        management endpoints (campaigns, media, users, events, goals, agent
        runs) take the secret key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
    TooLarge:
      description: Request body exceeds the endpoint's size limit.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid request
    RateLimited:
      description: >-
        Rate limit exceeded, counted per project (SDK endpoints: 120
        requests/minute or 2,000/hour per endpoint; management endpoints:
        60/minute or 1,000/hour per resource group — all campaign operations
        share one budget, as do goal operations and user reads). Retry after the
        `Retry-After` header.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Too many requests
  securitySchemes:
    publishableKey:
      type: http
      scheme: bearer
      description: >-
        Your project's publishable key (`pk_pub_…`). Safe to expose in the
        browser — it identifies the project and is rate-limited, not secret.
    secretKey:
      type: http
      scheme: bearer
      description: >-
        Your project's secret key (`pk_…`, without the `pub` segment).
        Server-side only — never ship it to a browser. Get it from Settings →
        Projects in the dashboard.
    hostedAgentKey:
      type: http
      scheme: bearer
      description: >-
        Galinum's scoped hosted-agent key (pk_agent_...). It can read required
        project state, including launch policy and campaign activation, and use
        fenced evaluation or GitHub source operations. Ordinary campaign,
        status, goal, segment, media, launch-policy, and campaign-activation
        writes return 403. Reads grant no approval or deployment configuration
        authority.

````

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