Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 512 Bytes

Token_Endpoints.md

File metadata and controls

33 lines (23 loc) · 512 Bytes

Token Generation API

This document provides details about the Token Generation API endpoints with curl examples for testing.

Generate Token

Generates a token based on the provided parameters.

Endpoint

POST /token/getNew

Request Body

{
  "tokenType": "rtc|rtm|chat",
  "channel": "string",
  "uid": "string",
  "role": "publisher|subscriber",
  "expire": int
}

Response

{
  "token": "string"
}

Replace localhost:8080 with your server's address if different.