# Checks_GetAutomaticCheckPolicy_Account

`GET /v1/accounts/{account}/checkPolicies/{checkPolicy}`

Reads the effective policy and its source for each scheduler half.

- Base URL: `https://junction-api.qualiastudios.dev`
- Authentication: an API key in the `X-API-Key` header

## Parameters

- `account` (path, string, required): The account id.
- `checkPolicy` (path, string, required): The checkPolicy id.

## Responses

- `200` OK: `application/json` `qualia.v1.AutomaticCheckPolicy`
- `default` Default error response: `application/json` `google.rpc.Status`

## Schemas

```yaml
qualia.v1.AutomaticCheckPolicy:
  type: object
  properties:
    name:
      type: string
      description: The automatic policy under an org, workspace or dataset.
    heuristicEnabled:
      readOnly: true
      type: boolean
      description: Whether the scheduler runs the free heuristic half.
    heuristicSource:
      readOnly: true
      type: string
      description: "Which level supplied the heuristic setting: platform, org, workspace or dataset."
    graphEnabled:
      readOnly: true
      type: boolean
      description: Whether the scheduler runs the paid graph half.
    graphSource:
      readOnly: true
      type: string
      description: "Which level supplied the graph setting: platform, org, workspace or dataset."
    heuristic:
      enum:
        - SETTING_UNSPECIFIED
        - ENABLED
        - DISABLED
      type: string
      description: The heuristic override at this level; SETTING_UNSPECIFIED clears it.
      format: enum
    graph:
      enum:
        - SETTING_UNSPECIFIED
        - ENABLED
        - DISABLED
      type: string
      description: The graph override at this level; SETTING_UNSPECIFIED clears it.
      format: enum
  description: |-
    Automatic checks policy is per scheduler half, not per catalog check id.
    Inheritance never queues or replays a run: only a new upload is checked.
google.rpc.Status:
  oneOf:
    - $ref: "#/components/schemas/ApiError"
    - $ref: "#/components/schemas/GatewayError"
  description: "The body of a failed call: one of the two shapes below."
ApiError:
  title: API error
  type: object
  required:
    - code
    - message
    - retryable
    - details
  properties:
    code:
      type: string
      description: The gRPC code name in upper case, e.g. `NOT_FOUND`.
    message:
      type: string
    retryable:
      type: boolean
      description: Whether the same call may succeed if retried.
    details:
      type: array
      items:
        type: object
      description: "Empty, except when a dataset copy or move is refused: then one `google.rpc.ErrorInfo` with the refusal's `reason` code, its `domain` and, in `metadata`, the datasets it names."
  description: A refusal from the API itself.
GatewayError:
  title: Gateway error
  type: object
  required:
    - detail
  properties:
    detail:
      type: string
      description: What went wrong.
  description: A refusal from the gateway before the call reaches the API, for example `401` bad or missing API key, `403` key lacks the scope or environment closed, `413` body too large.
```
