Get who can use a project's repository
curl --request GET \ --url https://example.com/api/v1/projects/example/repository/access \ --header 'Authorization: Bearer <token>'Returns the teams and people who can use the repository linked to the project, whether it holds agents back, the project’s teams that cannot use it yet and, for a caller with github.manage, who can be added. Read live from GitHub. A project the caller cannot reach answers 404; a project with no linked repository, or one outside the managed organization, answers 409. Requires github.view.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project identifier (CUID2).
Project identifier (CUID2).
Responses
Section titled “Responses”Who can use the repository.
object
object
People with direct access, such as outside collaborators.
object
The team member who connected this GitHub account, when there is one.
object
object
Whether the repository holds the App back the way a code agent’s token requires: the default branch restricts updates and every branch outside agent/ restricts creations, updates and deletions, through rules the App cannot bypass.
What is missing when it is not.
object
The Chelsea team linked to this GitHub team, when there is one.
Teams assigned to the project and linked to a GitHub team that cannot use the repository yet.
object
The parts that could not be read; the rest is still returned.
Example
{ "data": { "unavailable": [ "teams" ] }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}GitHub failed (GITHUB_API_ERROR), or Chelsea’s GitHub App or the organization has not granted the access this needs (GITHUB_ACCESS_MISSING; the message names the step in Settings, Integrations, GitHub).
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC