Skip to content

Get Branches ​

Endpoint ​

http
GET /unified/ci-cd/branches/{id}
Integrations supported
  • GitHub
  • Travis CI

Path parameters ​

id
string
REQUIRED · The ID of the resource.
Example: 23423523

Query parameters ​

integrated_account_id
string · uuid
REQUIRED · The ID of the integrated account to use for the request.
Example: 62f44730-dd91-461e-bd6a-aedd9e0ad79d
owner
The slug of the owner on Github.
Required in
  • GitHub
repo_id
Integration specific notes
  • GitHubThe slug of the repository on Github.
  • Travis CIThe ID of the repository.
Required in
  • GitHub
  • Travis CI

Response Body ​

id
string
REQUIRED · The unique identifier for the branch
Supported in
  • GitHub
  • Travis CI
name
string
REQUIRED · Name of the branch
Supported in
  • GitHub
  • Travis CI
last_commit
string
The last commit of the branch
Supported in
  • GitHub
last_commit_by
string
The last commit author of the branch
Supported in
  • GitHub
last_commit_message
string
The last commit message of the branch
Supported in
  • GitHub
last_commit_at
string · date-time
The date and time when the last commit was made
Supported in
  • GitHub
created_at
string · date-time
The date and time when the branch was created
updated_at
string · date-time
The date and time when the branch was last updated
remote_data
object
Raw data returned from the remote API call.