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

# Wake waiting runs

> Continue runs that are sleeping at a wait step.



## OpenAPI

````yaml api-reference/workflows/openapi.json POST /v1/workflows/{workflowId}/runs/wake
openapi: 3.0.3
info:
  title: Persistence Workflows API
  version: '1.0'
  description: Start, inspect, cancel, and wake published event-to-call workflow runs.
servers:
  - url: https://api.persistence.dev
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Workflows
paths:
  /v1/workflows/{workflowId}/runs/wake:
    post:
      tags:
        - Workflows
      summary: Wake waiting runs
      description: >-
        For each concurrency key, a run sleeping at a wait step continues
        immediately. Runs pausing between call retries are not woken. Send 1-500
        keys.
      operationId: wakeWorkflowRuns
      parameters:
        - name: workflowId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WakeRequest'
      responses:
        '200':
          description: Woken run ids
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WakeEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    WakeRequest:
      type: object
      required:
        - concurrencyKeys
      properties:
        concurrencyKeys:
          type: array
          minItems: 1
          maxItems: 500
          items:
            type: string
    WakeEnvelope:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/WakeResult'
    WakeResult:
      type: object
      required:
        - woken
      properties:
        woken:
          type: array
          items:
            type: string
    Error:
      type: object
      properties:
        code:
          type: string
        error:
          type: string
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Workspace API key with workflow run, and workflow read to check status.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.