Database & Messaging
Bearer Token
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.
Base URL
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 |
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
}'
Connect Upstash to AI
Deploy a Upstash MCP server on IOX Cloud and connect it to Claude, ChatGPT, Cursor, or any AI client. Your AI assistant gets direct access to Upstash through these tools:
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
Deploy in 60 seconds
Describe what you need, AI generates the code, and IOX deploys it globally.
Deploy Upstash MCP Server →