Skip to main content
POST
Get Document

Overview

API endpoint for retrieving a specific document or list of documents from a persona. This endpoint allows you to access any document by name or pulling a series of documents using the query parameters for response size.

Authorization

x-api-key
string
required
Your Personal AI API key

Headers

Content-Type
string
required
Must be set to application/json

Query Parameters

size
integer
required
Your desired number of documents to be returned.

Body

DomainName
string
required
The hyphenated text below the AI’s name when clicked into a Persona.DomainName
Example Request
Text
string
Document name to retrieve a specific document. Leave blank if you want to retrieve mulitple documents.
Example Request

Example Request

array
array
Array of conversation messages, including both user messages and AI responses
Example Request

Example Response

Example Success Response

Example cURL

cURL

Error Codes