Skip to main content
POST
/
v1
/
documents
Add a document
curl --request POST \
  --url https://pnbr.io/v1/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "url": "<string>",
  "title": "<string>",
  "tags": [
    "<string>"
  ],
  "project_id": "<string>"
}
'

Authorizations

Authorization
string
header
required

A pnbr- API key. Project-scoped keys make project_id implicit; org-scoped keys require it.

Body

application/json
content
string

Raw text to index.

url
string

A URL to crawl and index.

title
string
tags
string[]
project_id
string

Response

Indexed document.