# Wait for signal

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /browser/{taskId}/signal/wait:
    get:
      summary: Wait for signal
      deprecated: false
      description: Wait for a signal event
      tags:
        - Scraping Browser/Browser signal
      parameters:
        - name: taskId
          in: path
          description: session task id
          required: true
          example: ''
          schema:
            type: string
        - name: event
          in: query
          description: Event channel name
          required: true
          schema:
            type: string
        - name: timeout
          in: query
          description: Timeout in milliseconds
          required: false
          schema:
            type: integer
            default: 60000
        - name: x-api-token
          in: header
          description: API Key
          required: false
          example: '********************'
          schema:
            type: string
            default: '********************'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignalResponse'
          headers: {}
          x-apidog-name: OK
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
          x-apidog-name: Bad Request
      security:
        - apikey-header-x-api-token: []
      x-apidog-folder: Scraping Browser/Browser signal
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/745098/apis/api-24795287-run
components:
  schemas:
    SignalResponse:
      type: object
      properties:
        event:
          type: string
          description: event name
        status:
          type: integer
          examples:
            - 200
          description: status code
        data:
          type: object
          properties: {}
          x-apidog-orders: []
          description: event data
          x-apidog-ignore-properties: []
      x-apidog-orders:
        - event
        - status
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ErrorResponse:
      type: object
      properties:
        status:
          type: integer
          examples:
            - 400
        error:
          type: string
          examples:
            - event must not be empty
      x-apidog-orders:
        - status
        - error
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearer:
      type: bearer
      scheme: bearer
      description: Bearer token authentication using your Scrapeless API key
    apikey-header-x-api-token:
      type: apiKey
      in: header
      name: x-api-token
servers:
  - url: https://api.scrapeless.com
    description: Prod Env
security:
  - apikey-header-x-api-token: []

```
