Phonely

Phonely API operations using API key auth.

Knowledge Base: Document → Create

AI-generated

Summary

Create documents in a Phonely agent's knowledge base.

Inputs

  • Agent ID (required) — ID of the Phonely agent whose knowledge base will receive the documents.
  • Documents (JSON) — Array of document objects to add (matches the API's expected format).

Output shape

json

API response from the agent-documents endpoint, typically containing details of the created documents.

Examples

Example 1: Add a text document to an agent's knowledge base.

Set Agent ID to the target agent and Documents (JSON) to an array with a single object { type: 'text', content: 'Hello world', title: 'Greeting' }.

Discussion