Skip to main content
POST
/
v1
/
ingest
/
document
Ingest Document
curl --request POST \
  --url https://api.ontora.com/v1/ingest/document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "source_connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "source_type": "gmail",
  "external_id": "<string>",
  "content_text": "<string>",
  "url": "<string>",
  "title": "<string>",
  "author_name": "<string>",
  "author_email": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
'
{
  "document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.ontora.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
workspace_id
string<uuid>
required
source_connection_id
string<uuid>
required
source_type
enum<string>
required
Available options:
gmail,
notion,
google-drive,
voice-session,
hubspot,
pipedrive,
google-calendar,
attio,
slack,
manual,
interview
external_id
string
required
content_text
string
required
url
string | null
title
string | null
author_name
string | null
author_email
string | null
created_at
string<date-time> | null
updated_at
string<date-time> | null

Response

Successful Response

document_id
string<uuid>
required
status
string
required