Private Networks
Generated on 18 Mar 2026
https://api.paperspace.com/v1
Endpoints
GET List private networks
/private-networks
Authorizations:
BearerAuth
An API key or access token
Fetches a list of private networks.
Query Parameters
after
optional
Fetch the next page of results after this cursor.
limit
1 – 120 optional
The number of items to fetch after this page.
orderBy
optional
Order results by one of these fields.
Default:dtCreatedorder
optional
The order to sort the results by.
Default:descname
optional
region
optional
Request: /private-networks
curl -X GET \
-H "Authorization: Bearer $API_TOKEN" \
"https://api.paperspace.com/v1/private-networks"Responses
200
Successful response
application/json
hasMore
required
Whether there are more pages of results available.
items
required
The items on this page.
Show child properties
dtCreated
required
The date the private network was created.
dtDeleted
optional Nullable
The date the private network was deleted.
id
required
The ID of the private network.
name
required
The name of the private network.
netmask
required
The subnet mask of the private network.
network
required
The network prefix of the private network.
region
required
The region the private network is in.
nextPage
optional
The cursor required to fetch the next page of results. i.e. ?after=nextPage. This is null when there is no next page.
default
Error response
application/json
code
required
details
optional
message
required
Response
{
"hasMore": true,
"items": [
{
"dtCreated": "2019-08-24T14:15:22Z",
"id": "string",
"name": "string",
"netmask": "string",
"network": "string",
"region": "ny2"
}
],
"nextPage": "string"
}{
"code": "string",
"message": "string"
}POST Create a private network
/private-networks
Authorizations:
BearerAuth
An API key or access token
Creates a new private network.
Request Body: application/json
migrateMachines
optional
Whether to migrate all machines not currently in a private network to the new private network.
name
required
The name of the private network.
region
required
The region the private network is in.
Request: /private-networks
{
"migrateMachines": false,
"name": "string",
"region": "ny2"
}curl -X POST \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"migrateMachines": false,
"name": "string",
"region": "ny2"
}' \
"https://api.paperspace.com/v1/private-networks"Responses
200
Successful response
application/json
dtCreated
required
The date the private network was created.
dtDeleted
optional Nullable
The date the private network was deleted.
id
required
The ID of the private network.
name
required
The name of the private network.
netmask
required
The subnet mask of the private network.
network
required
The network prefix of the private network.
region
required
The region the private network is in.
default
Error response
application/json
code
required
details
optional
message
required
Response
{
"dtCreated": "2019-08-24T14:15:22Z",
"id": "string",
"name": "string",
"netmask": "string",
"network": "string",
"region": "ny2"
}{
"code": "string",
"message": "string"
}GET Get a private network
/private-networks/{id}
Authorizations:
BearerAuth
An API key or access token
Fetches a single private network by ID.
Path Parameters
id
required
The ID of the private network to fetch.
Request: /private-networks/{id}
curl -X GET \
-H "Authorization: Bearer $API_TOKEN" \
"https://api.paperspace.com/v1/private-networks/{id}"Responses
200
Successful response
application/json
dtCreated
required
The date the private network was created.
dtDeleted
optional Nullable
The date the private network was deleted.
id
required
The ID of the private network.
name
required
The name of the private network.
netmask
required
The subnet mask of the private network.
network
required
The network prefix of the private network.
region
required
The region the private network is in.
default
Error response
application/json
code
required
details
optional
message
required
Response
{
"dtCreated": "2019-08-24T14:15:22Z",
"id": "string",
"name": "string",
"netmask": "string",
"network": "string",
"region": "ny2"
}{
"code": "string",
"message": "string"
}PUT Update a private network
/private-networks/{id}
Authorizations:
BearerAuth
An API key or access token
Updates a single private network by ID.
Path Parameters
id
required
The ID of the private network to update.
Request Body: application/json
name
optional
The name of the private network.
Request: /private-networks/{id}
{
"name": "string"
}curl -X PUT \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}' \
"https://api.paperspace.com/v1/private-networks/{id}"Responses
200
Successful response
application/json
dtCreated
required
The date the private network was created.
dtDeleted
optional Nullable
The date the private network was deleted.
id
required
The ID of the private network.
name
required
The name of the private network.
netmask
required
The subnet mask of the private network.
network
required
The network prefix of the private network.
region
required
The region the private network is in.
default
Error response
application/json
code
required
details
optional
message
required
Response
{
"dtCreated": "2019-08-24T14:15:22Z",
"id": "string",
"name": "string",
"netmask": "string",
"network": "string",
"region": "ny2"
}{
"code": "string",
"message": "string"
}DELETE Delete a private network
/private-networks/{id}
Authorizations:
BearerAuth
An API key or access token
Deletes a single private network by ID.
Path Parameters
id
required
The ID of the private network to delete.
Request: /private-networks/{id}
curl -X DELETE \
-H "Authorization: Bearer $API_TOKEN" \
"https://api.paperspace.com/v1/private-networks/{id}"Responses
200
Successful response
application/json
id
required
The ID of the private network to delete.
default
Error response
application/json
code
required
details
optional
message
required
Response
{
"id": "string"
}{
"code": "string",
"message": "string"
}