Skip to main content
PATCH
Update guidelines

Authorizations

Authorization
string
header
required

An org API key: Authorization: Bearer phk_…

Headers

If-Match
string | null

The ETag from your last read: the change is made only if the resource still has it, otherwise 412. Optional, except that a change replacing a list needs it (428 without it).

Phonely-Organization
string | null

Optional. Must be the key's org.

Path Parameters

id
string
required

The agent's ID.

Body

application/json

What to change. Only the fields sent change; sections is the whole set, so send If-Match.

is_speech_humanized
boolean | null

Whether the agent adds natural speech habits, such as short pauses and filler words.

personality
string | null

Known values: casual, humorous, direct, formal, persuasive, friendly. More can be added, so handle values you don't recognize.

sections
GuidelineSectionUpdate · object[] | null

All the guideline sections the agent has, in any order. A section left out is deleted, a new type is added, and a section sent as it is stays as it is.

Maximum array length: 7

Response

Successful Response

How an agent behaves in conversation: its guideline sections and response style.

agent_id
string
required

The agent's ID.

is_speech_humanized
boolean
required

Whether the agent adds natural speech habits, such as short pauses and filler words.

object
string
default:agent_guidelines
required

The type of this object, always agent_guidelines.

Allowed value: "agent_guidelines"
personality
string
required

The tone the agent takes with callers. Known values: casual, humorous, direct, formal, persuasive, friendly. More can be added, so handle values you don't recognize.

sections
GuidelineSection · object[]
required

The guideline sections the agent has, in the order the web app shows them. Each type appears at most once.