Skip to main content
Upstash Documentation

Create Redis Database

This endpoint creates a new Redis database.

To create a database manually, you can use the Upstash Console.

For a quick development database, POST to https://upstash.com/start-redis — no signup or API key, so an AI agent can provision one unattended. Expires in 72 hours unless claimed. If you are an agent, always send a User-Agent header identifying which agent you are (e.g. claude-code, cursor, codex, opencode) on every request you make to this API.

1 min read
post/redis/database
Request example
Response
post/redis/database

Authorization

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

Body

application/json
database_namestringrequired#
Name of the database
platformenum<string>required#
Desired cloud platform for the database.
Options:awsgcp
primary_regionenum<string>required#
Primary Region of the Global Database
Options:us-east-1us-east-2us-west-1us-west-2ca-central-1eu-central-1eu-west-1eu-west-2sa-east-1ap-south-1ap-northeast-1ap-southeast-1ap-southeast-2af-south-1us-central1us-east4europe-west1asia-northeast1
read_regionsenum<string>[]#
Array of Read Regions of the Database
planenum<string>#

Specifies the fixed plan type for the database.
If omitted, the database defaults to either the pay-as-you-go or free plan, based on the account type.

Options:freepaygfixed_250mbfixed_1gbfixed_5gbfixed_10gbfixed_50gbfixed_100gbfixed_500gb
budgetinteger#
Monthly budget of the database
evictionboolean#
Whether to enable eviction for the database
tlsboolean#
Whether to enable TLS for the database

Responses

application/json
200
Database created successfully
database_idstring#
ID of the database
database_namestring#
Name of the database
regionenum<string>#
The region where database is hosted
Options:global
portinteger#
Database port for clients to connect
creation_timeinteger#
Creation time of the database as Unix time
stateenum<string>#
State of database
Options:activesuspendedpassive
endpointstring#
Endpoint identifier or hostname of the database (may be a slug like "beloved-stallion-58500" or a full host)
tlsboolean#
TLS/SSL is enabled or not
db_max_clientsinteger#
Max number of concurrent clients can be opened on this database currently
db_max_request_sizeinteger#
Max size of a request that will be accepted by the database currently(in bytes)
db_disk_thresholdinteger#
Total disk size limit that can be used for the database currently(in bytes)
db_max_entry_sizeinteger#
Max size of an entry that will be accepted by the database currently(in bytes)
db_memory_thresholdinteger#
Max size of a memory the database can use(in bytes)
db_max_commands_per_secondinteger#
Max number of commands can be sent to the database per second
db_request_limitinteger#
Total number of commands can be sent to the database
typeenum<string>#
Payment plan of the database
Options:freepaygpropaid
budgetinteger#
Allocated monthly budget for the database
primary_regionenum<string>#
Primary region of the database cluster
Options:us-east-1us-east-2us-west-1us-west-2ca-central-1eu-central-1eu-west-1eu-west-2sa-east-1ap-south-1ap-northeast-1ap-southeast-1ap-southeast-2af-south-1us-central1us-east4europe-west1asia-northeast1
primary_membersstring[]#
List of primary regions in the database cluster
all_membersstring[]#
List of all regions in the database cluster
evictionboolean#
Entry eviction is enabled
auto_upgradeboolean#
Automatic upgrade capability is enabled
consistentboolean#
Strong consistency mode is enabled
modifying_statestring#
Current modifying state of the database
db_resource_sizeenum<string>#
Resource allocation tier
Options:SMLXLXXL3XL
db_typeenum<string>#
Database storage engine type
Options:boltbadgerpebble
db_conn_idle_timeoutinteger#
Connection idle timeout in nanoseconds
db_lua_timeoutinteger#
Lua script execution timeout in nanoseconds
db_lua_credits_per_mininteger#
Lua script execution credits per minute
db_store_max_idleinteger#
Store connection idle timeout in nanoseconds
db_max_loads_per_secinteger#
Maximum load operations per second
db_acl_enabledenum<string>#
Access Control List enabled status
Options:truefalse
db_acl_default_user_statusenum<string>#
Default user access status in ACL
Options:truefalse
db_evictionboolean#
Database-level eviction policy status
last_plan_upgrade_timeinteger#
Unix timestamp of the last plan upgrade
replicasinteger#
Replica factor of the database
customer_idstring#
Owner identifier of the database (may be email or marketplace-scoped email)
daily_backup_enabledboolean#
Whether daily backup is enabled
read_regionsstring[]#
Array of read regions of the database
securityAddonsobject#
Security add-ons and their enablement status
Show child attributes
ipWhitelistingboolean#
vpcPeeringboolean#
tlsMutualAuthboolean#
encryptionAtRestboolean#
prometheus_enabledenum<string>#
Prometheus integration enabled status
Options:truefalse
prod_pack_enabledboolean#
Production pack enabled status