REST API endpoints for network configurations
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /orgs/{org}/settings/network-configurations
Lists all hosted compute network configurations configured in an organization.
OAuth app tokens and personal access tokens (classic) need the read:network_configurations scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.org (string) (required)
The organization name. The name is not case sensitive.
per_page (integer)
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Default: 30
page (integer)
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Default: 1
Request:
curl -L \
-X GET \
https://api.github.com/orgs/ORG/settings/network-configurations
Response schema (Status: 200):
total_count: required, integernetwork_configurations: required, array of Hosted compute network configuration:
id: required, stringname: required, stringcompute_service: string, enum: none, actions, codespacesnetwork_settings_ids: array of stringfailover_network_settings_ids: array of stringfailover_network_enabled: booleancreated_on: required, string or null, format: date-timePOST /orgs/{org}/settings/network-configurations
Creates a hosted compute network configuration for an organization.
OAuth app tokens and personal access tokens (classic) need the write:network_configurations scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.org (string) (required)name (string) (required)
Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
compute_service (string)
The hosted compute service to use for the network configuration.
Can be one of: none, actions
network_settings_ids (array of strings) (required)
A list of identifiers of the network settings resources to use for the network configuration. Exactly one resource identifier must be specified in the list.
failover_network_settings_ids (array of strings)
A list of identifiers of the failover network settings resources to use for the network configuration. Exactly one resource identifier must be specified in the list.
failover_network_enabled (boolean)
Indicates whether the failover network resource is enabled.
Request:
curl -L \
-X POST \
https://api.github.com/orgs/ORG/settings/network-configurations \
-d '{
"name": "my-network-configuration",
"network_settings_ids": [
"23456789ABDCEF1"
],
"compute_service": "actions"
}'
Response schema (Status: 201):
id: required, stringname: required, stringcompute_service: string, enum: none, actions, codespacesnetwork_settings_ids: array of stringfailover_network_settings_ids: array of stringfailover_network_enabled: booleancreated_on: required, string or null, format: date-timeGET /orgs/{org}/settings/network-configurations/{network_configuration_id}
Gets a hosted compute network configuration configured in an organization.
OAuth app tokens and personal access tokens (classic) need the read:network_configurations scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.org (string) (required)
The organization name. The name is not case sensitive.
network_configuration_id (string) (required)
Unique identifier of the hosted compute network configuration.
Request:
curl -L \
-X GET \
https://api.github.com/orgs/ORG/settings/network-configurations/NETWORK_CONFIGURATION_ID
Response schema (Status: 200):
Same response schema as Create a hosted compute network configuration for an organization.
PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}
Updates a hosted compute network configuration for an organization.
OAuth app tokens and personal access tokens (classic) need the write:network_configurations scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.org (string) (required)
The organization name. The name is not case sensitive.
network_configuration_id (string) (required)
Unique identifier of the hosted compute network configuration.
name (string)
Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
compute_service (string)
The hosted compute service to use for the network configuration.
Can be one of: none, actions
network_settings_ids (array of strings)
A list of identifiers of the network settings resources to use for the network configuration. Exactly one resource identifier must be specified in the list.
failover_network_settings_ids (array of strings)
A list of identifiers of the failover network settings resources to use for the network configuration. Exactly one resource identifier must be specified in the list.
failover_network_enabled (boolean)
Indicates whether the failover network resource is enabled.
Request:
curl -L \
-X PATCH \
https://api.github.com/orgs/ORG/settings/network-configurations/NETWORK_CONFIGURATION_ID \
-d '{
"name": "my-network-configuration",
"network_settings_ids": [
"23456789ABDCEF1"
],
"compute_service": "actions"
}'
Response schema (Status: 200):
Same response schema as Create a hosted compute network configuration for an organization.
DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}
Deletes a hosted compute network configuration from an organization.
OAuth app tokens and personal access tokens (classic) need the write:network_configurations scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.org (string) (required)
The organization name. The name is not case sensitive.
network_configuration_id (string) (required)
Unique identifier of the hosted compute network configuration.
Request:
curl -L \
-X DELETE \
https://api.github.com/orgs/ORG/settings/network-configurations/NETWORK_CONFIGURATION_ID
Response schema (Status: 204):
GET /orgs/{org}/settings/network-settings/{network_settings_id}
Gets a hosted compute network settings resource configured for an organization.
OAuth app tokens and personal access tokens (classic) need the read:network_configurations scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.org (string) (required)
The organization name. The name is not case sensitive.
network_settings_id (string) (required)
Unique identifier of the hosted compute network settings.
Request:
curl -L \
-X GET \
https://api.github.com/orgs/ORG/settings/network-settings/NETWORK_SETTINGS_ID
Response schema (Status: 200):
id: required, stringnetwork_configuration_id: stringname: required, stringsubnet_id: required, stringregion: required, string