eqixiacEquinix Infrastructure as Code

Query examples Proposal

Requests and responses for reading a provider's capabilities and locations, for queries with each kind of demand and location, and for query errors.

The examples use a fictional provider, provider.example, and reserved example values. ACCESS_TOKEN stands for an OAuth 2.0 access token. Request paths are relative to the base URL of the provider, https://{host}/capacity/v1.

Discover what a provider supports#

Read the capabilities#

Send the following request:

http
GET /capabilities

A provider that answers at metro level and discloses little. The provider responds with status 200.

The response body is:

JSON
{
  "specVersion": "1.0.0",
  "provider": {
    "name": "Example Data Centers",
    "url": "https://provider.example"
  },
  "conformance": [
    "CORE",
    "SIGNALS",
    "SUBSCRIPTIONS"
  ],
  "authentication": {
    "tokenUrl": "https://provider.example/oauth2/token"
  },
  "locationLevels": [
    "REGION",
    "COUNTRY",
    "METRO",
    "CAMPUS",
    "FACILITY"
  ],
  "areaLocations": true,
  "finestAnswerLevel": "METRO",
  "features": [
    "LIQUID_COOLING",
    "DIRECT_TO_CHIP_COOLING",
    "REAR_DOOR_HEAT_EXCHANGER",
    "PRIVATE_CAGE"
  ],
  "defaultPowerFactor": 0.95,
  "deliveryTypes": [
    "WEBHOOK",
    "PULL"
  ],
  "disclosure": {
    "timing": "CASE_BY_CASE",
    "density": "ALWAYS",
    "cabinets": "CASE_BY_CASE",
    "power": "NEVER",
    "interconnection": "CASE_BY_CASE",
    "reasons": "CASE_BY_CASE"
  },
  "limits": {
    "maxLocationsPerRequirement": 10,
    "answerValiditySeconds": 86400,
    "maxSignalLifetimeDays": 365,
    "maxSubscriptions": 25,
    "minNotificationIntervalSeconds": 3600,
    "eventRetentionHours": 168
  }
}

Read the capabilities of a provider that implements queries only#

Send the following request:

http
GET /capabilities

A provider that implements queries only, answers at facility level, and returns bands. The provider responds with status 200.

The response body is:

JSON
{
  "specVersion": "1.0.0",
  "provider": {
    "name": "Example Colocation",
    "url": "https://provider.example"
  },
  "conformance": [
    "CORE"
  ],
  "authentication": {
    "tokenUrl": "https://provider.example/oauth2/token"
  },
  "locationLevels": [
    "COUNTRY",
    "METRO",
    "CAMPUS",
    "FACILITY"
  ],
  "areaLocations": false,
  "finestAnswerLevel": "FACILITY",
  "features": [
    "LIQUID_COOLING",
    "DIRECT_TO_CHIP_COOLING",
    "IMMERSION_COOLING",
    "PRIVATE_CAGE",
    "PRIVATE_SUITE"
  ],
  "defaultPowerFactor": 0.9,
  "disclosure": {
    "timing": "ALWAYS",
    "density": "ALWAYS",
    "cabinets": "ALWAYS",
    "power": "CASE_BY_CASE",
    "interconnection": "CASE_BY_CASE",
    "reasons": "ALWAYS"
  },
  "limits": {
    "maxLocationsPerRequirement": 5,
    "answerValiditySeconds": 3600
  }
}

List locations#

Send the following request:

http
GET /locations?limit=5
Authorization: Bearer ACCESS_TOKEN

One page of locations with a cursor for the next page. The provider responds with status 200.

The response body is:

