PreCallHookCreated
The answer of a hook creation (1.52.0): the hook and its secret once.
An object with 20 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
allowed_agent_ids | array of AgentId | yes | Agents besides the routed one whose published versions a response may select; empty allows only versions of the routed Agent. |
consecutive_failures | integer | yes | |
created_at | Timestamp | yes | |
default | PreCallHookDefault or null | yes | |
directions | array of PreCallHookDirection | yes | |
id | PreCallHookId | yes | |
object | "pre_call_hook" | yes | |
on_failure | PreCallHookOnFailure | yes | |
phi_attested_at | Timestamp or null | yes | When an owner attested the endpoint for PHI; null before. |
phi_attested_by | MemberId or null | yes | |
previous_secret_expires_at | Timestamp or null | yes | |
previous_secret_hint | string or null | yes | |
revision | integer | yes | |
scope | PreCallHookScope | yes | |
secret | PreCallHookSecret or null | yes | The secret, shown in this answer only; null on a replay under the same Idempotency-Key, which creates nothing. |
secret_hint | string | yes | The last four characters of the current secret. |
status | PreCallHookStatus | yes | |
timeout_ms | integer or null | yes | The deadline of a request; null for the default of each direction. |
updated_at | Timestamp | yes | |
url | string | yes | The endpoint. |
Used by
The operations whose parameters, request body or responses name this shape directly.