Upstash REST API
Serverless data for Redis and Kafka with per-request pricing
Upstash provides serverless Redis and Kafka with a REST API, designed for edge computing and serverless applications. It offers per-request pricing, global replication, and low-latency access. Developers use Upstash to add caching, rate limiting, session management, and event streaming to serverless functions without managing infrastructure.
https://api.upstash.com
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v2/redis/databases | List all Redis databases in your account |
| POST | /v2/redis/database | Create a new Redis database with specified region and configuration |
| GET | /v2/redis/database/:id | Get details of a specific Redis database by ID |
| DELETE | /v2/redis/database/:id | Delete a Redis database permanently |
| POST | /v2/redis/database/:id/stats | Get usage statistics for a Redis database including commands and storage |
| GET | /v2/kafka/clusters | List all Kafka clusters in your account |
| POST | /v2/kafka/cluster | Create a new Kafka cluster with region and configuration |
| GET | /v2/kafka/cluster/:id | Get details of a specific Kafka cluster by ID |
| DELETE | /v2/kafka/cluster/:id | Delete a Kafka cluster permanently |
| GET | /v2/kafka/topic/:clusterId | List all topics in a Kafka cluster |
| POST | /v2/kafka/topic/:clusterId | Create a new Kafka topic with partitions and retention settings |
| DELETE | /v2/kafka/topic/:clusterId/:topicName | Delete a Kafka topic from a cluster |
| POST | /v2/qstash/v2/publish/:destination | Publish a message to QStash for delayed or scheduled delivery |
| GET | /v2/qstash/v2/messages | List messages in QStash queue with filtering options |
| POST | /v2/redis/reset/:id | Reset Redis database credentials and regenerate access tokens |
Sponsor this page
AvailableReach developers actively building with Upstash. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →Code Examples
# List all Redis databases
curl https://api.upstash.com/v2/redis/databases \
-H "Authorization: Bearer YOUR_API_KEY"
# Create a new Redis database
curl -X POST https://api.upstash.com/v2/redis/database \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "my-redis-db",
"region": "us-east-1",
"tls": true,
"multizone": true
}'
Use Upstash from Claude / Cursor / ChatGPT
Get a hosted MCP endpoint for Upstash. Paste your Upstash API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Upstash directly with your credentials — no local install, works on mobile.
create_redis_database
Create a new serverless Redis database in a specified region with automatic scaling and replication
query_redis_stats
Retrieve usage statistics and performance metrics for Redis databases including request counts and storage usage
manage_kafka_topics
Create, list, and delete Kafka topics with partition and retention configuration
publish_qstash_message
Publish messages to QStash for scheduled or delayed delivery to HTTP endpoints with retry logic
monitor_database_health
Check health status and availability of Redis and Kafka instances across regions
Connect in 60 seconds
Paste your Upstash key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.
Connect Upstash to your AI →