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

# Get job result

> Poll for an agent job's result.

Returns the current status (`pending`, `running`, `completed`, `failed`).
When `completed`, the `result` field contains the agent's output.
When `failed`, the `error` field contains a description.



## OpenAPI

````yaml /docs/openapi.client.json get /v1/agents/jobs/{job_id}
openapi: 3.1.0
info:
  description: >-
    Client API for RCIntel. Admin ingest, catalog sync, and internal audit
    routes are omitted. See Guides → Which API to use.
  summary: Multi-tenant knowledge API for healthcare revenue cycle management.
  title: Healthcare Knowledge Layer
  version: 0.1.0
servers: []
security: []
tags:
  - description: >-
      Geographic payer policy lookup (national NCD vs MAC LCD vs state). Query
      payer, code, state, plan_type. Each row includes geo_scope and
      document_version.
    name: policies
  - description: >-
      Payer network directory — search payers, check prior auth requirements,
      view filing rules, denial patterns, and appeal levels.
    name: payers
  - description: >-
      Resolve healthcare billing knowledge across the L1-L6 layer stack.
      Includes payment calculation, billing guidance, and per-layer queries.
    name: knowledge
  - description: >-
      CMS Fee Schedule lookups — OPPS (Addendum B / APC), DMEPOS (state-level
      pricing), and Clinical Lab Fee Schedule (CLFS).
    name: fee-schedules
  - description: >-
      NCCI (National Correct Coding Initiative) — dedicated MUE limits, PTP
      bundling edits, add-on code edits, and code pair validation.
    name: ncci
  - description: >-
      Service code intelligence — CPT/HCPCS lookup, RVU data, NCCI edits,
      payment calculation, implant/GUDID search, and service group
      classification.
    name: codes
  - description: >-
      Submit asynchronous AI agent jobs for code research, medical necessity,
      and denial resolution. Poll for results and retrieve reasoning traces.
    name: agents
  - description: >-
      Register and manage healthcare facilities by CCN (Medicare Provider
      Number). Each facility is the root entity for knowledge resolution.
    name: facilities
  - description: >-
      NPI Registry — live search against CMS NPPES API for provider and
      organization National Provider Identifiers.
    name: npi
  - description: >-
      OpenFDA drug product lookup by NDC. Includes product-level fields with
      normalized ingredient and package detail.
    name: drugs
  - description: Health checks, service metadata, and Prometheus metrics.
    name: system
paths:
  /v1/agents/jobs/{job_id}:
    get:
      tags:
        - agents
      summary: Get job result
      description: >-
        Poll for an agent job's result.


        Returns the current status (`pending`, `running`, `completed`,
        `failed`).

        When `completed`, the `result` field contains the agent's output.

        When `failed`, the `error` field contains a description.
      operationId: get_job_result_v1_agents_jobs__job_id__get
      parameters:
        - description: >-
            Asynchronous job identifier returned by an agent submission
            endpoint.
          in: path
          name: job_id
          required: true
          schema:
            format: uuid
            title: Job Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobResultResponse'
          description: Current job status and result (if completed)
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
components:
  schemas:
    JobResultResponse:
      description: Full agent job result including output and audit metadata.
      properties:
        agent_type:
          title: Agent Type
          type: string
        audit_tier:
          anyOf:
            - type: string
            - type: 'null'
          description: SENTINEL audit tier
          title: Audit Tier
        completed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Completed At
        composite_score:
          anyOf:
            - type: number
            - type: 'null'
          description: SENTINEL composite score (0-1)
          title: Composite Score
        created_at:
          format: date-time
          title: Created At
          type: string
        error:
          anyOf:
            - type: string
            - type: 'null'
          description: Error message (when failed)
          title: Error
        job_id:
          format: uuid
          title: Job Id
          type: string
        latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          description: Execution time in milliseconds
          title: Latency Ms
        result:
          anyOf:
            - $ref: '#/components/schemas/AgentResultData'
            - type: 'null'
          description: Agent output (when completed)
        security_score:
          anyOf:
            - type: number
            - type: 'null'
          description: SENTINEL security score (0-1)
          title: Security Score
        status:
          description: 'Job status: pending, running, completed, failed'
          title: Status
          type: string
      required:
        - job_id
        - status
        - agent_type
        - created_at
      title: JobResultResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AgentResultData:
      description: Structured agent output data.
      properties:
        confidence:
          anyOf:
            - type: number
            - type: 'null'
          description: Agent confidence in the result (0-1)
          title: Confidence
        data:
          additionalProperties: true
          description: Agent-specific output payload
          title: Data
          type: object
        message:
          anyOf:
            - type: string
            - type: 'null'
          description: Human-readable summary
          title: Message
        sources:
          description: Sources referenced by the agent
          items:
            type: string
          title: Sources
          type: array
        status:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Result status: success, error, service_unavailable'
          title: Status
      title: AgentResultData
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey

````