Skip to main content

Authentication Guide

This document describes the authentication method for RTZR STT OpenAPI.

Authentication method

RTZR STT OpenAPI uses an OAuth2 client_id/client_secret pair and JWT-based authentication.

Notes

caution

Token expiration time is 6 hours. You must periodically refresh the token via /v1/authenticate.

Application registration and Secret

To use RTZR STT OpenAPI, register an application and issue the Secret required for API authentication.

  1. Sign up on the RTZR Developers site: https://developers.rtzr.ai/signup
  2. Open the Console: https://developers.rtzr.ai/console/
  3. Issue SECRET (client_id, client_secret)

API list

MethodURLDescription
POST/v1/authenticateRequest auth token

1) Request auth token

HTTP request

POST https://openapi.vito.ai/v1/authenticate

Request body

application/x-www-form-urlencoded

FieldTypeRequired
client_idstringrequired
client_secretstringrequired

Sample code

curl.post.auth.sh
curl -X "POST" "https://openapi.vito.ai/v1/authenticate" \
-H "accept: application/json" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "client_id=${RTZR_CLIENT_ID}&client_secret=${RTZR_CLIENT_SECRET}"

Response body

On success, the API returns HTTP 200 with the payload below.

{
"access_token": "{YOUR_JWT_TOKEN}",
"expire_at": 1690377931
}

Error codes

HTTP StatusCodeNameNotes
400H0001BadRequestInvalid params
401H0002UnauthorizedAuth failed
500E500ServerErrorServer error

Example failure response:

{
"code": "H0002",
"msg": "invalid credential"
}