Parcha GetJobsByCaseId API

The GetJobsByCaseId API from Parcha — 2 operation(s) for getjobsbycaseid.

OpenAPI Specification

parcha-getjobsbycaseid-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Parcha Admin GetJobsByCaseId API
  version: 1.0.0
  description: API for managing Parcha jobs and checks
servers:
- url: https://api.parcha.ai/api/v1
  description: Agent Hub API server
- url: https://demo.parcha.ai/api/v1
  description: Sandbox API server
- url: https://us1.parcha.ai/api/v1
  description: Legacy API server
- url: http://{your-company-domain}.parcha.ai/api/v1
  description: Custom Enterpris server (your company's API server)
security:
- bearerAuth: []
tags:
- name: GetJobsByCaseId
paths:
  /getJobsByCaseId:
    get:
      security:
      - bearerAuth: []
      summary: Get jobs by case ID
      parameters:
      - name: case_id
        in: query
        required: true
        schema:
          type: string
      - name: agent_key
        in: query
        required: true
        schema:
          type: string
      - name: include_check_results
        in: query
        schema:
          type: boolean
      - name: include_status_messages
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Jobs retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobsResponse'
        '401':
          description: Unauthorized
      tags:
      - GetJobsByCaseId
  /api/v1/getJobsByCaseId:
    get:
      summary: Get Agent Job By Case Id Route1
      operationId: get_agent_job_by_case_id_route1_api_v1_getJobsByCaseId_get
      security:
      - HTTPBearer: []
      parameters:
      - name: case_id
        in: query
        required: true
        schema:
          type: string
          title: Case Id
      - name: agent_key
        in: query
        required: true
        schema:
          type: string
          title: Agent Key
      - name: include_check_results
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          default: false
          title: Include Check Results
      - name: include_status_messages
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          default: false
          title: Include Status Messages
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobsResponse_2'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - GetJobsByCaseId
components:
  schemas:
    JobsResponse:
      type: object
      properties:
        jobs:
          type: array
          items:
            type: object
        count:
          type: integer
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    JobsResponse_2:
      properties:
        jobs:
          items:
            type: object
          type: array
          title: Jobs
          description: The list of jobs
        count:
          type: integer
          title: Count
          description: The total jobs returned count
      type: object
      required:
      - jobs
      - count
      title: JobsResponse
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key obtained from your Parcha account settings. Include as Bearer token in the Authorization header.