Resolve a PBX integration effect

GET /api/v1/integrations/effects/{effect_id}

Resolve a stored PBX integration effect into its current navigation target. For example, an effect from a notification may open an employee's profile. The method does not answer a call, create a call, or re-run integration event processing.

Available to regular users only, not bots. The server looks the effect up by its ID together with the organization and the authenticated user. Someone else's effect, even in the same organization, returns HTTP 404, as does an unknown ID. Pass the ID received from the integration; do not compose it from an employee or call ID yourself.

The organization, the user and the resulting target are determined by the server. Do not use notification fields to pick a tenant, carrier or call route on your own. This rule is the same for SaaS, hybrid deployment and a dedicated server.

Usage examples

curl https://z.u1v.ru/api/v1/integrations/effects/notification-effect-0001 \
    -u EMAIL_ADDRESS:API_KEY

Parameters

effect_id

Required string in the request path: the opaque ID of the stored effect. Use the credentials of the account the effect was addressed to.

Response

FieldTypeMeaning
resultStringsuccess for a performed request; check state separately.
msgStringServer message.
ignored_parameters_unsupportedArray of stringsUnsupported parameters that were passed.
contract_versionStringContract version: 1.0.0.
schema_versionStringSchema version: 1.0.0.
effect_idStringThe resolved effect's ID.
correlation_idStringCorrelation ID of the stored integration event.
tenant_idStringThe tenant from the stored event, not from client parameters.
accountObjectThe authenticated account: realm_url and user_id.
stateStringThe target resolution state described below.
resolved_atStringThis request's time in UTC, RFC 3339 format.
expires_atStringThe expiry time in UTC, RFC 3339 format.
targetObject or nullThe navigation target when resolved; null in other states.
reasonString or nullThe machine-readable reason the target is absent; null when resolved.
state reason Client action
resolved null Verify the account and use the server-issued target.
expired effect_expired Show that the effect has expired; do not open a stale target.
deleted target_deleted Show that the target is unavailable or deleted.
offline effect_delivery_failed or target_resolver_unavailable Show that the effect is unavailable; do not guess the target from the notification.

The offline value is about the integration effect and does not prove the device has no network. All four states are returned with HTTP 200. The server computes the expiry from the creation time and its TTL setting: seven days by default, within 60 seconds to 30 days. Repeating the request does not extend the expiry.

The account object contains realm_url — the organization URL — and user_id — the authenticated user's ID. The target object contains type, id and navigation. The possible variants:

target.type navigation.kind Additional data
employee user_profile navigation.user_id — the current employee's ID.
call authoritative_call Fetch current call data before displaying.
queue authoritative_queue Fetch current queue data before displaying.
conversation authoritative_conversation Fetch current conversation data before displaying.

For the last three types, this response alone does not confirm the object's existence or access to it. The client must fetch the corresponding data from the authoritative source with permission checks. IDs and technical values are not translated.

An unknown or foreign effect returns HTTP 404; a regular bot's request — HTTP 400. A wrong organization domain, wrong credentials, or an incoming webhook bot request are rejected at authentication with HTTP 401. Use the error handling rules.

Response examples

{
    "account": {
        "realm_url": "https://chat.example.test",
        "user_id": 10
    },
    "contract_version": "1.0.0",
    "correlation_id": "correlation-0001",
    "effect_id": "notification-effect-0001",
    "expires_at": "2026-10-10T12:00:00Z",
    "msg": "",
    "reason": null,
    "resolved_at": "2026-10-03T12:00:00Z",
    "result": "success",
    "schema_version": "1.0.0",
    "state": "resolved",
    "target": {
        "id": "person-001",
        "navigation": {
            "kind": "user_profile",
            "user_id": 10
        },
        "type": "employee"
    },
    "tenant_id": "example"
}
{
    "account": {
        "realm_url": "https://chat.example.test",
        "user_id": 10
    },
    "contract_version": "1.0.0",
    "correlation_id": "correlation-0001",
    "effect_id": "notification-effect-0001",
    "expires_at": "2026-10-10T12:00:00Z",
    "msg": "",
    "reason": "effect_expired",
    "resolved_at": "2026-10-10T13:00:00Z",
    "result": "success",
    "schema_version": "1.0.0",
    "state": "expired",
    "target": null,
    "tenant_id": "example"
}
{
    "msg": "This endpoint does not accept bot requests.",
    "result": "error"
}
{
    "msg": "Integration effect not found.",
    "result": "error"
}