Skip to main content
Create Document
curl --request POST \
  --url https://{api_endpoint}/api/v1/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "description": "<string>",
  "tags": [
    "<string>"
  ],
  "name": "<string>",
  "collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "meta": {},
  "source_uri": "<string>",
  "source_date": "2023-12-25",
  "source_name": "<string>",
  "source_title": "<string>",
  "text": "<string>",
  "content_type": "<string>"
}'
"<any>"

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
collection_id
string<uuid>
required
title
string | null
description
string | null
tags
string[] | null
meta
object | null
source_uri
string | null
source_date
string<date> | null
source_name
string | null
source_title
string | null
text
string | null
content_type
string | null

Response

Successful Response

The response is of type any.