v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Gets information about one or more branches in a repository.

post/#X-Amz-Target=CodeCommit_20150413.ListBranches

Query parameters

nextTokenstring

Pagination token

Headers

X-Amz-Target'CodeCommit_20150413.ListBranches' required

Request body

repositoryNamestring required

The name of the repository that contains the branches.

nextTokenstring

An enumeration token that allows the operation to batch the results.

Response

Success

branchesBranchName[]

The list of branch names.

nextTokenstring

An enumeration token that returns the batch of the results.