# Round (https://docs.capy.ai/api-reference/reviews/round)

`GET https://api.capy.ai/api/v1/reviews/rounds/{requestId}`

## Authorization

Send an API key as a bearer token: `Authorization: Bearer $CAPY_API_KEY`. See https://docs.capy.ai/api-reference/authentication.md.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `requestId` | path | string | yes |  |

## Responses

- `200` ReviewRound: `ReviewRoundEncoded`
- `401` capy/Unauthorized: `capy_UnauthorizedEncoded`
- `403` capy/Forbidden: `capy_ForbiddenEncoded \| capy_ForbiddenEncoded`
- `404` capy/ReviewRoundNotFound: `capy_ReviewRoundNotFoundEncoded`
- `429` capy/RateLimited: `capy_RateLimitedEncoded`

## Example

```bash
curl -X GET "https://api.capy.ai/api/v1/reviews/rounds/{requestId}" \
  -H "Authorization: Bearer $CAPY_API_KEY"
```

## Referenced schemas

```json
{
  "ReviewRoundEncoded": {
    "type": "object",
    "properties": {
      "requestId": {
        "type": "string"
      },
      "reviewId": {
        "type": "string"
      },
      "threadId": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "repo": {
        "type": "string"
      },
      "prNumber": {
        "type": "integer"
      },
      "headSha": {
        "type": "string"
      },
      "baseSha": {
        "type": "string"
      },
      "status": {
        "type": "string",
        "enum": [
          "pending",
          "running",
          "completed",
          "failed",
          "stale"
        ]
      },
      "shadow": {
        "type": "boolean"
      },
      "model": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "effort": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "none",
              "instant",
              "minimal",
              "low",
              "medium",
              "high",
              "xhigh",
              "max"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "tier": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "baselineSha": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "title": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "failureReason": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "failureMessage": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "createdAt": {
        "type": "string"
      },
      "settledAt": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "memory": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ReviewRoundMemoryEncoded"
          },
          {
            "type": "null"
          }
        ]
      },
      "memoryReason": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "no_project",
              "several_projects",
              "memory_off",
              "empty"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "memorySelection": {
        "type": "string",
        "enum": [
          "index",
          "paths",
          "select"
        ]
      },
      "memoryTopics": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string"
            },
            "title": {
              "type": "string"
            }
          },
          "required": [
            "path",
            "title"
          ],
          "additionalProperties": false
        }
      },
      "findings": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ReviewRoundFindingEncoded"
        }
      }
    },
    "required": [
      "requestId",
      "reviewId",
      "threadId",
      "repo",
      "prNumber",
      "headSha",
      "baseSha",
      "status",
      "shadow",
      "model",
      "effort",
      "tier",
      "baselineSha",
      "title",
      "failureReason",
      "failureMessage",
      "createdAt",
      "settledAt",
      "memory",
      "memoryReason",
      "memorySelection",
      "memoryTopics",
      "findings"
    ],
    "additionalProperties": false
  },
  "ReviewRoundMemoryEncoded": {
    "type": "object",
    "properties": {
      "projectId": {
        "type": "string"
      },
      "volumeId": {
        "type": "string"
      },
      "versionId": {
        "type": "string"
      }
    },
    "required": [
      "projectId",
      "volumeId",
      "versionId"
    ],
    "additionalProperties": false
  },
  "ReviewRoundFindingEncoded": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "ruleId": {
        "anyOf": [
          {
            "type": "string",
            "allOf": [
              {
                "minLength": 32
              },
              {
                "maxLength": 32
              }
            ],
            "pattern": "^rrule_"
          },
          {
            "type": "null"
          }
        ]
      },
      "memory": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ReviewFindingMemoryEncoded"
          },
          {
            "type": "null"
          }
        ]
      },
      "telemetry": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "window": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "window"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "kind": {
        "type": "string",
        "enum": [
          "issue",
          "note"
        ]
      },
      "severity": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "confidence": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "confirmed",
              "investigate"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "category": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "bug",
              "risk",
              "maintainability",
              "refactor"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "summary": {
        "type": "string"
      },
      "detail": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "suggestion": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "file": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "line": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ]
      },
      "startLine": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ]
      },
      "files": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "required": [
      "id",
      "ruleId",
      "memory",
      "telemetry",
      "kind",
      "severity",
      "confidence",
      "category",
      "summary",
      "detail",
      "suggestion",
      "file",
      "line",
      "startLine",
      "files"
    ],
    "additionalProperties": false
  },
  "ReviewFindingMemoryEncoded": {
    "type": "object",
    "properties": {
      "volumeId": {
        "type": "string"
      },
      "versionId": {
        "type": "string"
      },
      "path": {
        "type": "string"
      },
      "title": {
        "type": "string"
      }
    },
    "required": [
      "volumeId",
      "versionId",
      "path",
      "title"
    ],
    "additionalProperties": false
  },
  "capy_UnauthorizedEncoded": {
    "type": "object",
    "properties": {
      "_tag": {
        "type": "string",
        "enum": [
          "capy/Unauthorized"
        ]
      }
    },
    "required": [
      "_tag"
    ],
    "additionalProperties": false
  },
  "capy_ForbiddenEncoded": {
    "type": "object",
    "properties": {
      "_tag": {
        "type": "string",
        "enum": [
          "capy/Forbidden"
        ]
      },
      "mfaRequiredOrgId": {
        "type": "string"
      },
      "ssoRequired": {
        "type": "boolean"
      },
      "passkeyRequired": {
        "type": "boolean"
      }
    },
    "required": [
      "_tag"
    ],
    "additionalProperties": false
  },
  "capy_ReviewRoundNotFoundEncoded": {
    "type": "object",
    "properties": {
      "_tag": {
        "type": "string",
        "enum": [
          "capy/ReviewRoundNotFound"
        ]
      },
      "requestId": {
        "type": "string"
      }
    },
    "required": [
      "_tag",
      "requestId"
    ],
    "additionalProperties": false
  },
  "capy_RateLimitedEncoded": {
    "type": "object",
    "properties": {
      "_tag": {
        "type": "string",
        "enum": [
          "capy/RateLimited"
        ]
      },
      "retryAfterSeconds": {
        "type": "integer"
      }
    },
    "required": [
      "_tag",
      "retryAfterSeconds"
    ],
    "additionalProperties": false
  }
}
```

Full document: https://docs.capy.ai/openapi.json