JSON
{
  "data": [
    {
      "level": "METRO",
      "code": "FR",
      "name": "Frankfurt",
      "standardCode": "DEFRA",
      "parent": {
        "level": "COUNTRY",
        "code": "DE"
      }
    },
    {
      "level": "CAMPUS",
      "code": "FR-CAMPUS-1",
      "name": "Frankfurt East Campus",
      "parent": {
        "level": "METRO",
        "code": "FR"
      }
    },
    {
      "level": "FACILITY",
      "code": "FR-A",
      "name": "Frankfurt A",
      "parent": {
        "level": "CAMPUS",
        "code": "FR-CAMPUS-1"
      }
    },
    {
      "level": "FACILITY",
      "code": "FR-B",
      "name": "Frankfurt B",
      "parent": {
        "level": "CAMPUS",
        "code": "FR-CAMPUS-1"
      }
    },
    {
      "level": "METRO",
      "code": "AM",
      "name": "Amsterdam",
      "standardCode": "NLAMS",
      "parent": {
        "level": "COUNTRY",
        "code": "NL"
      }
    }
  ],
  "pagination": {
    "limit": 5,
    "next": "bG9jLTAwMDY"
  }
}

Query capacity#

Cabinets and a density range#

40 cabinets at a density range, liquid cooling required, one network in the metro.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "reference": "example-query-1",
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "FR"
      },
      {
        "level": "COUNTRY",
        "code": "NL"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 40
      },
      "density": {
        "min": 5,
        "target": 8,
        "max": 100,
        "unit": "KVA"
      },
      "contiguous": true
    },
    "timeframe": {
      "neededForSale": "2026-Q4",
      "neededForService": "2027-06",
      "latestAcceptable": "2027-Q3",
      "termMonths": 60
    },
    "interconnection": [
      {
        "party": {
          "name": "Example Cloud",
          "asn": 64500,
          "type": "CLOUD"
        },
        "within": "METRO",
        "required": true
      }
    ],
    "desiredFeatures": [
      {
        "feature": "LIQUID_COOLING",
        "required": true
      },
      {
        "feature": "PRIVATE_CAGE",
        "required": false
      }
    ],
    "redundancy": {
      "power": "TWO_N"
    }
  }
}

A provider that returns bands, timing, and reasons. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0002",
  "reference": "example-query-1",
  "generatedAt": "2026-11-18T10:00:00Z",
  "validUntil": "2026-11-19T10:00:00Z",
  "grade": "AVAILABLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "grade": "AVAILABLE",
      "timing": {
        "status": "PLANNED",
        "availableForSale": "2026-12",
        "availableForService": "2027-Q2"
      },
      "density": {
        "min": 5,
        "target": 10,
        "max": 80,
        "unit": "KVA"
      },
      "cabinets": {
        "min": 40
      },
      "supportedFeatures": [
        {
          "feature": "LIQUID_COOLING",
          "support": "AVAILABLE",
          "required": true
        },
        {
          "feature": "PRIVATE_CAGE",
          "support": "POSSIBLE",
          "required": false
        }
      ],
      "interconnection": [
        {
          "party": {
            "name": "Example Cloud",
            "asn": 64500,
            "type": "CLOUD"
          },
          "within": "METRO",
          "presence": "AVAILABLE",
          "required": true
        }
      ],
      "nextStepUrl": "https://provider.example/contact"
    },
    {
      "location": {
        "level": "COUNTRY",
        "code": "NL"
      },
      "grade": "UNAVAILABLE",
      "timing": {
        "status": "PLANNED",
        "availableForSale": "NOT_DISCLOSED",
        "availableForService": "2028"
      },
      "supportedFeatures": [
        {
          "feature": "LIQUID_COOLING",
          "support": "UNAVAILABLE",
          "required": true
        },
        {
          "feature": "PRIVATE_CAGE",
          "support": "AVAILABLE",
          "required": false
        }
      ],
      "reasons": [
        "FEATURE",
        "TIMING"
      ]
    }
  ]
}

The same query answered with grades only#

