Skip to main content
POST
Create and index a document

Authorizations

Authorization
string
header
required

Send your organization API key as Authorization: Bearer <key>.

Query Parameters

organization_id
string<uuid>

Organization UUID. Required when the request is authenticated with the internal server API key; ignored for organization API keys.

Body

type
enum<string>
required
Available options:
text
text
string
required

Response

Indexed document

id
string<uuid>
required
organization_id
string<uuid>
required
type
enum<string>
required
Available options:
url,
text,
file
created_at
string<date-time>
required
file_type
enum<string>
Available options:
pdf,
txt
file_name
string
path
string

Storage path of an uploaded PDF.

value
string

Indexed text. For a URL this is the summary.