List codespaces for a user in organization
GET
/orgs/{org}/members/{username}/codespaces https://api.github.com
Lists the codespaces that a member of an organization has for repositories in that organization.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
Parameters
path Path Parameters
| Name | Type |
|---|---|
org
required
The organization name. The name is not case sensitive. | string |
username
required
The handle for the GitHub user account. | string |
query Query Parameters
| Name | Type |
|---|---|
per_page The number of results per page (max 100). For more information, see "Using pagination in the REST API." | number |
page The page number of the results to fetch. For more information, see "Using pagination in the REST API." | number |
Responses
200 application/json
Response
{ total_count: number;codespaces: Codespace []; }
Redirects
304
Not modified
unknown
Client Errors
401 application/json
Requires authentication
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
403 application/json
Forbidden
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
404 application/json
Resource not found
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
Server Errors
500 application/json
Internal Error
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}