メインコンテンツへスキップ
POST
Generate a New Access Token

承認

X-API-Key
string
header
必須

ヘッダー

Cartesia-Version
enum<string>
必須

API version header.

利用可能なオプション:
2024-06-10
:

"2024-06-10"

ボディ

application/json
grants
TokenGrant · object | null

The permissions to be granted via the token. Both TTS and STT grants are optional - specify only the capabilities you need.

expires_in
integer | null

The number of seconds the token will be valid for since the time of generation. The maximum is 1 hour (3600 seconds).

レスポンス

200 - application/json
token
string
必須

The generated Access Token.