Survey Quota Capacity

Allocate remaining survey recruitment capacity per stratum, accounting for completed and still-pending responses.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /survey-quota-capacity/v1/check with an x402 V2 client.

Worked example

Request

{
  "strata": [
    {
      "id": "north",
      "target": 10,
      "complete": 7,
      "pending": 1
    },
    {
      "id": "south",
      "target": 8,
      "complete": 9,
      "pending": 1
    }
  ]
}

Result

{
  "by_stratum": [
    {
      "id": "north",
      "open_invitations": 2,
      "remaining_completes": 3,
      "overcommitted": 0
    },
    {
      "id": "south",
      "open_invitations": 0,
      "remaining_completes": 0,
      "overcommitted": 2
    }
  ],
  "open_invitations": 2
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter