Skip to main content
Knowledge Hub

Propose a knowledge snippet

Adds a snippet to the Knowledge Hub review queue. Chirp AI doesn't use it until someone approves it. Needs the KnowledgeHub product on the account. Needs a key with the sparrow.write scope. Needs the key's creator to hold the KnowledgeHubEdit permission.

POST
/knowledge
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
channelsstring[]

Booking channels it applies to, such as AirBnb, BookingCom, Vrbo or Direct. Omit for every channel. On edit, omit to keep the current channels and send [] for every channel. Voice AI never uses a snippet limited to channels.

contentstringrequired

The knowledge itself, up to 10,000 characters.

namestringrequired

Short title, up to 200 characters.

property_group_idsstring[]

For scope property_groups: the property group ids.

property_idsstring[]

For scope properties: the property ids.

reservation_fieldsobject[]

Reservation custom fields that must all match the guest's reservation: [{"field": "<label or id>", "is": ["<value>", ...]}] or [{"field": "<label or id>", "has_any_value": true}]. Fields resolve by label or id. On edit, omit to keep the current conditions and send [] to remove them. Voice AI never uses a snippet limited by reservation fields.

scopeenum<string>

Where it applies: company (default), properties or property_groups. On edit, omit to keep where it applies.

Available options: company, properties, property_groups
stagesenum<string>[]

Reservation stages it applies to: inquiry, upcoming, in_stay, checked_out or canceled. Omit for every stage. On edit, omit to keep the current stages and send [] for every stage. Voice AI never uses a snippet limited to stages.

Response

application/json

Success

dataany
metaobject