Overview
Upstash is a serverless Redis hosting platform – pay-per-request Redis for edge functions + serverless apps. The Automize Upstash Redis connector covers key-value ops, lists, counters, and pub-sub via Upstash's REST API.
- Regions: Multiple regions. Pick at database creation. Global multi-region available for read replicas.
- Plans: Free tier 10k commands/day. Paid: pay-per-request or fixed.
Setting up the connection
- console.upstash.com → Create Redis Database → pick region.
- Copy UPSTASH_REDIS_REST_URL + UPSTASH_REDIS_REST_TOKEN from the dashboard.
- In Automize → Settings → Connectors → Upstash Redis. Paste URL + token.
Find your credentials at https://console.upstash.com/.
Rate limits
Free: 10k/day. Pay-per-request: theoretically unbounded but soft-cap varies by plan.
Data model
Key-value + structures:
Database ─┬─ Strings (GET/SET)
├─ Lists (LPUSH/RPUSH/LPOP/RPOP)
├─ Hashes
├─ Sets / Sorted Sets
└─ Counters (INCR/DECR atomic)Available operations
11 operations available. Click any row to jump to its detail.
| Operation | Category | What it does |
|---|---|---|
| Delete | General | Delete a key |
| Set Expiry | General | Set a TTL on a key |
| Get | General | Get a value by key |
| Increment | General | Increment a key by amount |
| List Keys | General | List keys matching a pattern |
| List Push | General | Push a value to the left of a list |
| Publish | General | Publish a message to a channel |
| List Pop | General | Pop a value from the right of a list |
| Set | General | Set a key-value pair |
| Subscribe | General | Subscribe to a channel |
| Unsubscribe | General | Unsubscribe from a channel |
Operations
Delete
Delete a key
| Parameter | Required | Type | Description |
|---|---|---|---|
Uid uid | Yes | text | |
Folder folder | No | text | |
Key key | Yes | string |
Set Expiry
Set a TTL on a key
| Parameter | Required | Type | Description |
|---|---|---|---|
Key key | Yes | text | |
Seconds seconds | Yes | number |
Tips
- Set TTL on existing key. -1 = no expiry.
Get
Get a value by key
| Parameter | Required | Type | Description |
|---|---|---|---|
Key key | Yes | text |
Tips
- key. Returns string value or null.
Increment
Increment a key by amount
| Parameter | Required | Type | Description |
|---|---|---|---|
Key key | Yes | text | |
Amount amount | No | number |
Tips
- Atomic +1. Use for counters, rate limits.
List Keys
List keys matching a pattern
| Parameter | Required | Type | Description |
|---|---|---|---|
Pattern pattern | No | text |
List Push
Push a value to the left of a list
| Parameter | Required | Type | Description |
|---|---|---|---|
Key key | Yes | text | |
Value value | Yes | text |
Publish
Publish a message to a channel
| Parameter | Required | Type | Description |
|---|---|---|---|
Topic topic | Yes | text | |
Message message | Yes | text | |
Headers headers | No | textarea |
Tips
- Pub-sub. channel + message. Subscribers receive in real-time.
List Pop
Pop a value from the right of a list
| Parameter | Required | Type | Description |
|---|---|---|---|
Key key | Yes | text |
Set
Set a key-value pair
| Parameter | Required | Type | Description |
|---|---|---|---|
Key key | Yes | text | |
Value value | Yes | text | |
Ttl ttl | No | number |
Tips
- key + value + optional ex (TTL in sec).
- nx=true sets only if not exists. xx=true sets only if exists.
Subscribe
Subscribe to a channel
| Parameter | Required | Type | Description |
|---|---|---|---|
Topic topic | Yes | text | |
Callback callback | No | text |
Unsubscribe
Unsubscribe from a channel
| Parameter | Required | Type | Description |
|---|---|---|---|
Topic topic | Yes | text |
FAQ
- REST vs native Redis protocol?
- Upstash REST is HTTP – works in serverless/edge with no persistent connections. Native Redis protocol also available but needs TCP.
- Use cases?
- Sessions, rate limiting, leaderboards, real-time counters, pub-sub for SSE/WebSocket fanout.