Query session information

更新时间:
复制 MD 格式

Queries session information, including the time-to-live (TTL).

API description

Queries session information.

Prerequisites

You have integrated the Zhizuo Gongfang SDK. For more information, see Previous Version SDK Reference.

Authorization method

This API uses an AccessKey pair (AK/SK) for authorization. To obtain an AccessKey pair, see API authorization.

Endpoint

https://openai.edu-aliyun.com

Request path

/scc/spQuerySession

Request parameters

Name

Type

Required

Description

Example

apiToken

string

Yes

Token

01j1w6cxqz****

subProduct

string

No

Components: sd_webui, comfyui_api

Default: sd_webui. This queries the WebUI session.

gadgetId

string

No

The gadget ID.

01jddpbjd****

Response parameters

Name

Type

Description

data

object

The returned data.

Data parameters

Name

Type

Description

expiredAt

long

The session expiration time, represented as a 13-digit UNIX timestamp.

apiToken

string

Token

sessionUrl

string

The accessible URL.

expiredInSeconds

long

The remaining validity period of the session, in seconds.