Project

Get branch information

Return the Project's default branch and any branches requested by name.

post/v2/project/branches/info

Headers

gt-api-version'2025-01-01.v0' | '2025-11-03.v1' | '2026-02-18.v1' | '2026-03-06.v1'

API contract version. Defaults to the oldest supported version.

API contract version. Defaults to the oldest supported version.

gt-project-idstring

Target project ID. Required when authenticating with an organization API key; ignored with project-scoped API keys (the project is resolved from the key).

Target project ID. Required when authenticating with an organization API key; ignored with project-scoped API keys (the project is resolved from the key).

Request body

branchNamesstring[]

Response

Branch information

Changes

Changed in 1 of the 3 revisions of this API.1217

  • 367cd605d0901217See the full diff
    • the defaultBranch response's property type/format changed from object null/ to / for status 200

      response-property-type-changed

    • removed the optional property defaultBranch/id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property defaultBranch/name from the response with the 200 status

      response-optional-property-removed

    • the endpoint scheme security BearerAuth was added to the API

      api-security-added

    • api tag Project added

      api-tag-added

    • api tag Branches removed

      api-tag-removed

    • added the media type text/html for the response with the status 400

      response-media-type-added

    • added the media type text/html for the response with the status 401

      response-media-type-added

    • added the media type text/html for the response with the status 403

      response-media-type-added

    • added the non-success response with the status 413

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • added Branch subschema #2 to the defaultBranch response property allOf list for the response status 200

      response-property-all-of-added

    • the response property branches became required for the status 200

      response-property-became-required

    • the response property branches/items/id became required for the status 200

      response-property-became-required

    • the response property branches/items/name became required for the status 200

      response-property-became-required

    • the response property defaultBranch became required for the status 200

      response-property-became-required

    • the response property error became required for the status 400

      response-property-became-required

    • the response property error became required for the status 401

      response-property-became-required

    • the response property error became required for the status 403

      response-property-became-required

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog