> ## Documentation Index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reset QStash Token

> Resets the authentication credentials for the QStash user account.
This invalidates the old password and token, and generates new ones.
Returns the updated user information with new credentials.




## OpenAPI

````yaml /devops/developer-api/openapi.yml post /qstash/rotate-token/{id}
openapi: 3.0.4
info:
  title: Developer API - Upstash
  description: >-
    This is a documentation to specify Developer API endpoints based on the
    OpenAPI 3.0 specification.
  contact:
    name: Support Team
    email: support@upstash.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://api.upstash.com/v2
security: []
tags:
  - name: redis
    description: Manage redis databases.
    externalDocs:
      description: Find out more
      url: https://upstash.com/docs/devops/developer-api/introduction
  - name: teams
    description: Manage teams and team members.
    externalDocs:
      description: Find out more
      url: https://upstash.com/docs/devops/developer-api/introduction
  - name: vector
    description: Manage vector indices.
    externalDocs:
      description: Find out more
      url: https://upstash.com/docs/devops/developer-api/introduction
  - name: search
    description: Manage search indices.
    externalDocs:
      description: Find out more
      url: https://upstash.com/docs/devops/developer-api/introduction
  - name: qstash
    description: Manage QStash.
    externalDocs:
      description: Find out more
      url: https://upstash.com/docs/devops/developer-api/introduction
externalDocs:
  description: Find out more about Upstash
  url: https://upstash.com/
paths:
  /qstash/rotate-token/{id}:
    post:
      tags:
        - qstash
      summary: Reset QStash Token
      description: |
        Resets the authentication credentials for the QStash user account.
        This invalidates the old password and token, and generates new ones.
        Returns the updated user information with new credentials.
      operationId: resetQStashToken
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: QStash user ID
      responses:
        '200':
          description: >-
            Token reset successfully, returns updated user information with new
            credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QStashUser'
      security:
        - basicAuth: []
components:
  schemas:
    QStashUser:
      type: object
      properties:
        customer_id:
          type: string
          description: Customer identifier (email or team ID)
          example: example@upstash.com
        id:
          type: string
          format: uuid
          description: Unique identifier for the QStash user account
          example: 99a4c327-31f0-490f-a594-043ade84085a
        password:
          type: string
          description: QStash authentication password
          example: ZXhhbXBsZUB1cHN0YXNoLmNvbTpuYWJlcg==
        token:
          type: string
          description: Authentication token for QStash operations
          example: ZXhhbXBsZUB1cHN0YXNoLmNvbTpuYWJlcg==
        active:
          type: boolean
          description: Whether the QStash account is active
          example: true
        state:
          type: string
          description: >-
            Current state of the QStash account (e.g. `active`, `passive`; other
            values may be returned)
          example: active
        modifying_state:
          type: string
          description: >-
            Transitional state while the console applies an async change (e.g.
            `suspended` during suspension)
          example: suspended
        last_plan_upgrade_time:
          type: integer
          format: int64
          description: Unix timestamp of the last plan upgrade
          example: 1761267303
        max_message_size:
          type: integer
          description: Maximum message size in bytes
          example: 52428800
        max_requests_per_day:
          type: integer
          description: Soft limit for maximum requests per day
          example: 1000000
        max_requests_per_day_hard:
          type: integer
          description: Hard limit for maximum requests per day
          example: 10000000
        max_endpoints_per_topic:
          type: integer
          description: Maximum number of endpoints allowed per topic
          example: 1000
        max_requests_per_second:
          type: integer
          description: Maximum requests per second (rate limit)
          example: 500
        max_dlq_size:
          type: integer
          description: Maximum dead letter queue size
          example: 2147483647
        max_completion_tokens_per_day:
          type: integer
          description: Daily limit for completion tokens (LLM-related usage)
          example: 10000
        max_completion_tokens_per_minute:
          type: integer
          description: Per-minute limit for completion tokens
          example: 1000
        max_completions_per_day:
          type: integer
          description: Daily cap on completion requests
          example: 100
        max_completions_per_minute:
          type: integer
          description: Per-minute cap on completion requests
          example: 10
        max_retries:
          type: integer
          description: Maximum number of retry attempts for failed messages
          example: 20
        max_topics:
          type: integer
          description: Maximum number of topics allowed
          example: 1000
        max_schedules:
          type: integer
          description: Maximum number of schedules allowed
          example: 1000000
        max_events_size:
          type: integer
          description: Maximum size for events
          example: 100000
        max_dlq_retention_time_milis:
          type: integer
          format: int64
          description: Maximum retention time for dead letter queue in milliseconds
          example: 2592000000
        max_delay:
          type: integer
          description: Maximum delay for scheduled messages in seconds
          example: 2147483647
        max_parallelism:
          type: integer
          description: Maximum parallel processing per endpoint
          example: 10
        max_global_parallelism:
          type: integer
          description: Maximum global parallel processing across all endpoints
          example: 200
        max_queues:
          type: integer
          description: Maximum number of queues allowed
          example: 1000
        retention:
          type: integer
          description: Message retention period (see product defaults for unit/context)
          example: 7
        timeout:
          type: integer
          description: Request timeout in seconds
          example: 21600
        rate_limit:
          type: integer
          description: Account-level rate limit configuration value exposed by the API
          example: 100
        type:
          type: string
          description: Account billing plan category
          enum:
            - free
            - paid
          example: paid
        reserved_type:
          type: string
          description: >
            Fixed-tier or enterprise label when applicable. May be empty/absent
            for non-fixed plans.

            Known values include `qstash_fixed_1m`, `qstash_fixed_10m`,
            `qstash_fixed_100m`, `qstash_fixed`.

            Enterprise accounts may use the prefix `enterprise:` followed by an
            identifier (e.g. `enterprise:acme`).
          example: qstash_fixed_1m
        reserved_price:
          type: number
          format: float
          description: Reserved plan price (may be `0`)
          example: 180
        prod_pack_enabled:
          type: boolean
          description: Whether production pack features are enabled
          example: false
        prometheus_enabled:
          type: string
          description: >-
            Whether Prometheus metrics export is enabled (`"true"` / `"false"`
            string as returned by the API)
          enum:
            - 'true'
            - 'false'
          example: 'false'
        enterprise:
          type: object
          description: Present for enterprise accounts
          properties:
            enabled:
              type: boolean
              description: Whether enterprise features are enabled
              example: true
        region:
          type: string
          description: Region where the QStash instance is deployed
          enum:
            - eu-central-1
            - us-east-1
          example: us-east-1
        budget:
          type: integer
          description: Monthly spending budget limit in dollars. 0 means no limit.
          example: 0
        created_by:
          type: string
          description: Email of the user who created this account
          example: example@upstash.com
        creation_time:
          type: integer
          format: int64
          description: Unix timestamp of account creation
          example: 1760423113
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````