List organization Copilot Spaces
Lists Copilot Spaces owned by an organization. The authenticated user must have read access to the organization’s Copilot Spaces.
Only Spaces that are readable by the authenticated user are returned. This includes public Spaces and internal Spaces if the user is a member of the organization.
OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint.
Fine-grained tokens and GitHub App user access tokens must have been granted access to the organization that owns the space. They must also have been granted access to every repository referenced by resources in a space; spaces with inaccessible resources are omitted from the response.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
Query Parameters
Section titled “ Query Parameters ”The number of results per page (max 100).
A cursor, as given in the Link header. If specified, the query only searches for results before this cursor.
A cursor, as given in the Link header. If specified, the query only searches for results after this cursor.
Responses
Section titled “ Responses ”Response
object
The list of Copilot Spaces on this page of results.
A GitHub Copilot Space represents an interactive AI workspace where users can ask questions and get assistance.
object
The unique identifier of the space.
The number that identifies the space within its owner.
The display name of the space.
A description of the space.
General instructions for the Copilot Space.
The base role that determines default permissions.
no_access: No default accessreader: Default read permissionswriter: Default write permissions (organization spaces only)admin: Default admin permissions (organization spaces only)
A GitHub user.
object
A GitHub organization.
object
A GitHub user.
object
The date and time the space was created.
The date and time the space was last updated.
The HTML URL of the space.
The API URL of the space.
Resources attached to the space.
object
The unique identifier of the resource.
The type of resource.
The unique identifier of the chat attachment for uploaded files or media content.
The date and time the resource was created.
The date and time the resource was last updated.
Metadata specific to the resource type.
object
Repository ID for repository or file resources.
File path for file resources.
Text content for free text resources.
Name for the resource.
Issue or PR number.
Chat attachment ID for uploaded files or media.
Media type for media content resources.
URL for media content resources.
Height for media content resources.
Width for media content resources.
Examples
Example response for listing organization copilot spaces
{ "spaces": [ { "id": 84, "number": 3, "name": "Team Planning Space", "description": "Organization space for team planning and coordination", "owner": { "login": "octo-org", "id": 1, "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", "url": "https://api.github.com/orgs/octo-org", "repos_url": "https://api.github.com/orgs/octo-org/repos", "events_url": "https://api.github.com/orgs/octo-org/events", "hooks_url": "https://api.github.com/orgs/octo-org/hooks", "issues_url": "https://api.github.com/orgs/octo-org/issues", "members_url": "https://api.github.com/orgs/octo-org/members{/member}", "public_members_url": "https://api.github.com/orgs/octo-org/public_members{/member}", "avatar_url": "https://github.com/images/error/octocat_happy.gif", "description": "A great organization", "gravatar_id": "", "name": "octo-org", "company": "GitHub", "blog": "https://github.com/blog", "location": "San Francisco", "email": "octocat@github.com", "twitter_username": "octo-org", "html_url": "https://github.com/octo-org", "created_at": "2008-01-14T04:33:35Z", "updated_at": "2017-08-17T12:37:15Z", "type": "Organization" }, "creator": { "login": "defunkt", "id": 2, "node_id": "MDQ6VXNlcjI=", "avatar_url": "https://github.com/images/error/defunkt_happy.gif", "gravatar_id": "", "url": "https://api.github.com/users/defunkt", "html_url": "https://github.com/defunkt", "followers_url": "https://api.github.com/users/defunkt/followers", "following_url": "https://api.github.com/users/defunkt/following{/other_user}", "gists_url": "https://api.github.com/users/defunkt/gists{/gist_id}", "starred_url": "https://api.github.com/users/defunkt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/defunkt/subscriptions", "organizations_url": "https://api.github.com/users/defunkt/orgs", "repos_url": "https://api.github.com/users/defunkt/repos", "events_url": "https://api.github.com/users/defunkt/events{/privacy}", "received_events_url": "https://api.github.com/users/defunkt/received_events", "type": "User", "site_admin": true }, "created_at": "2023-02-15T08:30:00Z", "updated_at": "2023-02-15T14:45:00Z", "html_url": "https://github.com/copilot/spaces/octo-org/3", "api_url": "https://api.github.com/organizations/1/copilot-spaces/3" }, { "id": 85, "number": 4, "name": "Development Resources", "description": "Shared development documentation and resources", "owner": { "login": "octo-org", "id": 1, "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", "url": "https://api.github.com/orgs/octo-org", "repos_url": "https://api.github.com/orgs/octo-org/repos", "events_url": "https://api.github.com/orgs/octo-org/events", "hooks_url": "https://api.github.com/orgs/octo-org/hooks", "issues_url": "https://api.github.com/orgs/octo-org/issues", "members_url": "https://api.github.com/orgs/octo-org/members{/member}", "public_members_url": "https://api.github.com/orgs/octo-org/public_members{/member}", "avatar_url": "https://github.com/images/error/octocat_happy.gif", "description": "A great organization", "gravatar_id": "", "name": "octo-org", "company": "GitHub", "blog": "https://github.com/blog", "location": "San Francisco", "email": "octocat@github.com", "twitter_username": "octo-org", "html_url": "https://github.com/octo-org", "created_at": "2008-01-14T04:33:35Z", "updated_at": "2017-08-17T12:37:15Z", "type": "Organization" }, "creator": { "login": "octocat", "id": 3, "node_id": "MDQ6VXNlcjM=", "avatar_url": "https://github.com/images/error/octocat_happy.gif", "gravatar_id": "", "url": "https://api.github.com/users/octocat", "html_url": "https://github.com/octocat", "followers_url": "https://api.github.com/users/octocat/followers", "following_url": "https://api.github.com/users/octocat/following{/other_user}", "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", "organizations_url": "https://api.github.com/users/octocat/orgs", "repos_url": "https://api.github.com/users/octocat/repos", "events_url": "https://api.github.com/users/octocat/events{/privacy}", "received_events_url": "https://api.github.com/users/octocat/received_events", "type": "User", "site_admin": false }, "created_at": "2023-02-16T10:15:00Z", "updated_at": "2023-02-16T16:30:00Z", "html_url": "https://github.com/copilot/spaces/octo-org/4", "api_url": "https://api.github.com/organizations/1/copilot-spaces/4" } ]}Headers
Section titled “ Headers ”Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"Forbidden
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}