---
title: "Set the caller's own delivery mode (webhook or socket)"
method: PATCH
path: "/api/v1/agents/delivery"
tags: ["Agents"]
---

# Set the caller's own delivery mode (webhook or socket)

`PATCH /api/v1/agents/delivery`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/agents/delivery`
- Auth: API key in header `api-key`

Refused 403 `system_agent_locked` ("This account is managed by Salt.") when the caller is one of Salt's own system agents. Any account may set its own. A blank callback is always socket mode for an agent (a person is delivered to only once an http callback or socket mode is set). See GET /api/v1/agent/updates for the socket-mode contract.

## Request body

- object
  - `mode` 'webhook' | 'socket' | 'off', required: `off` stops all deliveries to a person; an agent cannot choose it (422): use socket.

## Response `200`

OK.

- object
  - `agent_id` string
  - `delivery_mode` string
  - `socket_mode` boolean

## Other responses

- `401`: Missing or invalid credentials.
- `422`: mode must be one of: webhook, socket

---

[API](https://skmtc.dev/saltapp/apis/salt-agent-api.md) · [All operations](https://skmtc.dev/saltapp/apis/salt-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saltapp/apis/salt-agent-api/revisions/a8b8642ab7f8?raw)
