ListAppStackWebhookHistory - Get the execution history of an AppStack webhook

Updated at:

Retrieves the execution history of a specific webhook.

Applicable versions

Central and Region

Endpoints and authorization information

  • Obtain an endpoint to replace {domain} in the request syntax.
  • Obtain a personal access token.
  • Obtain the organizationId: This parameter is required only for the Central version. To obtain the organization ID, go to the Basic Information page in the Organization Management console.

Product

Resource

Required permission

Application Delivery

Webhook

Read-only

Request syntax

Central version

GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/hook/{sn}/logs/api

Region version

GET https://{domain}/oapi/v1/appstack/hook/{sn}/logs/api

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Your personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example

organizationId

string

Path

  • Yes: Central version

  • No: Region version

The organization ID.

ec766e6xxxxxxxxxx34d6exe671

sn

string

Path

Yes

The unique identifier of the webhook.

c263a67497xxxxxxxxe842f45f2f80e

perPage

Integer

Query

No

The number of entries per page. This is an optional parameter. If specified, the value must be greater than 0 and less than 50.

10

page

Integer

Query

No

The page number. This is an optional parameter. If specified, the value must be greater than or equal to 0.

1

orderBy

string

Query

No

The field to sort by. This is an optional parameter. If specified, the value must be `gmtCreate`.

gmtCreate

sort

string

Query

No

The sort order. This is an optional parameter. If specified, the value must be `desc` or `asc`.

desc

Request examples

Central version

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e6xxxxxxxxxx34d6exe671/hook/c263a67497xxxxxxxxe842f45f2f80e/logs/api?perPage=10&page=1&orderBy=gmtCreate&sort=desc' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region version

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/hook/c263a67497xxxxxxxxe842f45f2f80e/logs/api?perPage=10&page=1&orderBy=gmtCreate&sort=desc' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

Object

The response for the AppStack webhook history.

current

Integer

The current page number.

1

data

Array

The list of historical data.

-

Object

An AppStack webhook history log.

action

String

The event action.

Create

event

string

The event type.

Env

eventData

Object

The event data.

headers

Object

The request header information.

payload

Object

The event payload.

gmtEnd

String

The end time.

2025-09-19T06:05:18.000+00:00

gmtEndLong

Integer

The end timestamp.

1758261917732

gmtSend

String

The time the event was sent.

2025-09-19T06:05:18.000+00:00

gmtSendLong

Integer

The timestamp when the event was sent.

1758261917647

refHookChannelSubscribeSn

string

The identifier of the associated webhook subscription.

aa1e7f6acxxxxxx830aa295fc66

result

Object

The execution result.

data

Integer

The HTTP status code.

302

message

string

The result message.

{"headers":{"Connection":"keep-alive","Content-Length":"0"},"body":"","message":"Found"}

success

Boolean

Indicates whether the execution was successful.

false

sn

string

The unique identifier of the log.

ae321cxxxxxxxx087ffa612d5bc

state

Integer

The execution state.

2

nextToken

string

The token for the next page.

pages

Integer

The total number of pages.

1

perPage

Integer

The number of entries per page.

10

total

Integer

The total number of records.

6

Response example

{
    "current": 1,
    "data": [
        {
            "action": "Create",
            "event": "Env",
            "eventData": {
                "headers": {
                },
                "payload": {
                }
            },
            "gmtEnd": "2025-09-19T06:05:18.000+00:00",
            "gmtEndLong": 1758261917732,
            "gmtSend": "2025-09-19T06:05:18.000+00:00",
            "gmtSendLong": 1758261917647,
            "refHookChannelSubscribeSn": "aa1e7f6acxxxxxx830aa295fc66",
            "result": {
                "data": 302,
                "message": "{"headers":{"Connection":"keep-alive","Content-Length":"0"},"body":"","message":"Found"}",
                "success": false
            },
            "sn": "ae321cxxxxxxxx087ffa612d5bc",
            "state": 2
        }
    ],
    "nextToken": "",
    "pages": 1,
    "perPage": 10,
    "total": 6
}

Error codes

For a list of API-related error codes, see the Error Code Center.