40 cabinets at a density range, liquid cooling required, one network in the metro.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "reference": "example-query-1",
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "FR"
      },
      {
        "level": "COUNTRY",
        "code": "NL"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 40
      },
      "density": {
        "min": 5,
        "target": 8,
        "max": 100,
        "unit": "KVA"
      },
      "contiguous": true
    },
    "timeframe": {
      "neededForSale": "2026-Q4",
      "neededForService": "2027-06",
      "latestAcceptable": "2027-Q3",
      "termMonths": 60
    },
    "interconnection": [
      {
        "party": {
          "name": "Example Cloud",
          "asn": 64500,
          "type": "CLOUD"
        },
        "within": "METRO",
        "required": true
      }
    ],
    "desiredFeatures": [
      {
        "feature": "LIQUID_COOLING",
        "required": true
      },
      {
        "feature": "PRIVATE_CAGE",
        "required": false
      }
    ],
    "redundancy": {
      "power": "TWO_N"
    }
  }
}

The least a conforming provider returns. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0001",
  "reference": "example-query-1",
  "generatedAt": "2026-11-18T10:00:00Z",
  "validUntil": "2026-11-19T10:00:00Z",
  "grade": "POSSIBLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "grade": "POSSIBLE",
      "supportedFeatures": [
        {
          "feature": "LIQUID_COOLING",
          "support": "POSSIBLE",
          "required": true
        },
        {
          "feature": "PRIVATE_CAGE",
          "support": "NOT_DISCLOSED",
          "required": false
        }
      ]
    },
    {
      "location": {
        "level": "COUNTRY",
        "code": "NL"
      },
      "grade": "NOT_DISCLOSED",
      "supportedFeatures": [
        {
          "feature": "LIQUID_COOLING",
          "support": "NOT_DISCLOSED",
          "required": true
        },
        {
          "feature": "PRIVATE_CAGE",
          "support": "NOT_DISCLOSED",
          "required": false
        }
      ]
    }
  ]
}

Power alone, in a region or an area#

12 MW in a region or within 50 km of a point, not yet expressed in cabinets.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "REGION",
        "code": "EMEA"
      },
      {
        "level": "AREA",
        "center": {
          "latitude": 50.11,
          "longitude": 8.68
        },
        "radiusKm": 50
      }
    ],
    "demand": {
      "power": {
        "value": 12,
        "unit": "MW"
      }
    },
    "timeframe": {
      "neededForService": "2028",
      "ramp": [
        {
          "by": "2028-01-01",
          "percent": 50
        },
        {
          "by": "2028-07-01",
          "percent": 100
        }
      ]
    },
    "desiredFeatures": [
      {
        "feature": "DIRECT_TO_CHIP_COOLING",
        "required": true
      }
    ]
  }
}

A region answered as a whole and an area answered with one named location. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0110",
  "generatedAt": "2026-11-18T10:14:00Z",
  "validUntil": "2026-11-19T10:14:00Z",
  "grade": "POSSIBLE",
  "results": [
    {
      "location": {
        "level": "REGION",
        "code": "EMEA"
      },
      "grade": "POSSIBLE",
      "supportedFeatures": [
        {
          "feature": "DIRECT_TO_CHIP_COOLING",
          "support": "POSSIBLE",
          "required": true
        }
      ],
      "reasons": [
        "REVIEW_REQUIRED"
      ]
    },
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "requested": {
        "level": "AREA",
        "center": {
          "latitude": 50.11,
          "longitude": 8.68
        },
        "radiusKm": 50
      },
      "grade": "POSSIBLE",
      "timing": {
        "status": "PLANNED",
        "availableForService": "2028"
      },
      "supportedFeatures": [
        {
          "feature": "DIRECT_TO_CHIP_COOLING",
          "support": "AVAILABLE",
          "required": true
        }
      ],
      "reasons": [
        "TIMING"
      ]
    }
  ]
}

Total power, cabinets, and density together#

