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
Body
application/jsonName of the database
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-northeast1Array of Read Regions of the Database
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_500gbMonthly budget of the database
Whether to enable eviction for the database
Whether to enable TLS for the database
Responses
application/json
200
Database created successfully
ID of the database
Name of the database
Database port for clients to connect
Creation time of the database as Unix time
Endpoint identifier or hostname of the database (may be a slug like "beloved-stallion-58500" or a full host)
TLS/SSL is enabled or not
Max number of concurrent clients can be opened on this database currently
Max size of a request that will be accepted by the database currently(in bytes)
Total disk size limit that can be used for the database currently(in bytes)
Max size of an entry that will be accepted by the database currently(in bytes)
Max size of a memory the database can use(in bytes)
Max number of commands can be sent to the database per second
Total number of commands can be sent to the database
Allocated monthly budget for the database
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-northeast1List of primary regions in the database cluster
List of all regions in the database cluster
Entry eviction is enabled
Automatic upgrade capability is enabled
Strong consistency mode is enabled
Current modifying state of the database
Connection idle timeout in nanoseconds
Lua script execution timeout in nanoseconds
Lua script execution credits per minute
Store connection idle timeout in nanoseconds
Maximum load operations per second
Database-level eviction policy status
Unix timestamp of the last plan upgrade
Replica factor of the database
Owner identifier of the database (may be email or marketplace-scoped email)
Whether daily backup is enabled
Array of read regions of the database
Security add-ons and their enablement status
Production pack enabled status