List

  • GET
  • /workspaces
  • /:domain
  • /projects
  • /:project_name
  • /repository
  • /branches

Returns branches from the project repository.

Request

REQUIRED SCOPES
WORKSPACE, REPOSITORY_READ
URL PARAMETERS
domainrequired string
The workspace domain.
project_namerequired string
The name ID of the project.

Last modified on Sep 23, 2024

Example:

CURL
curl -X GET "https://api.buddy.works/workspaces/:domain/projects/:project_name/repository/branches" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json" \
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy/projects/company-website/repository/branches", "html_url": "https://app.buddy.works/buddy/company-website/repository/branches", "branches": [ { "url": "https://api.buddy.works/workspaces/buddy/projects/company-website/repository/branches/master", "html_url": "https://app.buddy.works/buddy/company-website/repository/branch/master", "name": "master", "default": true } ] }
STATUS
200 OK
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999