Total power with a cabinet count and a density range, as circuit capacity in kVA.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "reference": "example-query-2",
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "FR"
      }
    ],
    "demand": {
      "power": {
        "value": 600,
        "unit": "KVA"
      },
      "powerBasis": "CIRCUIT_CAPACITY",
      "powerFactor": 0.95,
      "cabinets": {
        "count": 30
      },
      "density": {
        "min": 10,
        "target": 20,
        "max": 40,
        "unit": "KVA"
      }
    },
    "timeframe": {
      "neededForService": "2027-Q1",
      "termMonths": 36
    }
  }
}

An answer with a power band and a cabinet band. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0101",
  "reference": "example-query-2",
  "generatedAt": "2026-11-18T10:05:00Z",
  "validUntil": "2026-11-19T10:05:00Z",
  "grade": "AVAILABLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "grade": "AVAILABLE",
      "timing": {
        "status": "IN_SERVICE",
        "availableForSale": "NOW",
        "availableForService": "2027-01"
      },
      "density": {
        "min": 5,
        "max": 40,
        "unit": "KVA"
      },
      "cabinets": {
        "min": 30
      },
      "power": {
        "min": 600,
        "unit": "KVA"
      },
      "supportedFeatures": []
    }
  ]
}

A facility question answered at metro level#

A question about one facility.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "FACILITY",
        "code": "FR-A"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 12
      },
      "density": {
        "target": 15,
        "unit": "KW"
      }
    },
    "timeframe": {
      "neededForService": "2027-03"
    },
    "desiredFeatures": [
      {
        "feature": "LIQUID_COOLING",
        "required": true
      }
    ]
  }
}

The provider answers for the metro and says which location was requested. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0102",
  "generatedAt": "2026-11-18T10:06:00Z",
  "validUntil": "2026-11-19T10:06:00Z",
  "grade": "AVAILABLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "requested": {
        "level": "FACILITY",
        "code": "FR-A"
      },
      "grade": "AVAILABLE",
      "supportedFeatures": [
        {
          "feature": "LIQUID_COOLING",
          "support": "AVAILABLE",
          "required": true
        }
      ]
    }
  ]
}

An area answered with named locations#

Everything within 400 km of a point.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "AREA",
        "center": {
          "latitude": 50.11,
          "longitude": 8.68
        },
        "radiusKm": 400
      }
    ],
    "demand": {
      "power": {
        "value": 2,
        "unit": "MW"
      }
    },
    "timeframe": {
      "neededForService": "2027"
    }
  }
}

One result for each named location the provider reports inside the area. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0103",
  "generatedAt": "2026-11-18T10:07:00Z",
  "validUntil": "2026-11-19T10:07:00Z",
  "grade": "AVAILABLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "requested": {
        "level": "AREA",
        "center": {
          "latitude": 50.11,
          "longitude": 8.68
        },
        "radiusKm": 400
      },
      "grade": "POSSIBLE",
      "timing": {
        "status": "PLANNED",
        "availableForService": "2027-Q4"
      },
      "supportedFeatures": [],
      "reasons": [
        "TIMING"
      ]
    },
    {
      "location": {
        "level": "METRO",
        "code": "AM"
      },
      "requested": {
        "level": "AREA",
        "center": {
          "latitude": 50.11,
          "longitude": 8.68
        },
        "radiusKm": 400
      },
      "grade": "AVAILABLE",
      "timing": {
        "status": "PLANNED",
        "availableForService": "2027-Q2"
      },
      "supportedFeatures": []
    }
  ]
}

A metro the provider does not serve#

Two metros, one of which the provider does not serve.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "FR"
      },
      {
        "level": "METRO",
        "code": "USNYC",
        "scheme": "STANDARD"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 4
      },
      "density": {
        "max": 8,
        "unit": "KVA"
      }
    }
  }
}

