---
title: "POST /v2/rpc-ws/tickets"
method: POST
path: "/v2/rpc-ws/tickets"
tags: ["RPC WebSocket"]
---

# POST /v2/rpc-ws/tickets

`POST /v2/rpc-ws/tickets`

## Request

- Base URL: `https://api.arbital.xyz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.arbital.xyz/v2/rpc-ws/tickets`
- Auth: HTTP bearer

Mints a one-time, 45-second, chain-bound browser WebSocket ticket. The ticket is returned as a Sec-WebSocket-Protocol value and the response must never be stored.

## Request body

- CreateRpcWebSocketTicketRequest
  - `chain_id` 'eip155:1' | 'eip155:56' | 'eip155:143' | 'eip155:999' | 'eip155:4663' | 'eip155:5042' | 'eip155:8453' | 'eip155:42161' | 'solana:mainnet-beta', required

## Response `200`

One-time RPC WebSocket ticket

- RpcWebSocketTicket
  - `chain_id` 'eip155:1' | 'eip155:56' | 'eip155:143' | 'eip155:999' | 'eip155:4663' | 'eip155:5042' | 'eip155:8453' | 'eip155:42161' | 'solana:mainnet-beta', required
  - `expires_at_unix` integer, required
  - `protocol` 'arbital.rpc.v1', required
  - `ticket_protocol` string, required
  - `websocket_path` string, required

## Other responses

- `400`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `401`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `408`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `413`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `429`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.
- `503`: Stable machine-readable problem. HTTP 429 and 503 responses include retry and cache-validity fields plus Retry-After and X-Request-ID headers.

---

[API](https://skmtc.dev/arbital/apis/arbital-api.md) - [All operations](https://skmtc.dev/arbital/apis/arbital-api/llms.txt) - [OpenAPI document](https://skmtc.dev/arbital/apis/arbital-api/revisions/bb0185edf43a?raw)
