> ## 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
        token:
          type: string
          description: Authentication token for QStash operations
          example: ZXhhbXBsZUB1cHN0YXNoLmNvbTpuYWJlcg==
        read_only_token:
          type: string
          description: Read-only 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). Omitted when no change is in
            progress.
          example: suspended
        last_plan_upgrade_time:
          type: integer
          format: int64
          description: Unix timestamp of the last plan upgrade
          example: 0
        max_message_size:
          type: integer
          description: Maximum message size in bytes
          example: 1048576
        max_requests_per_day:
          type: integer
          description: Soft limit for maximum requests per day
          example: 1000
        max_requests_per_day_hard:
          type: integer
          description: Hard limit for maximum requests per day
          example: 1000
        max_endpoints_per_topic:
          type: integer
          description: Maximum number of endpoints allowed per topic
          example: 100
        max_requests_per_second:
          type: integer
          description: Maximum requests per second (rate limit)
          example: 100
        max_dlq_size:
          type: integer
          description: Maximum dead letter queue size
          example: 1000000
        max_retries:
          type: integer
          description: Maximum number of retry attempts for failed messages
          example: 999
        max_topics:
          type: integer
          description: Maximum number of topics allowed
          example: 1
        max_schedules:
          type: integer
          description: Maximum number of schedules allowed
          example: 10
        max_events_size:
          type: integer
          description: Maximum size for events
          example: 10000
        max_dlq_retention_time_milis:
          type: integer
          format: int64
          description: Maximum retention time for dead letter queue in milliseconds
          example: 259200000
        max_delay:
          type: integer
          description: Maximum delay for scheduled messages in seconds
          example: 604800
        max_parallelism:
          type: integer
          description: Maximum parallel processing per endpoint
          example: 2
        max_global_parallelism:
          type: integer
          description: Maximum global parallel processing across all endpoints
          example: 10
        max_queues:
          type: integer
          description: Maximum number of queues allowed
          example: 10
        max_bandwidth_per_second:
          type: integer
          format: int64
          description: Maximum bandwidth per second in bytes
          example: 1048576
        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'
        timeout:
          type: integer
          description: Request timeout in seconds
          example: 900
        type:
          type: string
          description: Account billing plan category
          enum:
            - free
            - paid
          example: free
        region:
          type: string
          description: Region where the QStash instance is deployed
          enum:
            - eu-central-1
            - us-east-1
          example: eu-central-1
        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: ''
        reserved_price:
          type: integer
          description: Reserved plan price (may be `0`)
          example: 0
        created_by:
          type: string
          description: Email of the user who created this account
          example: cahidarda@upstash.com
        creation_time:
          type: integer
          format: int64
          description: Unix timestamp of account creation
          example: 1781871358
        deletion_time:
          type: integer
          format: int64
          description: Unix timestamp of account deletion (`0` if not deleted)
          example: 0
        budget:
          type: integer
          description: Monthly spending budget limit in dollars. 0 means no limit.
          example: 0
        enterprise:
          type: object
          description: Present for enterprise accounts
          properties:
            enabled:
              type: boolean
              description: Whether enterprise features are enabled
              example: true
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````