← All action domains

Dni planning

2 operations. Call each with POST https://app.chirply.io/api/v1/actions/<name> and a bearer token; the response is { "data": { "action", "summary", "result" } }. A read badge means the operation changes nothing; write requires the credential’s write scope.

Calculate pool capacity

dni_planning.buildread

Model exclusive DNI visitor reservations from anonymous activity windows and a user-chosen hold. Returns peak overlap and periods above a candidate pool, preserving unknown capacity. Pure and free: no provider call, account change, phone-number purchase, allocation, message or phone call. This capacity scenario does not replay the live sticky/LRU allocator or predict dropped calls, attribution accuracy or future traffic.

Parameters

FieldTypeRequiredDescription
windowsobject[]optionalOne to 500 windows on a shared relative-minute timeline. Defaults to six explicitly synthetic teaching rows. Same-visitor overlapping or touching ranges merge after the hold is added. Default: [{"visitor":1,"startMinute":0,"lastSeenMinute":5},{"visitor":2,"startMinute":2,"lastSeenMinute":10},{"visitor":3,"startMinute":6,"lastSeenMinute":8},{"visitor":4,"startMinute":31,"lastSeenMinute":33},{"visitor":5,"startMinute":35,"lastSeenMinute":40},{"visitor":6,"startMinute":43,"lastSeenMinute":45}]
windows[].visitorintegerrequiredAnonymous integer label, not a phone number, contact ID or personal identifier. Reuse the same label only for the same visitor; overlapping/touching reservation ranges merge.
windows[].startMinuteintegerrequiredFirst minute of this activity window, relative to one shared origin. Whole minutes only. Zero is a real offset; an unknown time must be resolved before modeling.
windows[].lastSeenMinuteintegerrequiredLast observed minute in this window, at or after startMinute. The model assumes continuous reservation between start and last seen, then adds holdMinutes.
holdMinutesintegeroptionalChosen modeling hold after last seen, 1–1440 whole minutes; default 30. This is your assumption, not a read of the live pool. An interval ends exclusively at lastSeenMinute + holdMinutes. Default: 30
candidatePoolSizeinteger (or null)optionalCandidate number count, 0–500, default 3 in the synthetic example. Null means unknown and leaves shortfall comparisons unknown; zero is explicit zero capacity. This does not provision or inspect any numbers. Default: 3

Example

curl -X POST https://app.chirply.io/api/v1/actions/dni_planning.build \
  -H "Authorization: Bearer chp_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "holdMinutes": 30,
    "candidatePoolSize": 3
  }'
Test with your API key

Over MCP the same operation is the tool dni_planning_build at https://app.chirply.io/api/mcp, same bearer token, same input.

Download capacity CSV

dni_planning.export_csvread

Return CSV text with anonymous input windows, merged reservation ranges, interval demand, candidate shortfall and the assumptions from Calculate pool capacity. Same pure calculation; free and read-only. No upload, provider request, number purchase or assignment, customer message, call or account mutation. The caller may save the CSV locally.

Parameters

FieldTypeRequiredDescription
windowsobject[]optionalOne to 500 windows on a shared relative-minute timeline. Defaults to six explicitly synthetic teaching rows. Same-visitor overlapping or touching ranges merge after the hold is added. Default: [{"visitor":1,"startMinute":0,"lastSeenMinute":5},{"visitor":2,"startMinute":2,"lastSeenMinute":10},{"visitor":3,"startMinute":6,"lastSeenMinute":8},{"visitor":4,"startMinute":31,"lastSeenMinute":33},{"visitor":5,"startMinute":35,"lastSeenMinute":40},{"visitor":6,"startMinute":43,"lastSeenMinute":45}]
windows[].visitorintegerrequiredAnonymous integer label, not a phone number, contact ID or personal identifier. Reuse the same label only for the same visitor; overlapping/touching reservation ranges merge.
windows[].startMinuteintegerrequiredFirst minute of this activity window, relative to one shared origin. Whole minutes only. Zero is a real offset; an unknown time must be resolved before modeling.
windows[].lastSeenMinuteintegerrequiredLast observed minute in this window, at or after startMinute. The model assumes continuous reservation between start and last seen, then adds holdMinutes.
holdMinutesintegeroptionalChosen modeling hold after last seen, 1–1440 whole minutes; default 30. This is your assumption, not a read of the live pool. An interval ends exclusively at lastSeenMinute + holdMinutes. Default: 30
candidatePoolSizeinteger (or null)optionalCandidate number count, 0–500, default 3 in the synthetic example. Null means unknown and leaves shortfall comparisons unknown; zero is explicit zero capacity. This does not provision or inspect any numbers. Default: 3

Example

curl -X POST https://app.chirply.io/api/v1/actions/dni_planning.export_csv \
  -H "Authorization: Bearer chp_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "holdMinutes": 30,
    "candidatePoolSize": 3
  }'
Test with your API key

Over MCP the same operation is the tool dni_planning_export_csv at https://app.chirply.io/api/mcp, same bearer token, same input.

The machine-readable version of this page is GET https://app.chirply.io/api/v1/actions?domain=dni_planning — same operations, with full JSON Schemas. Authentication, errors and rate limits are covered in the API documentation home.