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

# Resume a workflow hook

> Deliver a JSON payload to a greenfield SDK `createHook` token and resume the run. Configure picker tokens upsert an overwritable draft (POST `{ reset: true }` to reopen a prior step); World resume waits until Configure is awaiting a complete set. Authz: binding must exist for `workflowId` in the workspace; token must belong to that run.



## OpenAPI

````yaml /openapi/program.openapi.json post /workflows/{workflowId}/hooks/{token}
openapi: 3.1.0
info:
  title: Questra Program API
  version: 0.0.1
  description: >-
    REST API for the Questra Program product. Browser users authenticate through
    Questra Auth SSO; automation uses workspace-scoped API keys (`Authorization:
    Bearer qpk_live_…`). API keys carry scopes enforced before handlers.
    Outbound webhooks follow Standard Webhooks (at-least-once delivery;
    consumers must be idempotent).
servers:
  - url: /v1
    description: Program API base path
security: []
paths:
  /workflows/{workflowId}/hooks/{token}:
    post:
      tags:
        - Workflows
      summary: Resume a workflow hook
      description: >-
        Deliver a JSON payload to a greenfield SDK `createHook` token and resume
        the run. Configure picker tokens upsert an overwritable draft (POST `{
        reset: true }` to reopen a prior step); World resume waits until
        Configure is awaiting a complete set. Authz: binding must exist for
        `workflowId` in the workspace; token must belong to that run.
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Workflow SDK run id (`wrun_...`).
          required: true
          description: Workflow SDK run id (`wrun_...`).
          name: workflowId
          in: path
        - schema:
            type: string
            minLength: 1
            description: >-
              Workflow SDK hook token from anatomy `resumePath` / clarification
              `resumePath`.
          required: true
          description: >-
            Workflow SDK hook token from anatomy `resumePath` / clarification
            `resumePath`.
          name: token
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResumeWorkflowHookRequest'
      responses:
        '200':
          description: Hook resumed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResumeWorkflowHookResponse'
        '202':
          description: Accepted before hook registration; client may retry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResumeWorkflowHookResponse'
        '404':
          description: Workflow binding or hook not found for this run
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '409':
          description: Hook already resumed, disposed, or conflicting
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    ResumeWorkflowHookRequest:
      type: object
      additionalProperties: {}
    ResumeWorkflowHookResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/ResumeWorkflowHookResult'
      required:
        - data
    ErrorBody:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        resource:
          type: string
        slug:
          type: string
        file_id:
          type: string
        endpoint_id:
          type: string
        event_id:
          type: string
        delivery_id:
          type: string
        api_key_id:
          type: string
        integration_id:
          type: string
        audit_id:
          type: string
        status:
          type: string
        details: {}
        question_ids:
          type: array
          items:
            type: string
        survey_ids:
          type: array
          items:
            type: string
        revisions:
          type: array
          items:
            type: number
      required:
        - error
    ResumeWorkflowHookResult:
      type: object
      properties:
        workflow_id:
          type: string
          minLength: 1
        token:
          type: string
          minLength: 1
        status:
          type: string
          enum:
            - resumed
            - accepted
      required:
        - workflow_id
        - token
        - status

````