Upstash Redis integration

Serverless Redis: key-value, lists, counters, pub/sub

Help CentreConnectors

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

  1. console.upstash.com → Create Redis Database → pick region.
  2. Copy UPSTASH_REDIS_REST_URL + UPSTASH_REDIS_REST_TOKEN from the dashboard.
  3. 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.

OperationCategoryWhat it does
DeleteGeneralDelete a key
Set ExpiryGeneralSet a TTL on a key
GetGeneralGet a value by key
IncrementGeneralIncrement a key by amount
List KeysGeneralList keys matching a pattern
List PushGeneralPush a value to the left of a list
PublishGeneralPublish a message to a channel
List PopGeneralPop a value from the right of a list
SetGeneralSet a key-value pair
SubscribeGeneralSubscribe to a channel
UnsubscribeGeneralUnsubscribe from a channel

Operations

Delete

Delete a key

ParameterRequiredTypeDescription
Uid uidYestext
Folder folderNotext
Key keyYesstring

Set Expiry

Set a TTL on a key

ParameterRequiredTypeDescription
Key keyYestext
Seconds secondsYesnumber

Tips

  • Set TTL on existing key. -1 = no expiry.

Get

Get a value by key

ParameterRequiredTypeDescription
Key keyYestext

Tips

  • key. Returns string value or null.

Increment

Increment a key by amount

ParameterRequiredTypeDescription
Key keyYestext
Amount amountNonumber

Tips

  • Atomic +1. Use for counters, rate limits.

List Keys

List keys matching a pattern

ParameterRequiredTypeDescription
Pattern patternNotext

List Push

Push a value to the left of a list

ParameterRequiredTypeDescription
Key keyYestext
Value valueYestext

Publish

Publish a message to a channel

ParameterRequiredTypeDescription
Topic topicYestext
Message messageYestext
Headers headersNotextarea

Tips

  • Pub-sub. channel + message. Subscribers receive in real-time.

List Pop

Pop a value from the right of a list

ParameterRequiredTypeDescription
Key keyYestext

Set

Set a key-value pair

ParameterRequiredTypeDescription
Key keyYestext
Value valueYestext
Ttl ttlNonumber

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

ParameterRequiredTypeDescription
Topic topicYestext
Callback callbackNotext

Unsubscribe

Unsubscribe from a channel

ParameterRequiredTypeDescription
Topic topicYestext

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.

Related connectors

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.