UNAVAILABLE with reason LOCATION_NOT_SERVED for the metro the provider does not serve. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0104",
  "generatedAt": "2026-11-18T10:08:00Z",
  "validUntil": "2026-11-19T10:08:00Z",
  "grade": "AVAILABLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "grade": "AVAILABLE",
      "timing": {
        "status": "IN_SERVICE",
        "availableForSale": "NOW",
        "availableForService": "NOW"
      },
      "supportedFeatures": []
    },
    {
      "location": {
        "level": "METRO",
        "code": "USNYC",
        "scheme": "STANDARD"
      },
      "grade": "UNAVAILABLE",
      "supportedFeatures": [],
      "reasons": [
        "LOCATION_NOT_SERVED"
      ]
    }
  ]
}

A partial fit#

60 adjacent cabinets, of which at least 40 are worth an answer.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "LD"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 60,
        "minimum": 40
      },
      "density": {
        "target": 12,
        "max": 20,
        "unit": "KW"
      },
      "spaceType": "CAGE",
      "contiguous": true
    },
    "timeframe": {
      "neededForService": "2027-Q2"
    },
    "desiredFeatures": [
      {
        "feature": "PRIVATE_CAGE",
        "required": false
      }
    ]
  }
}

POSSIBLE with a cabinet band below the requested count and the reason. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0105",
  "generatedAt": "2026-11-18T10:09:00Z",
  "validUntil": "2026-11-19T10:09:00Z",
  "grade": "POSSIBLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "LD"
      },
      "grade": "POSSIBLE",
      "timing": {
        "status": "IN_SERVICE",
        "availableForService": "2027-Q2"
      },
      "density": {
        "max": 20,
        "unit": "KW"
      },
      "cabinets": {
        "min": 40,
        "max": 50
      },
      "supportedFeatures": [
        {
          "feature": "PRIVATE_CAGE",
          "support": "AVAILABLE",
          "required": false
        }
      ],
      "reasons": [
        "SPACE"
      ]
    }
  ]
}

Interconnection parties and latency#

Two parties in the metro, one with a latency limit.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "FR"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 8
      },
      "density": {
        "target": 10,
        "unit": "KW"
      }
    },
    "timeframe": {
      "neededForService": "2027-06"
    },
    "interconnection": [
      {
        "party": {
          "name": "Example Cloud",
          "asn": 64500,
          "type": "CLOUD"
        },
        "within": "METRO",
        "maxRoundTripMs": 2,
        "required": true
      },
      {
        "party": {
          "name": "Example Network",
          "asn": 64501,
          "type": "NETWORK"
        },
        "within": "FACILITY",
        "required": false
      }
    ]
  }
}

A latency band for one party and NOT_DISCLOSED for the other. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0106",
  "generatedAt": "2026-11-18T10:10:00Z",
  "validUntil": "2026-11-19T10:10:00Z",
  "grade": "AVAILABLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "grade": "AVAILABLE",
      "supportedFeatures": [],
      "interconnection": [
        {
          "party": {
            "name": "Example Cloud",
            "asn": 64500,
            "type": "CLOUD"
          },
          "within": "METRO",
          "presence": "AVAILABLE",
          "required": true,
          "roundTripMs": {
            "min": 0.4,
            "max": 1.2
          }
        },
        {
          "party": {
            "name": "Example Network",
            "asn": 64501,
            "type": "NETWORK"
          },
          "within": "FACILITY",
          "presence": "NOT_DISCLOSED",
          "required": false
        }
      ]
    }
  ]
}

A ramp with a sale date and a service date#

20 MW that ramps over 18 months, with a sale date and a service date.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "COUNTRY",
        "code": "DE"
      }
    ],
    "demand": {
      "power": {
        "value": 20,
        "unit": "MW"
      },
      "spaceType": "HALL"
    },
    "timeframe": {
      "neededForSale": "2027-Q1",
      "neededForService": "2028-Q1",
      "latestAcceptable": "2028-06",
      "termMonths": 120,
      "ramp": [
        {
          "by": "2028-Q1",
          "percent": 25
        },
        {
          "by": "2028-Q4",
          "percent": 60
        },
        {
          "by": "2029-06",
          "percent": 100
        }
      ]
    },
    "desiredFeatures": [
      {
        "feature": "DIRECT_TO_CHIP_COOLING",
        "required": true
      }
    ],
    "offering": "WHOLESALE"
  }
}

