cURL
curl --request GET \ --url https://app.all-hands.dev/api/user/repository/branches \ --header 'X-Session-API-Key: <api-key>'
[ { "name": "<string>", "commit_sha": "<string>", "protected": true, "last_push_date": "<string>" } ]
Get branches for a repository.
Successful Response
The response is of type Branch · object[].
Branch · object[]
Was this page helpful?