Skip to content
Pile
Esc
↑↓navigate↵open⌘Jpreview

Create customer auto replenish

POST/workspaces/{organizationId}/customers/auto-replenish
Authorization
AuthorizationBearer token · headerrequired

Workspace API key (Authorization: Bearer <key>). Issue keys under Settings → Developer or POST /workspaces/{organizationId}/tokens.

Path parameters
organizationIdstringrequired
Request body
application/json
totalLeadsinteger
min 5 · max 100 · default: 20
Responses
200

Executed 80/20 Core Wedge vs Exploration auto-replenish across presets using Effect and bulk DO ingest

totalPullednumberrequired
totalCreatednumberrequired
totalUpdatednumberrequired
batchesobject[]required
Show properties
Array of object
presetstringrequired
bucketstringrequired
ownerIdstringrequired
pulledCountnumberrequired
createdCountnumberrequired
updatedCountnumberrequired
nextOffsetnumberrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://pile.nyc/workspaces/string/customers/auto-replenish' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "totalLeads": 20
}'
Response
{
  "totalPulled": 0,
  "totalCreated": 0,
  "totalUpdated": 0,
  "batches": [
    {
      "preset": "string",
      "bucket": "string",
      "ownerId": "string",
      "pulledCount": 0,
      "createdCount": 0,
      "updatedCount": 0,
      "nextOffset": 0
    }
  ]
}

Was this page helpful?