---
title: "Register Client"
method: POST
path: "/websocket/register"
tags: ["websocket"]
---

# Register Client

`POST /websocket/register`

## Request

- Base URL: `https://cash.api.prophetx.co/parlay/sp/v2`
- URL: `https://cash.api.prophetx.co/parlay/sp/v2/websocket/register`
- Auth: none declared

Register Client, support `application/json`, `application/x-www-form-urlencoded`

## Request body

- ModelRegisterRequest
  - `socket_id` string, required

## Response `200`

OK

- ContractRegisterWebsocketResponse
  - `auth` string
  - `data` ContractRegisterWebsocketDataResponse
    - `authenticated` ModelAuthenticatedInfo
      - `auth` string
      - `user_data` string
    - `authorized_channel` ModelAuthorizedInfo[]
      - `auth` string
      - `binding_events` DomainWebsocketEvent[]
      - `channel_name` string
    - `status` string
    - `success` boolean
    - `updated_at` integer

## Other responses

- `default`: Response

---

[API](https://skmtc.dev/prophetx/apis/parlay-sp-api.md) - [All operations](https://skmtc.dev/prophetx/apis/parlay-sp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prophetx/apis/parlay-sp-api/revisions/414a4df0998e?raw)
