Skip to content
Connect an agent

Organisations

Find the organisation's repositories by name

The linked installations' repositories whose owner/name holds q, by name, 50 a page: ids, names and the default branch, from the stored rows.

GET/orgs/{org}/github/repositories

TL;DR

QuestionAnswer
What does it do?Find the organisation's repositories by name.
What does it take?org in the path, and q, cursor in the query string.
What does it return?Status 200 with a body of type GithubRepositorySearch.
What can go wrong?400 the query is not valid, or the cursor is not one this API wrote; 401 not signed in; 403 a member may not (orgs.forbidden), or the plan has no GitHub App (plan.github_app_not_included); 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The linked installations' repositories whose owner/name holds q, by name, 50 a page: ids, names and the default branch, from the stored rows. The owner and an admin, on Pro and Enterprise.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Query parameters

FieldTypeRequiredDescription
qstringnoA part of owner/name, in any case. Leave it out for every repository.
cursorstringnoThe page's nextCursor from the page before, for the next page.

Responses

StatusMeaningBody
200A page of repositories.GithubRepositorySearch
400The query is not valid, or the cursor is not one this API wrote.ErrorResponse
401Not signed in.ErrorResponse
403A member may not (orgs.forbidden), or the plan has no GitHub App (plan.github_app_not_included).ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type GithubRepositorySearch.

FieldTypeRequiredDescription
itemsGithubPickerRepository[]yesBy name, at most 50 a page.
items[].idstringyesGitHub's repository id.
items[].fullNamestringyes
items[].defaultBranchstringyes
nextCursorstring | nullyesSend as cursor for the next page; null on the last.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools