Docs / API reference

Network volumes

Network volumes are persistent, region-bound storage that you attach to pods and serverless endpoints and access over an S3-compatible API.

The network volume object

NameTypeDescription
idstringUnique ID, prefixed vol_. Also the S3 bucket name.
objectstringAlways network_volume.
namestringDisplay name.
regionIdstringRegion the volume lives in. Pods and endpoints using it run in this region.
tierenumSTANDARD or HIGH_PERFORMANCE.
sizeInGbintegerProvisioned size, 10 to 4,000. Billed on this value.
usedInGbnumberSpace in use, refreshed every few minutes.
statusenumCREATING, AVAILABLE or DELETING.
s3BucketstringBucket name for the S3 API (the volume ID).
s3EndpointstringS3 endpoint URL for the volume's region.
attachedToarray{ type: "pod" | "endpoint", id } for every pod and endpoint using the volume.
createdAtstringISO 8601 timestamp.
updatedAtstringISO 8601 timestamp.
network volume object
{
  "id": "vol_c7d2h4ke",
  "object": "network_volume",
  "name": "models",
  "regionId": "eu-nl-1",
  "tier": "STANDARD",
  "sizeInGb": 500,
  "usedInGb": 212.4,
  "status": "AVAILABLE",
  "s3Bucket": "vol_c7d2h4ke",
  "s3Endpoint": "https://s3.eu-nl-1.apipods.com",
  "attachedTo": [
    {
      "type": "endpoint",
      "id": "ep_4n8wq2zt"
    }
  ],
  "createdAt": "2026-10-30T12:20:45Z",
  "updatedAt": "2026-11-02T08:11:09Z"
}

Endpoints

MethodPathDescription
GET/network-volumesList network volumes
POST/network-volumesCreate a network volume
GET/network-volumes/{volumeId}Retrieve a network volume
PATCH/network-volumes/{volumeId}Rename or grow a volume
DELETE/network-volumes/{volumeId}Delete a network volume
GET/s3-keysList S3 access keys
POST/s3-keysCreate an S3 access key
DELETE/s3-keys/{s3KeyId}Delete an S3 access key

List network volumes

GET/network-volumes

Returns network volumes, newest first.

Parameters

NameInTypeDescription
regionIdquerystringFilter by region.
limitqueryinteger1 to 100, default 20.
cursorquerystringPagination cursor.

Request

curl https://api.apipods.com/v1/network-volumes?regionId=eu-nl-1 \
  -H "Authorization: Bearer $APIPODS_API_KEY"

Response

