All Products
Search
Document Center

Cloud Phone:DescribeCreditDetail

Last Updated:Aug 27, 2026

Queries all credit change records.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

PageNum

string

No

The page number for pagination. Default value: 1.

1

PageSize

string

No

The number of entries per page.

20

StartTime

integer

No

The start time.

1782819840000

EndTime

integer

No

The end time.

1782906240000

InstanceIds

array

No

The list of instance IDs.

string

No

The instance ID.

acp-5hh4a31emkt6u****

PackageIds

array

No

The list of package or credit booster pack IDs.

string

No

The package or credit booster pack ID.

cmag-0c1g77wjljl9h****

NextToken

string

No

The token for the next query. If a query does not return all results, the returned NextToken is not empty. You can pass the returned NextToken in the next query to continue retrieving results.

AAAAAV3MpHK1AP0pfERHZN5pu6kU+SQXzm0H9mu/FiSc****

MaxResults

integer

No

The maximum number of entries to read in this request.

100

No

The list of agent types, used to filter credit change details by specified agent types.

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

1CBAFFAB-B697-4049-A9B1-67E1FC****

Data

object

The response object.

TotalCount

integer

The total number of detail records.

100

PageSize

integer

The number of entries per page. Default value: 10. Maximum value: 100.

10

PageNum

integer

The page number for pagination. Default value: 1.

1

TotalCreditChange

string

The total credit change.

100

Details

array<object>

The credit change details.

object

The credit change detail item.

ChangeTime

string

The time when the change occurred.

2026-06-30T08:14:02Z

Description

string

The task description.

Open Xiaohongshu

TaskId

string

The globally unique task ID.

t-1fr0k51pozyr5****

InstanceId

string

The instance ID.

acp-12oe0l75vl7o5****

CreditChange

string

The credit change amount.

0.7637

PackageId

string

The credit or package ID.

cmag-0c1g77wjljl9h****

ApiKeyName

string

The API key name.

default

InstanceName

string

The instance name.

my-instance

ModelId

string

The model ID.

qwen-max

InputTokens

integer

The number of input tokens.

100

OutputTokens

integer

The number of output tokens.

200

CachedTokens

integer

The number of cached tokens.

50

TotalTokens

integer

The total number of tokens.

350

RequestId

string

The request ID.

1A923337-44D9-5CAD-B2A5-4B9E6628B1C8

TtftMs

integer

The response time of the first token, in milliseconds.

500

DurationMs

integer

The model inference duration, in milliseconds.

3000

AgentType

string

The agent type. This field is populated only when querying by a single agent type.

cloudphone_enterprise

NextToken

string

The token for the next query.

AAAAAV3MpHK1AP0pfERHZN5pu6kU+SQXzm0H9mu/FiSc****

Examples

Success response

JSON format

{
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC****",
  "Data": {
    "TotalCount": 100,
    "PageSize": 10,
    "PageNum": 1,
    "TotalCreditChange": "100",
    "Details": [
      {
        "ChangeTime": "2026-06-30T08:14:02Z",
        "Description": "Open Xiaohongshu",
        "TaskId": "t-1fr0k51pozyr5****",
        "InstanceId": "acp-12oe0l75vl7o5****",
        "CreditChange": "0.7637",
        "PackageId": "cmag-0c1g77wjljl9h****",
        "ApiKeyName": "default",
        "InstanceName": "my-instance",
        "ModelId": "qwen-max",
        "InputTokens": 100,
        "OutputTokens": 200,
        "CachedTokens": 50,
        "TotalTokens": 350,
        "RequestId": "1A923337-44D9-5CAD-B2A5-4B9E6628B1C8",
        "TtftMs": 500,
        "DurationMs": 3000,
        "AgentType": "cloudphone_enterprise"
      }
    ],
    "NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6kU+SQXzm0H9mu/FiSc****"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.