Get an organization Copilot Space
Gets details about a specific Copilot Space owned by an organization. The authenticated user must have read access to the Space.
Internal Spaces require the authenticated user to be a member of the organization or have been granted read permissions.
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 the space.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
The unique identifier of the Copilot Space.
Responses
Section titled “ Responses ”Response
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 an organization copilot space
{ "id": 84, "number": 3, "name": "Team Planning Space", "description": "Organization space for team planning and coordination", "general_instructions": "Help the team with agile planning, sprint coordination, and project management best practices", "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", "base_role": "no_access", "resources_attributes": [ { "id": 123, "resource_type": "github_file", "metadata": { "repository_id": 456, "file_path": "docs/planning.md" } }, { "id": 124, "resource_type": "free_text", "metadata": { "name": "Team Guidelines", "text": "Our team follows agile methodology" } } ]}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"}