Skip to main content
POST
/
v1
/
documents
/
search
Search documents
curl --request POST \
  --url https://pnbr.io/v1/documents/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "procurement",
  "project_id": "9142fa4d-7aad-4a1b-8f99-b522fd37518d"
}
'
{
  "query": "procurement",
  "project_id": "9142fa4d-7aad-4a1b-8f99-b522fd37518d",
  "results": {
    "chunks": [
      {
        "id": "a5926369-aec5-4d18-81fb-f4632cf041f4",
        "text": "...the Board then established two special committees to provide oversight of the bid process...",
        "score": 0.71
      }
    ]
  },
  "request_id": "33333333-aaaa-bbbb-cccc-444444444444"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
query
string
mode
enum<string>
default:hybrid
Available options:
hybrid,
semantic,
lexical
limit
integer
project_id
string

Response

200 - application/json

Matching documents and chunks.