Skip to main content
POST
/
api
/
v1
/
cognify
Cognify
curl --request POST \
  --url https://api.cognee.ai/api/v1/cognify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "datasets": [
    "main_dataset"
  ]
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.cognee.ai/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
datasets
string[] | null
datasetIds
string<uuid>[] | null
Example:
[]
runInBackground
boolean | null
default:false
graphModel
Graphmodel · object
Example:
{}
customPrompt
string | null
default:""

Custom prompt for entity extraction and graph generation

chunkSize
integer | null

Maximum tokens per chunk. Defaults to automatic model-based sizing.

Example:

4096

ontologyKey
string[] | null

Reference to one or more previously uploaded ontologies

Example:
[]
chunksPerBatch
integer | null

Number of chunks to process per task batch in Cognify (overrides default).

Example:

36

dataPerBatch
integer | null
default:20

Maximum number of data items to process concurrently within a dataset.

Example:

20

Response

Successful Response

The response is of type Response Cognify Api V1 Cognify Post · object.