Query token information

更新时间:
复制 MD 格式

Query information about a token, including its session duration.

API description

Querying token information

Prerequisites

You have integrated the Smart Creation Workshop software development kit (SDK). For more information, see Legacy SDK reference.

Authorization method

This API uses an AccessKey pair (AK/SK) for authorization. For information about how to obtain an AK/SK, see API authorization.

Endpoint

https://openai.edu-aliyun.com

Request path

/scc/spQueryToken

Request parameters

Name

Type

Required

Description

Example

apiToken

string

Yes

The token.

01j1w6cxqz****

Response parameters

Name

Type

Description

data

object

The returned data.

data parameters

Name

Type

Description

apiToken

string

The token.

tokenExpiredAt

long

The expiration time of the token.

usedSessionTimeInSeconds

long

The used session duration, in seconds.