v2

latestOpenAPI 3.0.32026-07-261513102.9 KB

Metrics Data

Access CodeRabbit metrics data programmatically via REST API.

get/v1/metrics/reviews

Query parameters

start_datestring date required

Start date in ISO 8601 format (YYYY-MM-DD)

end_datestring date required

End date in ISO 8601 format (YYYY-MM-DD)

organization_idsstring

Filter by organization Git provider IDs (comma-separated, max 10). Self-hosted instances only.

repository_idsstring

Filter by repository Git provider IDs (comma-separated, max 10).

user_idsstring

Filter by author Git provider IDs (comma-separated, max 10).

format'json' | 'csv'

Response format

limitinteger

Maximum records to return

cursorstring

Pagination cursor for fetching next page of results

Headers

x-coderabbitai-api-keystring required

Your CodeRabbit API key

Response

Successful response

next_cursorstring

Cursor for fetching the next page of results. Not present if no more results.