POST
/
api
/
corpora
curl --request POST \
  --url https://api.ultravox.ai/api/corpora \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "corpusId": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "stats": {
    "status": "CORPUS_STATUS_UNSPECIFIED",
    "lastUpdated": "2023-11-07T05:31:56Z",
    "numChunks": 123,
    "numDocs": 123,
    "numVectors": 123
  }
}'
{
  "corpusId": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "stats": {
    "status": "CORPUS_STATUS_UNSPECIFIED",
    "lastUpdated": "2023-11-07T05:31:56Z",
    "numChunks": 123,
    "numDocs": 123,
    "numVectors": 123
  }
}

Authorizations

X-API-Key
string
header
required

API key

Body

application/json

A queryable collection of documents. A corpus can be used to ground Ultravox with factual content for a particular domain.

corpusId
string

The unique ID of this corpus.

created
string

When this corpus was created.

name
string

The name of this corpus.

description
string

A description of this corpus.

stats
object

The current stats for this corpus.

Response

201 - application/json

A queryable collection of documents. A corpus can be used to ground Ultravox with factual content for a particular domain.

corpusId
string

The unique ID of this corpus.

created
string

When this corpus was created.

name
string

The name of this corpus.

description
string

A description of this corpus.

stats
object

The current stats for this corpus.