API Reference
Agents

Replace an agent's specialist-transfer links (full replacement)

PUT
/v1/agents/{id}/links

Full-replacement — see AgentLinksInput. Requires a writer role. Returns the saved set (server-assigned id/position/timestamps), re-read after the write rather than an echo of the request.

Authorization

bearerAuth
AuthorizationBearer <token>

Long-lived ES256 JWT minted from the dashboard (https://app.sautikit.com/developers/api-keys). Signed by the platform keyring. Carries workspace_id and scopes claims; revoked via the platform deny-list.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Full-replacement request body for PUT /v1/agents/{id}/links — every call replaces the agent's entire draft link set (delete + bulk insert in one transaction); there is no partial-update verb.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/links" \  -H "Content-Type: application/json" \  -d '{    "links": [      {        "target_agent_id": "9d2b1f53-8c0e-4f1d-9a6b-5d3a8c47e9f0",        "description": "Transfer billing questions to the billing specialist."      }    ]  }'
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "target_agent_id": "b0b31ccc-0df2-496f-b84c-b8d90f867dcc",    "description": "string",    "position": 0,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string",    "details": [      "string"    ]  }}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string",    "details": [      "string"    ]  }}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string",    "details": [      "string"    ]  }}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string",    "details": [      "string"    ]  }}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string",    "details": [      "string"    ]  }}