Planned capacity with a sale date to the month and a service date to the year. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0107",
  "generatedAt": "2026-11-18T10:11:00Z",
  "validUntil": "2026-11-19T10:11:00Z",
  "grade": "POSSIBLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "requested": {
        "level": "COUNTRY",
        "code": "DE"
      },
      "grade": "POSSIBLE",
      "timing": {
        "status": "PLANNED",
        "availableForSale": "2027-03",
        "availableForService": "2028"
      },
      "supportedFeatures": [
        {
          "feature": "DIRECT_TO_CHIP_COOLING",
          "support": "AVAILABLE",
          "required": true,
          "availableForService": "2028"
        }
      ],
      "reasons": [
        "TIMING",
        "REVIEW_REQUIRED"
      ],
      "nextStepUrl": "https://provider.example/contact"
    }
  ]
}

An immediate need#

No timeframe, which states an immediate need.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "AM"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 2
      },
      "density": {
        "max": 6,
        "unit": "KVA"
      }
    }
  }
}

In service, for sale now and usable now. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0108",
  "generatedAt": "2026-11-18T10:12:00Z",
  "validUntil": "2026-11-19T10:12:00Z",
  "grade": "AVAILABLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "AM"
      },
      "grade": "AVAILABLE",
      "timing": {
        "status": "IN_SERVICE",
        "availableForSale": "NOW",
        "availableForService": "NOW"
      },
      "density": {
        "max": 10,
        "unit": "KVA"
      },
      "cabinets": {
        "min": 2
      },
      "supportedFeatures": []
    }
  ]
}

Redundancy and power feed constraints#

Redundancy, a DC power feed, and a commercial offering as hard constraints.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "FR"
      },
      {
        "level": "METRO",
        "code": "AM"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 16
      },
      "density": {
        "target": 30,
        "unit": "KW"
      }
    },
    "timeframe": {
      "neededForService": "2027-09"
    },
    "redundancy": {
      "power": "TWO_N",
      "cooling": "N_PLUS_1"
    },
    "powerFeed": {
      "current": "DC",
      "voltage": 400
    },
    "offering": "RETAIL_COLOCATION"
  }
}

UNAVAILABLE in one metro with the reasons, and POSSIBLE in the other. The provider responds with status 200.

The response body is:

JSON
{
  "answerId": "ans-0109",
  "generatedAt": "2026-11-18T10:13:00Z",
  "validUntil": "2026-11-19T10:13:00Z",
  "grade": "POSSIBLE",
  "results": [
    {
      "location": {
        "level": "METRO",
        "code": "FR"
      },
      "grade": "UNAVAILABLE",
      "supportedFeatures": [],
      "reasons": [
        "REDUNDANCY",
        "POWER_FEED"
      ]
    },
    {
      "location": {
        "level": "METRO",
        "code": "AM"
      },
      "grade": "POSSIBLE",
      "timing": {
        "status": "PLANNED",
        "availableForService": "NOT_DISCLOSED"
      },
      "supportedFeatures": [],
      "reasons": [
        "POWER_FEED",
        "REVIEW_REQUIRED"
      ]
    }
  ]
}

Query errors#

Total power that does not fit the cabinets and density#

Total power that 40 cabinets cannot hold at the density max.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "FR"
      }
    ],
    "demand": {
      "power": {
        "value": 5,
        "unit": "MW"
      },
      "cabinets": {
        "count": 40
      },
      "density": {
        "max": 100,
        "unit": "KVA"
      }
    }
  }
}

