Skip to main content
post/vector/index
Request example
Response
post/vector/index

Authorization

Authorizationstringheaderrequired#
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded username:password.

Body

application/json
namestringrequired#
Name of the index

Example:"myindex"

regionenum<string>required#
Region of the database
Options:eu-west-1us-east-1us-central1

Example:"us-east-1"

similarity_functionenum<string>required#
Similarity function that's used to calculate the distance between two vectors
Options:COSINEEUCLIDEANDOT_PRODUCT

Example:"COSINE"

dimension_countnumberrequired#
The amount of values in a single vector

Example:1024

typeenum<string>#
The payment plan of your index
Options:paygfixedpaid

Example:"payg"

embedding_modelenum<string>#
The embedding model to use for the index
Options:BGE_SMALL_EN_V1_5BGE_BASE_EN_V1_5BGE_LARGE_EN_V1_5BGE_M3

Example:"BGE_M3"

index_typeenum<string>#
The type of the vector index
Options:DENSESPARSEHYBRID

Example:"HYBRID"

sparse_embedding_modelenum<string>#
The sparse embedding model to be used for indexes
Options:BM25BGE_M3

Example:"BM25"

Responses

application/json
200
Index created successfully
customer_idstring#
The associated ID of the owner of the index

Example:"example@upstash.com"

idstring#
Unique ID of the index

Example:"0639864f-ece6-429c-8118-86a287b0e808"

namestring#
The name of the index

Example:"myindex"

similarity_functionenum<string>#
Similarity function that's used to calculate the distance between two vectors
Options:COSINEEUCLIDEANDOT_PRODUCT

Example:"COSINE"

dimension_countnumber#
The amount of values in a single vector

Example:384

embedding_modelenum<string>#
The predefined embedding model to vectorize your plain text
Options:BGE_SMALL_EN_V1_5BGE_BASE_EN_V1_5BGE_LARGE_EN_V1_5BGE_M3

Example:"BGE_SMALL_EN_V1_5"

sparse_embedding_modelenum<string>#
The sparse embedding model to be used for indexes
Options:BM25BGE_M3

Example:"BM25"

endpointstring#
The REST endpoint of the index

Example:"glowing-baboon-15797-us1"

tokenstring#
The REST authentication token for the index

Example:"QkZGAsWp2tdW0tdC0zNzM1LWV1MkFkNQzB1ExUb3hOekF0TVRJbFpMDNLVSm1GZw=="

read_only_tokenstring#
The REST authentication read only token for the index

Example:"QkZGRk1heGSKC0MtdRlZC0zNzM1LWTj3pAV0Wm1aZ01p05qY3RNR0U0TkRtRt2s9azJU"

typeenum<string>#
The payment plan of the index
Options:freepaygfixed

Example:"fixed"

regionenum<string>#
The region where the index is currently deployed
Options:eu-west-1us-east-1us-central1

Example:"us-east-1"

max_vector_countnumber#
The number of maximum that your index can contain

Example:5210000

max_daily_updatesnumber#
The number of maximum update operations you can perform in a day. Only upsert operations are included in update count.

Example:1000000

max_daily_queriesnumber#
The number of maximum query operations you can perform in a day. Only query operations are included in query count.

Example:1000000

max_monthly_bandwidthnumber#
The maximum amount of monthly bandwidth for the index. Unit is bytes. -1 if the limit is unlimited.

Example:-1

max_writes_per_secondnumber#
The number of maximum write operations you can perform per second. Only upsert operations are included in write count.

Example:1000

max_query_per_secondnumber#
The number of maximum query operations you can perform per second. Only query operations are included in query count.

Example:1000

max_reads_per_requestnumber#
The number of maximum vectors in a read operation. Query and fetch operations are included in read operations.

Example:1000

max_writes_per_requestnumber#
The number of maximum vectors in a write operation. Only upsert operations are included in write operations.

Example:1000

max_total_metadata_sizenumber#
The amount of maximum size for the total metadata sizes in your index.

Example:53687091200

reserved_pricenumber#
Monthly pricing of your index. Only available for fixed and pro plans.

Example:60

creation_timenumber#
The creation time of the vector index in UTC as unix timestamp.

Example:1753207106

index_typeenum<string>#
The type of the vector index
Options:DENSESPARSEHYBRID

Example:"DENSE"

throughput_vectorobject[]#
Throughput data for the vector index over time
Example: