Skip to content

Scheduling proposals

Scheduling proposals let an organizer agent offer a set of candidate time slots to one or more participant agents, collect their responses, and resolve the proposal into a confirmed event once there’s enough agreement.

Creating, responding to and resolving proposals requires a Developer or Pro plan; on Free these return 403 plan_required. Listing, reading and cancelling work on every plan. Every scheduling endpoint needs an Organization key; an Agent key gets 403 forbidden. Developer includes 1,000 new proposals a month; Pro and Custom have no proposal limit.

A proposal moves through these states:

  • pending — awaiting participant responses
  • resolving — a resolve is creating the event right now (one request long); it becomes confirmed, or goes back to pending if the resolve fails
  • confirmed — resolved; a winning slot was picked and an event created
  • expired — TTL passed without resolution
  • cancelled — cancelled by the organizer or auto-cancelled because all participants declined
sequenceDiagram
participant Org as Organizer agent
participant API as Chronary API
participant P as Participant agent(s)
participant WH as Webhook subscribers
Org->>API: POST /v1/scheduling/proposals
API-->>WH: proposal.created
API-->>Org: 201 { id: spr_..., status: pending }
P->>API: POST /v1/scheduling/proposals/:id/respond
API-->>WH: proposal.responded
Note over API: When every participant has responded, or the organizer calls resolve
API->>API: pickBestSlot() + create event
API-->>WH: proposal.confirmed
Note over API,WH: Alternate terminal states
API-->>WH: proposal.cancelled (organizer cancel or all_declined)
API-->>WH: proposal.expired (expires_at passed)

For a code-heavy walkthrough, see the multi-agent scheduling and negotiation guide.


POST /v1/scheduling/proposals
FieldTypeRequiredDescription
titlestringYesHuman-readable title (max 500 chars)
descriptionstringNoOptional details (max 5000 chars)
organizer_agent_idstringYesAgent ID of the proposal organizer
participant_agent_idsstring[]Yes1–50 participant agent IDs
calendar_idstringYesDefault target calendar for the resolved event
slotsobject[]Yes1–20 candidate slots (see below)
expires_atstringNoISO timestamp — proposal auto-expires if unresolved
metadataobjectNoArbitrary JSON, max 16 KB

Each slot is:

FieldTypeRequiredDescription
start_timestringYesISO datetime
end_timestringYesISO datetime
weightnumberNoOrganizer preference, 0–10 (default 1.0)
calendar_idstringNoOverride target calendar for this specific slot
Terminal window
curl -X POST https://api.chronary.ai/v1/scheduling/proposals \
-H "Authorization: Bearer chr_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"title": "Q2 planning sync",
"organizer_agent_id": "agt_organizer",
"participant_agent_ids": ["agt_alice", "agt_bob"],
"calendar_id": "cal_team",
"slots": [
{ "start_time": "2026-04-20T14:00:00Z", "end_time": "2026-04-20T15:00:00Z", "weight": 2.0 },
{ "start_time": "2026-04-21T14:00:00Z", "end_time": "2026-04-21T15:00:00Z" }
],
"expires_at": "2026-04-19T00:00:00Z"
}'

Returns the proposal summary (full object without nested slots/responses):

{
"id": "spr_a1b2c3",
"title": "Q2 planning sync",
"organizer_agent_id": "agt_organizer",
"participant_agent_ids": ["agt_alice", "agt_bob"],
"calendar_id": "cal_team",
"status": "pending",
"expires_at": "2026-04-19T00:00:00Z",
"metadata": {},
"created_at": "2026-04-16T12:00:00Z",
"updated_at": "2026-04-16T12:00:00Z"
}
StatusTypeCause
400validation_errorInvalid slot times, empty participants, or malformed payload
403plan_requiredYour plan doesn’t include scheduling proposals (feature: "scheduling")
404not_foundOrganizer or participant agent not found, or calendar_id (the proposal’s or a slot’s) not found
409agent_inactiveThe proposal’s calendar, or a slot’s, belongs to a decommissioned agent and is read-only
429quota_exceededMonthly proposal quota reached (metric: "proposals")

GET /v1/scheduling/proposals
ParameterTypeDefaultDescription
statusstring—Filter by pending, resolving, confirmed, expired, or cancelled
organizer_agent_idstring—Filter by organizer
limitinteger501–200
offsetinteger0Pagination offset, at most 10,000

GET /v1/scheduling/proposals/:id

Returns the full proposal including slots and responses arrays.

StatusTypeCause
404not_foundProposal not found

POST /v1/scheduling/proposals/:id/respond
FieldTypeRequiredDescription
agent_idstringYesThe responding participant
responsestringYesaccept, decline, or counter
selected_slot_idstringIf acceptID of the slot the agent is accepting
counter_slotsobject[]NoUp to 20 alternative slots (informational when countering); each must end after it starts
messagestringNoUp to 2000 chars

Each participant may respond at most once per proposal. Subsequent responses return 409 conflict (“Agent has already responded to this proposal”).

The saved response, plus what the auto-resolve did if this response was the last one:

{
"id": "rsp_k9m2",
"agent_id": "agt_alice",
"response": "accept",
"selected_slot_id": "slt_x7",
"counter_slots": null,
"message": null,
"created_at": "2026-04-15T10:00:00.000Z",
"auto_resolved": "confirmed",
"auto_resolve_error": null
}
FieldDescription
auto_resolvedconfirmed or cancelled when this response was the last one and the proposal auto-resolved; null when responses are still outstanding or the auto-resolve failed
auto_resolve_errornull, or { code, message } when this response was the last one but the auto-resolve failed

A failed auto-resolve does not fail the request. The response is saved, proposal.responded is sent, and auto_resolve_error.message says what to do next. Usually the proposal is still pending: fix the cause, then call POST /:id/resolve. Don’t respond again: a second response from the same agent returns 409. auto_resolve_error.code is one of:

CodeCause
event_quota_exceededThe monthly event quota is used up, so the event can’t be created
calendar_not_foundThe calendar the event would go on was deleted
agent_inactiveThat calendar belongs to a decommissioned agent and is read-only
conflictA concurrent change to the proposal (get the proposal to see its status), or the winning slot’s calendar refuses overlapping events and the slot is already taken (the proposal stays pending: cancel it and propose new times)
no_valid_slotNo slot ends after it starts (only proposals created before that check), so it can’t be resolved; cancel it and create a new one
resolve_failedAn internal error; get the proposal to check its status, then resolve it if it is still pending
Terminal window
curl -X POST https://api.chronary.ai/v1/scheduling/proposals/spr_a1b2c3/respond \
-H "Authorization: Bearer chr_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agt_alice",
"response": "accept",
"selected_slot_id": "slt_x7"
}'
StatusTypeCause
400validation_errorMissing selected_slot_id when accepting, a selected_slot_id that is not one of this proposal’s slots, or a counter slot that does not end after it starts
403forbiddenagent_id is not a participant in this proposal, or the request used an Agent key
403plan_requiredYour plan doesn’t include scheduling proposals (feature: "scheduling")
404not_foundProposal not found
409conflictProposal is not in pending state
409conflictAgent has already responded
409agent_inactiveThe proposal’s calendar, or a slot’s, belongs to a decommissioned agent and is read-only; the response is not recorded

A failed auto-resolve is not an error status: see auto_resolve_error above.


POST /v1/scheduling/proposals/:id/resolve

Picks the winning slot using organizer preference weights plus participant acceptances, creates an event on the proposal’s calendar_id, and marks the proposal confirmed. If every participant has declined, the proposal is marked cancelled instead.

When confirmed:

{
"status": "confirmed",
"resolved_slot": {
"id": "slt_x7",
"start_time": "2026-04-20T14:00:00Z",
"end_time": "2026-04-20T15:00:00Z",
"weight": 2.0,
"calendar_id": null
}
}

When all participants declined:

{ "status": "cancelled", "reason": "all_declined" }
StatusTypeCause
403plan_requiredYour plan doesn’t include scheduling proposals (feature: "scheduling")
404not_foundProposal not found, or the calendar the event would go on was deleted (“Calendar not found”); the proposal stays pending
409conflictProposal is not in pending state (including resolving, while another resolve runs)
409conflictNo slot ends after it starts (only proposals created before that check); cancel it and create a new one
409agent_inactiveThe calendar the event would go on belongs to a decommissioned agent and is read-only; the proposal stays pending
409conflict (code: event_conflict)The calendar the event would go on refuses overlapping events and the winning slot is already taken (conflicting_event_ids); the proposal stays pending. Resolving again picks the same slot, so cancel it and propose new times
429quota_exceededThe monthly event quota is used up (metric: "events"); the proposal stays pending

If a resolve fails after the event was created, Chronary deletes that event and puts the proposal back to pending, so you can retry.


When the last pending response arrives via POST /respond, Chronary runs the same resolution logic as an explicit POST /resolve call — the organizer does not need to resolve manually. If that auto-resolve fails, the respond still succeeds with auto_resolve_error set, and the proposal is usually left pending for a later POST /resolve. The scoring rule is additive: score = slot.weight + Σ(response_scores), with accept = 1.0, counter = 0.3, decline = 0.0. Ties break by earliest start_time. If every response is a decline, the proposal is cancelled with reason all_declined instead of confirmed.


POST /v1/scheduling/proposals/:id/cancel

Cancels a pending proposal. Cannot be undone.

{ "status": "cancelled" }
StatusTypeCause
404not_foundProposal not found
409conflictProposal is not in pending state

Subscribe to these webhook types to receive push notifications for proposal lifecycle transitions. See the webhooks guide for signature verification and retry behavior.

TypeFired whenPayload
proposal.createdPOST /v1/scheduling/proposals succeedsFull proposal summary
proposal.respondedA participant calls POST /:id/respondproposal_id, agent_id, response
proposal.confirmedResolution picks a winning slot (via auto-resolve or explicit POST /:id/resolve)proposal_id, resolved_slot, created_event_id
proposal.cancelledOrganizer calls POST /:id/cancel, or every response was declineproposal_id, reason (organizer_cancelled or all_declined)
proposal.expiredexpires_at passed without resolutionproposal_id