Total power does not fit the cabinet count and density. The provider responds with status 422.

The response body is:

JSON
{
  "type": "https://opencapacity.example/problems/inconsistent-demand",
  "title": "Demand is inconsistent",
  "status": 422,
  "code": "INCONSISTENT_DEMAND",
  "detail": "power of 5 MW is greater than 40 cabinets at a density max of 100 kVA.",
  "errors": [
    {
      "pointer": "/requirement/demand/power",
      "detail": "Must not exceed cabinets.count times density.max."
    }
  ]
}

An area sent to a provider that does not accept areas#

Everything within 400 km of a point.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "AREA",
        "center": {
          "latitude": 50.11,
          "longitude": 8.68
        },
        "radiusKm": 400
      }
    ],
    "demand": {
      "power": {
        "value": 2,
        "unit": "MW"
      }
    },
    "timeframe": {
      "neededForService": "2027"
    }
  }
}

An area sent to a provider that does not accept areas. The provider responds with status 422.

The response body is:

JSON
{
  "type": "https://opencapacity.example/problems/unsupported-location-level",
  "title": "Location level is not supported",
  "status": 422,
  "code": "UNSUPPORTED_LOCATION_LEVEL",
  "detail": "This provider does not accept a point and a radius as a location.",
  "errors": [
    {
      "pointer": "/requirement/locations/0",
      "detail": "Use a REGION, COUNTRY, METRO, CAMPUS, or FACILITY location."
    }
  ]
}

Too many locations#

14 countries sent to a provider that accepts 10 locations.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "COUNTRY",
        "code": "DE"
      },
      {
        "level": "COUNTRY",
        "code": "NL"
      },
      {
        "level": "COUNTRY",
        "code": "GB"
      },
      {
        "level": "COUNTRY",
        "code": "FR"
      },
      {
        "level": "COUNTRY",
        "code": "IE"
      },
      {
        "level": "COUNTRY",
        "code": "ES"
      },
      {
        "level": "COUNTRY",
        "code": "IT"
      },
      {
        "level": "COUNTRY",
        "code": "SE"
      },
      {
        "level": "COUNTRY",
        "code": "CH"
      },
      {
        "level": "COUNTRY",
        "code": "AT"
      },
      {
        "level": "COUNTRY",
        "code": "BE"
      },
      {
        "level": "COUNTRY",
        "code": "DK"
      },
      {
        "level": "COUNTRY",
        "code": "PL"
      },
      {
        "level": "COUNTRY",
        "code": "PT"
      }
    ],
    "demand": {
      "power": {
        "value": 1,
        "unit": "MW"
      }
    }
  }
}

More locations than the provider accepts in one requirement. The provider responds with status 422.

The response body is:

JSON
{
  "type": "https://opencapacity.example/problems/too-many-locations",
  "title": "Too many locations",
  "status": 422,
  "code": "TOO_MANY_LOCATIONS",
  "detail": "A requirement can name at most 10 locations. This one names 14.",
  "errors": [
    {
      "pointer": "/requirement/locations",
      "detail": "Send 10 locations or fewer."
    }
  ]
}

Query quota used up#

No timeframe, which states an immediate need.

Send the following request:

http
POST /queries
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

The request body is:

JSON
{
  "requirement": {
    "locations": [
      {
        "level": "METRO",
        "code": "AM"
      }
    ],
    "demand": {
      "cabinets": {
        "count": 2
      },
      "density": {
        "max": 6,
        "unit": "KVA"
      }
    }
  }
}

The query quota for the period is used up. The provider responds with status 429:

http
Retry-After: 3600

The response body is:

JSON
{
  "type": "https://opencapacity.example/problems/quota-exceeded",
  "title": "Query quota exceeded",
  "status": 429,
  "code": "QUOTA_EXCEEDED",
  "detail": "The daily query quota for this client is used up. Retry after the time in the Retry-After header."
}