Public IPs
Generated on 18 Mar 2026
https://api.paperspace.com/v1
Endpoints
GET List public IPs
/public-ips
Authorizations:
BearerAuth
An API key or access token
Fetches a list of public IPs.
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:descregion
optional
Request: /public-ips
curl -X GET \
-H "Authorization: Bearer $API_TOKEN" \
"https://api.paperspace.com/v1/public-ips"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
assignedMachineId
optional
The ID of the machine the public IP is assigned to.
dtCreated
required
The date the public IP was claimed.
ip
required
The IP address of the public IP.
region
required
The region of the public IP.
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": [
{
"assignedMachineId": "string",
"dtCreated": "2019-08-24T14:15:22Z",
"ip": "string",
"region": "ny2"
}
],
"nextPage": "string"
}{
"code": "string",
"message": "string"
}POST Claim a public IP
/public-ips
Authorizations:
BearerAuth
An API key or access token
Claims a public IP.
Request Body: application/json
region
required
The region of the public IP.
Request: /public-ips
{
"region": "ny2"
}curl -X POST \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"region": "ny2"
}' \
"https://api.paperspace.com/v1/public-ips"Responses
200
Successful response
application/json
assignedMachineId
optional
The ID of the machine the public IP is assigned to.
dtCreated
required
The date the public IP was claimed.
ip
required
The IP address of the public IP.
region
required
The region of the public IP.
default
Error response
application/json
code
required
details
optional
message
required
Response
{
"assignedMachineId": "string",
"dtCreated": "2019-08-24T14:15:22Z",
"ip": "string",
"region": "ny2"
}{
"code": "string",
"message": "string"
}PUT Assign a public IP
/public-ips/{ip}
Authorizations:
BearerAuth
An API key or access token
Assigns a public IP to a machine.
Path Parameters
ip
required
The IP address of the public IP.
Request Body: application/json
machineId
required Nullable
The ID of the machine to assign the public IP to.
Request: /public-ips/{ip}
{
"machineId": "string"
}curl -X PUT \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"machineId": "string"
}' \
"https://api.paperspace.com/v1/public-ips/{ip}"Responses
200
Successful response
application/json
assignedMachineId
optional
The ID of the machine the public IP is assigned to.
dtCreated
required
The date the public IP was claimed.
ip
required
The IP address of the public IP.
region
required
The region of the public IP.
default
Error response
application/json
code
required
details
optional
message
required
Response
{
"assignedMachineId": "string",
"dtCreated": "2019-08-24T14:15:22Z",
"ip": "string",
"region": "ny2"
}{
"code": "string",
"message": "string"
}DELETE Release a public IP
/public-ips/{ip}
Authorizations:
BearerAuth
An API key or access token
Releases a public IP.
Path Parameters
ip
required
The IP address of the public IP.
Request: /public-ips/{ip}
curl -X DELETE \
-H "Authorization: Bearer $API_TOKEN" \
"https://api.paperspace.com/v1/public-ips/{ip}"Responses
200
Successful response
application/json
ip
required
default
Error response
application/json
code
required
details
optional
message
required
Response
{
"ip": "string"
}{
"code": "string",
"message": "string"
}