> Use the canonical URL for citations. For the complete Predict API documentation index, fetch https://docs.staging.trypredict.com/llms.txt.

# WebSocket POST Requests

GET /ws

Send an unsigned Hyperliquid info request or fully signed Predict trading action through an existing WebSocket connection with a correlation ID.

Reference: https://docs.staging.trypredict.com/api-reference/web-socket-api/post-requests

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: WebSocket POST Requests
  version: subpackage_post-requests.post-requests
  description: >-
    Send an unsigned Hyperliquid info request or fully signed Predict trading
    action through an existing WebSocket connection with a correlation ID.
channels:
  /ws:
    description: >-
      Send an unsigned Hyperliquid info request or fully signed Predict trading
      action through an existing WebSocket connection with a correlation ID.
    publish:
      operationId: subpackage_post-requests.post-requests-publish
      summary: Server message
      message:
        name: response
        payload:
          $ref: '#/components/schemas/postRequests_PostResponse'
    subscribe:
      operationId: subpackage_post-requests.post-requests-subscribe
      summary: Client message
      message:
        name: request
        payload:
          $ref: '#/components/schemas/postRequests_PostRequest'
servers:
  Testnet:
    url: wss://api.hyperliquid-testnet.xyz/
    protocol: wss
    x-default: true
  Mainnet:
    url: wss://api.hyperliquid.xyz/
    protocol: wss
components:
  schemas:
    postRequests_PostResponse:
      type: object
      properties:
        channel:
          type: string
          enum:
            - post
        data:
          description: Any type
      required:
        - channel
        - data
      title: PostResponse
    postRequests_PostRequestBody:
      type: object
      properties:
        type:
          type: string
          description: Use `info` for unsigned reads or `action` for signed actions.
        payload:
          description: Any type
      required:
        - type
        - payload
      title: PostRequestBody
    postRequests_PostRequest:
      type: object
      properties:
        method:
          type: string
          enum:
            - post
        id:
          type: integer
          format: int64
        request:
          $ref: '#/components/schemas/postRequests_PostRequestBody'
      required:
        - method
        - id
        - request
      title: PostRequest

```