Codecommits
GET/repositories/{repo_id}/commit-authors
Who wrote these commits
get_commit_authorsNew
commit:read
A token needs thecommit:readscope: View commitsGranted bymcp_agent,mcp_agent_write,read_api,read_repository,write_api,write_repository.Every operation this scope unlocks
For each sha in shas the repository holds, the principals its author and committer addresses
belong to — a person anywhere, or a service account or AI organization's agent of the
repository's organization — each with its kind, so a page of commits links every author with
one request. Read fresh, never cached: who an address belongs to can change, while a commit
cannot. Only addresses the repository's own commits carry are resolved. Anyone who can read the
repository's code may call it, without signing in on a public repository.
Parameters
Path
- repo_idRepositoryId (string · uuid)Repository ID
Query
- shasstringComma-separated full commit SHAs, at most 100. A SHA the repository holds no commit for is left out of the answer.
Responses
200Each commit's author and committerapplication/json
itemsarray of CommitAuthorsOne entry per requested commit the repository holds, in the order asked. A sha it holds no commit for — a force-push may have dropped it — is left out.
- The CommitAuthors schema
- commit_shaCommitHash (string)The commit.
authorActorSummary or nulloptionalThe principal the commit's author address belongs to — a person anywhere, or a service account or agent of the repository's organization. Absent when the address is nobody's, or more than one principal's. Git does not authenticate an author: this says whose address the commit names, not who made it.
- The ActorSummary schema
- emailstringThe principal's address. An agent's is a generated no-reply address — the author of its commits.
unknownon a deleted actor and empty on a redacted one. - idstringThe principal's id: a user id, a service account id or an agent id, as
kindsays. Empty on a redacted actor. - usernamestringThe name to show: a person's or service account's username, or an agent's handle (which always ends in
-ai).deleted-userwhen the actor no longer resolves,redactedwhen the caller may not see who it was. - avatar_urlstring or nulloptionalThe principal's picture, when one is known. Absent otherwise: a client derives the deterministic avatar URL itself.
- kindPrincipalKinduserservice_accountagentor nulloptionalWhat the actor is — a person, a service account or an AI organization's agent — and so which page it links to. Absent on a placeholder (a redacted or deleted actor) and on an actor that is not a principal, such as the platform's own
systemactor; a client draws such an actor unlinked.
committerActorSummary or nulloptionalThe principal the commit's committer address belongs to, on the same terms as
author.- The ActorSummary schema
- emailstringThe principal's address. An agent's is a generated no-reply address — the author of its commits.
unknownon a deleted actor and empty on a redacted one. - idstringThe principal's id: a user id, a service account id or an agent id, as
kindsays. Empty on a redacted actor. - usernamestringThe name to show: a person's or service account's username, or an agent's handle (which always ends in
-ai).deleted-userwhen the actor no longer resolves,redactedwhen the caller may not see who it was. - avatar_urlstring or nulloptionalThe principal's picture, when one is known. Absent otherwise: a client derives the deterministic avatar URL itself.
- kindPrincipalKinduserservice_accountagentor nulloptionalWhat the actor is — a person, a service account or an AI organization's agent — and so which page it links to. Absent on a placeholder (a redacted or deleted actor) and on an actor that is not a principal, such as the platform's own
systemactor; a client draws such an actor unlinked.
200 exampleSynthesized example
{
"items": [
{
"commit_sha": "ec973e95fb914e54ac713bc832345e7345e35e3c"
}
]
}
400No SHAs, a malformed one, or more than 100application/json
Error codes
- BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
400 exampleSynthesized example
{
"error": {
"code": "code-1bfa",
"message": "Draw the region map from operation density"
}
}
401Unauthenticated — no credential, or an invalid oneapplication/json
Error codes
- UNAUTHORIZEDNo credential was sent, or the one sent is invalid, expired or revoked
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
401 exampleSynthesized example
{
"error": {
"code": "code-f483",
"message": "Stream pipeline status into the run header"
}
}
403Forbidden — the caller's access level or token scope is insufficientapplication/json
Error codes
- FORBIDDENYou are signed in but may not do this here;
reasonnames the permission or the rule that refused it - INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs;
required_scopenames it - PERMISSION_REQUIREDYou need a permission you do not hold here; the message names it
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
403 exampleSynthesized example
{
"error": {
"code": "code-9b40",
"message": "Draw the region map from operation density"
}
}
404Repository not foundapplication/json
Error codes
- NOT_FOUNDThe resource does not exist — or exists and you cannot see it: a private resource you have no access to answers exactly as an absent one does
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
404 exampleSynthesized example
{
"error": {
"code": "code-3196",
"message": "Pin a page's payload to the build that rendered it"
}
}
CLI
gitmoap commits get-authors
- --repo-ididRepository ID (id or owner/repo path)
- --shasstringComma-separated full commit SHAs, at most 100. A SHA the repository holds no commit for is left out of the answer.