API

RepositoryAccess

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/repository_access/authorize create Success
POST /api/v1/repository_access/authorize_git create Success
GET /api/v1/repository_access/catalog load Physical Git repositories accessible to the authenticated user

Fields

Field Type Required Description

create

POST /api/v1/repository_access/authorize

Operation ID: api_v1_repository_access_authorize.

Authentication: bearer token (bearerAuth).

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/repository_access/authorize_git

Operation ID: api_v1_repository_access_authorize_git.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
X-Vex-Git-Read-Grant-Protocol header string No Value 1 advertises absolute-deadline enforcement; other values do not enable reuse.

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
402: The organization's billing limit refuses this usage; see error.upgrade_path

application/json

Property Type Required Description
error object Yes
error.code enum: billing_limit_exceeded Yes
error.dimension_value string,null Yes
error.limit number or string Yes Decimal quantities are serialized as strings
error.message string Yes
error.meter_key string Yes A billing meter key
error.reason enum: payment_required, hard_cap, allowance_exhausted, budget_exhausted, suspended, seat_limit Yes
error.requested number or string Yes
error.upgrade_path string Yes Frontend path of the organization's billing page
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/repository_access/catalog

Operation ID: api_v1_repository_access_catalog.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_slug query string No

Responses

200: Physical Git repositories accessible to the authenticated user

application/json

Property Type Required Description
repositories array of object Yes
repositories[].default_branch string Yes
repositories[].git_auth_username string Yes
repositories[].git_https_clone_url string (uri) Yes
repositories[].git_https_supported boolean Yes
repositories[].github_access_warnings array of object No
repositories[].github_access_warnings[].checked_at string Yes
repositories[].github_access_warnings[].installation_id string Yes
repositories[].github_access_warnings[].label string Yes
repositories[].github_access_warnings[].reason string Yes
repositories[].github_access_warnings[].repository string Yes
repositories[].github_access_warnings[].state enum: unknown, available, unavailable Yes
repositories[].membership_role string Yes
repositories[].organization_id string Yes
repositories[].organization_name string Yes
repositories[].organization_slug string Yes
repositories[].repository_id string Yes
repositories[].repository_name string Yes
repositories[].repository_slug string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway