> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.ripio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Websocket Ticket

> Creates a new websocket ticket. Should be sent in the body property called `ticket` to subscribe to the websocket private topics.

---

**Authorization**

- Requires a valid API key.
- Required API-key permission(s):
  - WebSocket Ticket



## OpenAPI

````yaml post /trade/ticket
openapi: 3.0.0
info:
  title: Ripio Gateway
  description: Ripio API - Services documentation.
  version: 0.1.0
  x-logo:
    url: https://cwstatic.nyc3.digitaloceanspaces.com/1996/bitcointrade.png
servers:
  - url: https://api.ripio.com
    description: Production environment
security: []
paths:
  /trade/ticket:
    post:
      tags:
        - Ripio Trade
      summary: Ticket - WebSocket ticket
      description: >-
        Creates a new websocket ticket. Should be sent in the body property
        called `ticket` to subscribe to the websocket private topics.


        ---


        **Authorization**


        - Requires a valid API key.

        - Required API-key permission(s):
          - WebSocket Ticket
      parameters:
        - in: header
          name: authorization
          required: true
          description: The API key as a string.
          schema:
            type: string
        - in: header
          name: signature
          required: true
          description: >-
            See the [Generating
            Signature](/static/api/authentication#generating-signature) section
            for more details.
          schema:
            type: string
        - in: header
          name: timestamp
          required: true
          description: >-
            A timestamp in milliseconds. See the [Timestamp
            Security](/static/api/authentication#timestamp-security) section for
            more details.
          schema:
            type: number
        - in: header
          name: timstamp-tolerance
          required: false
          description: >-
            An additional, non-required parameter, that you can send to specify
            the number of milliseconds after the timestamp for the request to be
            valid. See the [Timestamp
            Security](/static/api/authentication#timestamp-security) section for
            more details.
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                description: Ok
                properties:
                  data:
                    properties:
                      ticket:
                        description: >-
                          Ticket for subscribing to the WebSocket's private
                          topics
                        type: string
                    required:
                      - ticket
                    type: object
                    example:
                      ticket: D90A9A10-06AF-44AF-8592-BAF866DD1503
                  error_code:
                    type: number
                    example: null
                  message:
                    type: string
                    example: null
                required:
                  - data
                  - error_code
                  - message
                type: object

````