SDK / APIRepositories
Analyze commits
Returns authoritative commit metadata, line attribution, and real sessions recorded in commit authorship notes for up to 100 SHAs.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
domain*string
org*string
repo*string
Query Parameters
shas*array<>
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/repos/string/string/string/commits?shas=string"{ "object": "response", "data": [ { "object": "commit", "sha": "string", "repository": { "object": "repository", "url": "string", "domain": "string", "org": "string", "name": "string" }, "parentShas": [ "string" ], "authoredAt": "2019-08-24T14:15:22Z", "committedAt": "2019-08-24T14:15:22Z", "authorName": "string", "authorEmail": "string", "actorEmails": [ "string" ], "actorLogins": [ "string" ], "subject": "string", "message": "string", "aiLines": 0, "humanLines": 0, "unknownLines": 0, "otherLines": 0, "nonAiBotLines": 0, "gitLinesAdded": 0, "gitLinesDeleted": 0, "knownAuthorship": true, "sessions": [ { "sessionId": "string", "tool": "string", "model": "string", "externalAgentId": "string" } ] } ], "meta": { "requestId": "string", "pagination": { "limit": 1, "offset": 0, "total": 0, "hasMore": true, "nextOffset": 0 } }}{ "object": "error", "error": { "code": "invalid_request", "message": "string", "details": null }, "meta": { "requestId": "string" }}{ "object": "error", "error": { "code": "invalid_request", "message": "string", "details": null }, "meta": { "requestId": "string" }}{ "object": "error", "error": { "code": "invalid_request", "message": "string", "details": null }, "meta": { "requestId": "string" }}