Skip to main content
POST
/
v1
/
documents
curl --request POST \
  --url https://pnbr.io/v1/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "Acme renewed for 12 months after a procurement review led by their CFO.",
  "title": "Acme renewal note",
  "project_id": "9142fa4d-7aad-4a1b-8f99-b522fd37518d"
}
'
{
  "id": "b2c1f0e9-1234-4abc-9def-0123456789ab",
  "status": "indexed",
  "project_id": "9142fa4d-7aad-4a1b-8f99-b522fd37518d",
  "document": {
    "id": "b2c1f0e9-1234-4abc-9def-0123456789ab",
    "title": "Acme renewal note",
    "type": "text",
    "ragReady": false
  },
  "request_id": "11111111-2222-3333-4444-555555555555"
}

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.