Request Parameters
Region of the database. Only valid option is global.
Primary Region of the Global Database.Available regions: us-east-1, us-west-1, us-west-2, eu-west-1,
eu-central-1, ap-southeast-1, ap-southeast-2, sa-east-1
Array of Read Regions of
the Database.Available regions: us-east-1, us-west-1, us-west-2, eu-west-1,
eu-central-1, ap-southeast-1, ap-southeast-2, sa-east-1
Response Parameters
ID of the created database
Type of the database in terms of pricing model(Free, Pay as You Go or
Enterprise)
The region where database is hosted
Database port for clients to connect
Creation time of the database as Unix time
State of database (active or deleted)
Email or team id of the owner of the database
Endpoint URL of the database
TLS/SSL is enabled or not
curl -X POST \
https://api.upstash.com/v2/redis/database \
-u 'EMAIL:API_KEY' \
-d '{"name":"myredis", "region":"global", "primary_region":"us-east-1", "read_regions":["us-west-1","us-west-2"], "tls": true}'
{
"database_id": "93e3a3e-342c-4683-ba75-344c08ae143b",
"database_name": "global-test",
"database_type": "Pay as You Go",
"region": "global",
"type": "paid",
"port": 32559,
"creation_time": 1674596896,
"state": "active",
"password": "dd1803832a2746309e118373549e574d",
"user_email": "support@upstash.com",
"endpoint": "steady-stud-32559.upstash.io",
"tls": false,
"rest_token": "AX8vACQgOTMyY2UyYy00NjgzLWJhNzUtMzQ0YzA4YWUxNDNiZMyYTI3NDYzMDllMTE4MzczNTQ5ZTU3NGQ=",
"read_only_rest_token": "An8vACQg2UtMzQyYy00NjgzLWJhNzUtMzQ0YzA4YBVsUsyn19xDnTAvjbsiq79GRDrURNLzIYIOk="
}