200 OK
{
  "object": "list",
  "data": [
    {
      "id": "vol_c7d2h4ke",
      "object": "network_volume",
      "name": "models",
      "regionId": "eu-nl-1",
      "tier": "STANDARD",
      "sizeInGb": 500,
      "usedInGb": 212.4,
      "status": "AVAILABLE",
      "s3Bucket": "vol_c7d2h4ke",
      "s3Endpoint": "https://s3.eu-nl-1.apipods.com",
      "attachedTo": [
        {
          "type": "endpoint",
          "id": "ep_4n8wq2zt"
        }
      ],
      "createdAt": "2026-10-30T12:20:45Z",
      "updatedAt": "2026-11-02T08:11:09Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Create a network volume

POST/network-volumes

Creates a volume. It is CREATING for a few seconds, then AVAILABLE. Billing starts at creation and is based on sizeInGb: $0.14/GB per month for STANDARD (first 1 TB) and $0.28/GB per month for HIGH_PERFORMANCE. See Pricing.

HIGH_PERFORMANCE is available in eu-nl-1, eu-de-1, us-va-1, us-tx-2.

Parameters

NameInTypeDescription
namerequiredbodystringDisplay name.
regionIdrequiredbodystringRegion, e.g. eu-nl-1.
sizeInGbrequiredbodyinteger10 to 4,000.
tierbodyenumSTANDARD (default) or HIGH_PERFORMANCE.

Request

curl -X POST https://api.apipods.com/v1/network-volumes \
  -H "Authorization: Bearer $APIPODS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "models",
    "regionId": "eu-nl-1",
    "sizeInGb": 500,
    "tier": "STANDARD"
  }'

Response

201 Created
{
  "id": "vol_c7d2h4ke",
  "object": "network_volume",
  "name": "models",
  "regionId": "eu-nl-1",
  "tier": "STANDARD",
  "sizeInGb": 500,
  "usedInGb": 0,
  "status": "CREATING",
  "s3Bucket": "vol_c7d2h4ke",
  "s3Endpoint": "https://s3.eu-nl-1.apipods.com",
  "attachedTo": [],
  "createdAt": "2026-10-30T12:20:45Z",
  "updatedAt": "2026-10-30T12:20:45Z"
}
StatusWhen
400invalid_parameter: size out of range, or HIGH_PERFORMANCE is not offered in the region.

Retrieve a network volume

GET/network-volumes/{volumeId}

Returns one volume.

Parameters

NameInTypeDescription
volumeIdrequiredpathstringThe volume ID.

Request

curl https://api.apipods.com/v1/network-volumes/vol_c7d2h4ke \
  -H "Authorization: Bearer $APIPODS_API_KEY"

Response

200 OK
{
  "id": "vol_c7d2h4ke",
  "object": "network_volume",
  "name": "models",
  "regionId": "eu-nl-1",
  "tier": "STANDARD",
  "sizeInGb": 500,
  "usedInGb": 212.4,
  "status": "AVAILABLE",
  "s3Bucket": "vol_c7d2h4ke",
  "s3Endpoint": "https://s3.eu-nl-1.apipods.com",
  "attachedTo": [
    {
      "type": "endpoint",
      "id": "ep_4n8wq2zt"
    }
  ],
  "createdAt": "2026-10-30T12:20:45Z",
  "updatedAt": "2026-11-02T08:11:09Z"
}

Update a network volume

PATCH/network-volumes/{volumeId}

Renames or grows a volume. Growing is online: attached pods and workers see the new size within a minute. Volumes cannot shrink; copy data to a new, smaller volume instead.

Parameters

NameInTypeDescription
volumeIdrequiredpathstringThe volume ID.
namebodystringNew name.
sizeInGbbodyintegerNew size, larger than the current size, up to 4,000.

Request

curl -X PATCH https://api.apipods.com/v1/network-volumes/vol_c7d2h4ke \
  -H "Authorization: Bearer $APIPODS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sizeInGb": 1000
  }'

Response

200 OK
{
  "id": "vol_c7d2h4ke",
  "object": "network_volume",
  "name": "models",
  "regionId": "eu-nl-1",
  "tier": "STANDARD",
  "sizeInGb": 1000,
  "usedInGb": 212.4,
  "status": "AVAILABLE",
  "s3Bucket": "vol_c7d2h4ke",
  "s3Endpoint": "https://s3.eu-nl-1.apipods.com",
  "attachedTo": [
    {
      "type": "endpoint",
      "id": "ep_4n8wq2zt"
    }
  ],
  "createdAt": "2026-10-30T12:20:45Z",
  "updatedAt": "2026-11-18T14:02:10Z"
}
StatusWhen
400invalid_parameter: sizeInGb smaller than the current size.

Delete a network volume

DELETE/network-volumes/{volumeId}

Deletes the volume and all its data. The volume must not be attached to any pod or endpoint.

Warning: Deletion is permanent. Data cannot be recovered.

Parameters

NameInTypeDescription
volumeIdrequiredpathstringThe volume ID.

Request

curl -X DELETE https://api.apipods.com/v1/network-volumes/vol_c7d2h4ke \
  -H "Authorization: Bearer $APIPODS_API_KEY"

Response

Returns 204 No Content with an empty body.

StatusWhen
409resource_in_use: detach it from every pod and endpoint in attachedTo first.

List S3 access keys

GET/s3-keys

Returns S3 access keys in your organization. Secret access keys are never returned after creation.

Request

curl https://api.apipods.com/v1/s3-keys \
  -H "Authorization: Bearer $APIPODS_API_KEY"

Response

200 OK
{
  "object": "list",
  "data": [
    {
      "id": "s3k_9m2x4q7w",
      "object": "s3_key",
      "name": "training-sync",
      "accessKeyId": "APK7Q2M9X4W8KT3NZC",
      "createdBy": "usr_2m9x4k7q",
      "lastUsedAt": "2026-11-18T07:45:12Z",
      "createdAt": "2026-11-01T10:00:00Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Create an S3 access key

POST/s3-keys

Creates an access key pair for the S3 API. It can read and write every network volume in the organization. Use https://s3.{regionId}.apipods.com as the endpoint, the volume ID as the bucket, path-style addressing and SigV4 with the region set to the volume's regionId.

Parameters

NameInTypeDescription
namerequiredbodystringDisplay name.

Request

curl -X POST https://api.apipods.com/v1/s3-keys \
  -H "Authorization: Bearer $APIPODS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "training-sync"
  }'

Response

201 Created
{
  "id": "s3k_9m2x4q7w",
  "object": "s3_key",
  "name": "training-sync",
  "accessKeyId": "APK7Q2M9X4W8KT3NZC",
  "createdBy": "usr_2m9x4k7q",
  "lastUsedAt": null,
  "createdAt": "2026-11-01T10:00:00Z",
  "secretAccessKey": "kX8v…q2Rn"
}
Use the key with the AWS CLI
$ export AWS_ACCESS_KEY_ID=APK7Q2M9X4W8KT3NZC
$ export AWS_SECRET_ACCESS_KEY=…
$ aws s3 ls s3://vol_c7d2h4ke/ --endpoint-url https://s3.eu-nl-1.apipods.com --region eu-nl-1

Delete an S3 access key

DELETE/s3-keys/{s3KeyId}

Revokes the key immediately.

Parameters

NameInTypeDescription
s3KeyIdrequiredpathstringThe key's ID (s3k_…), not the access key ID.

Request

curl -X DELETE https://api.apipods.com/v1/s3-keys/s3k_9m2x4q7w \
  -H "Authorization: Bearer $APIPODS_API_KEY"

Response

Returns 204 No Content with an empty body.