Submit a call lifecycle action

POST https://z.u1v.ru/api/v1/calls/{call_id}/actions

Submit an idempotent answer, decline, hangup, or mute action. Separate tenant push services commit terminal cleanup jobs atomically with accepted actions. A temporary cleanup transport failure does not undo the accepted action. The optional cleanup_pending response flag reports that cleanup has not yet been acknowledged by the provider. Repeating the same action can recover its pending cleanup without another provider send when the current registration already accepted the same event. Background retries preserve the original 30-second cleanup deadline; expired jobs cannot dispatch stale control events. Only timeout and rate-limit failures permit bounded retries after the saved provider-safe deadline. Successful siblings and permanent failures are not resubmitted. A provider Retry-After beyond the call deadline expires the job rather than permitting an early retry. Partial provider acceptance remains pending for the other selected routes. cleanup_accepted_routes counts current-registration acceptance for this logical event, including replay proof; cleanup_routes_contacted counts only new provider attempts made by this request.

Usage examples

The -u line implements HTTP Basic authentication. See the Authorization header documentation for how to get those credentials for users and bots.

curl -sSX POST https://z.u1v.ru/api/v1/calls/call-1/actions \
    -u EMAIL_ADDRESS:API_KEY \
    --data-urlencode call_trace_id=call-trace-1 \
    --data-urlencode action=answer \
    --data-urlencode source=user \
    --data-urlencode surface=lock_screen \
    --data-urlencode device_instance_id=device-1 \
    --data-urlencode client_action_id=action-1 \
    --data-urlencode idempotency_key=action-1 \
    --data-urlencode occurred_at=2026-08-11T10:00:00Z \
    --data-urlencode accessory_instance_id_hash=sha256:0123456789abcdef \
    --data-urlencode 'metadata={"network": "mobile"}'

Parameters

call_id string required in path

Example: "call-1"

Server-issued call identifier.


call_trace_id string required

Example: "call-trace-1"

End-to-end call trace identifier.


action string required

Example: "answer"

Requested call lifecycle action. Must be one of: "answer", "decline", "hangup", "mute".


source string required

Example: "user"

Source that produced the action.


surface string required

Example: "lock_screen"

User-interface surface that produced the action.


device_instance_id string required

Example: "device-1"

Stable application device identifier.


client_action_id string required

Example: "action-1"

Unique client-side action identifier.


idempotency_key string required

Example: "action-1"

Idempotency key for retry-safe submission.


occurred_at string | null optional

Example: "2026-08-11T10:00:00Z"

Optional ISO 8601 client action timestamp.


accessory_instance_id_hash string | null optional

Example: "sha256:0123456789abcdef"

Optional redacted accessory instance identifier.


metadata object | null optional

Example: {"network": "mobile"}

Optional app-owned action metadata.


Response

Example response(s)

Successful response from a UCS extension endpoint. Endpoint-specific fields are returned alongside the standard Zulip success envelope.

{
    "msg": "",
    "result": "success"
}