Upstash RedisCommand API

Per-database Redis command execution

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /pipeline Run a Redis pipeline of commands · Execute a Redis pipeline #
Ask an LLM
“How do I send several Redis commands in one round trip?”
“Can I pipeline commands against the per-database Redis REST API?”
Tell an agent
Pipeline these Redis commands in one round trip.
Run a Redis pipeline of multiple commands.
POST /multi-exec Run Redis commands in an atomic transaction · Execute Redis commands atomically #
Ask an LLM
“How do I run Redis commands as an atomic transaction?”
“Can I group commands so they all succeed or fail together?”
Tell an agent
Execute these Redis commands as an atomic MULTI/EXEC transaction.
Run a Redis transaction that commits all commands or none.
POST /publish/{channel}/{message} Publish a message to a Redis channel · Publish a message to a pub/sub channel #
Ask an LLM
“How do I publish a message to a Redis pub/sub channel?”
“Can I send a message to a channel over the REST API?”
Tell an agent
Publish {message} to Redis channel {channel}.
Send a pub/sub message {message} on channel {channel}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/upstash:upstash-rediscommand-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

upstash-rediscommand-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Upstash Redis Command API
  version: 2.0.0
  summary: Developer (management) API and Redis REST API for Upstash.
  description: 'Upstash exposes two distinct HTTP API surfaces:


    1.'
  contact:
    name: Upstash Docs
    url: https://upstash.com/docs
  license:
    name: Proprietary
    url: https://upstash.com/static/docs/terms.pdf
servers:
- url: https://api.upstash.com/v2
  description: Upstash Developer (management) API
- url: https://{endpoint}.upstash.io
  description: Per-database Redis REST API endpoint
  variables:
    endpoint:
      default: example-12345
      description: Database-specific endpoint hostname from the Upstash console
tags:
- name: RedisCommand
  description: Per-database Redis command execution
paths:
  /pipeline:
    post:
      tags:
      - RedisCommand
      summary: Execute a Redis pipeline
      description: 'Execute multiple Redis commands in a single round trip against the

        per-database Redis REST API. Request body is a JSON array of

        commands, where each command is itself an array starting with the

        command name.'
      operationId: redisPipeline
      security:
      - bearerAuth: []
      servers:
      - url: https://{endpoint}.upstash.io
        variables:
          endpoint:
            default: example-12345
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: array
                items:
                  type: string
      responses:
        '200':
          description: Pipeline results
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RedisCommandResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /multi-exec:
    post:
      tags:
      - RedisCommand
      summary: Execute Redis commands atomically
      description: Execute a batch of Redis commands as an atomic MULTI/EXEC transaction.
      operationId: redisMultiExec
      security:
      - bearerAuth: []
      servers:
      - url: https://{endpoint}.upstash.io
        variables:
          endpoint:
            default: example-12345
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: array
                items:
                  type: string
      responses:
        '200':
          description: Transaction results
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RedisCommandResult'
  /publish/{channel}/{message}:
    post:
      tags:
      - RedisCommand
      summary: Publish a message to a pub/sub channel
      operationId: redisPublish
      security:
      - bearerAuth: []
      servers:
      - url: https://{endpoint}.upstash.io
        variables:
          endpoint:
            default: example-12345
      parameters:
      - name: channel
        in: path
        required: true
        schema:
          type: string
      - name: message
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Number of clients that received the message
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: integer
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
    RedisCommandResult:
      type: object
      properties:
        result:
          description: Result value (type depends on command)
        error:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic auth with Upstash account email and API key.
    bearerAuth:
      type: http
      scheme: bearer
      description: Database-scoped bearer token issued from the Upstash console.