Skip to main content
GET
/
v2
/
capacity_transfers
List capacity transfers
curl --request GET \
  --url https://api.sfcompute.com/v2/capacity_transfers \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "has_more": true,
  "data": [
    {
      "object": "capacity_transfer",
      "id": "<string>",
      "status": "pending",
      "created_at": 1738972800,
      "from_capacity": "<string>",
      "to_capacity": "<string>",
      "zone": "richmond",
      "allocation_schedule_delta": [
        {
          "node_count": 123,
          "start_at": 1738972800,
          "end_at": 1738972800
        }
      ],
      "rejected_reason": "<string>"
    }
  ],
  "cursor": "ctfrc_gqXR7s0Kj5mHvE2wNpLc4Q"
}

Authorizations

Authorization
string
header
required

Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.

Query Parameters

capacity
string

Filter by source or destination capacity. Returns transfers where from_capacity_id = $1 OR to_capacity_id = $1. A resource path like 'sfc:capacity:acme:prod:my-capacity' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

Pattern: (cap_[0-9a-zA-Z_-]{1,21})|(sfc:capacity:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,3})
Example:

"cap_k3R-nX9vLm7Qp2Yw5Jd8F"

status
enum<string>

Filter by transfer status.

Available options:
pending,
executed,
rejected
limit
integer<u-int32>
default:50
Required range: 1 <= x <= 200
starting_after
string

Set to the response's cursor to fetch the next page.

Pattern: ^ctfrc_[A-Za-z0-9_-]+$
Example:

"ctfrc_gqXR7s0Kj5mHvE2wNpLc4Q"

ending_before
string

Set to the response's cursor to fetch the previous page.

Pattern: ^ctfrc_[A-Za-z0-9_-]+$
Example:

"ctfrc_gqXR7s0Kj5mHvE2wNpLc4Q"

Response

Paginated list of capacity transfers.

object
string
default:list
required
read-only
Allowed value: "list"
has_more
boolean
required
data
object[]
required
cursor
null | string

Pass as starting_after or ending_before to paginate.

Pattern: ^ctfrc_[A-Za-z0-9_-]+$
Example:

"ctfrc_gqXR7s0Kj5mHvE2wNpLc4Q"