General operations

Updated at:

This topic describes the endpoint, authentication methods, event queries, and health checks for the RDS ContextDB Data API.

Common information

Endpoint

https://context-database.aliyuncs.com

Authentication

All data plane operations authenticate with a workspace API key. Use either of the following methods:

Method

Header format

X-API-Key

X-API-Key: <YOUR_API_KEY>

Bearer

Authorization: Bearer <YOUR_API_KEY>

Data API overview

The following table lists the operations covered in this topic.

API

Description

GetEvent

Queries the status and result of an asynchronous event.

Ping

Performs a health check and API key verification.

Event API

GetEvent

Description

Queries the status and result of an asynchronous event. Returns HTTP 400 if the event does not exist or is inaccessible.

Request syntax

GET /v1/event/{eventId}

Request parameters

Name

Type

Required

Description

Example

eventId

string

Yes

The event ID (path parameter)

evt-abc123

Response parameters

Name

Type

Description

Example

id

string

The event ID

evt-abc123

event_type

string

The mapped event type.

ADD

status

string

The event status

SUCCEEDED

payload

object

The event payload, or an empty object if unavailable.

{}

metadata

object

The metadata. Currently an empty object.

{}

results

array

The execution results, or an empty array if unavailable.

[{"memory_id":"mem-001"}]

created_at

string

The creation time

2026-07-01T08:00:00Z

updated_at

string

The update time

2026-07-01T08:00:05Z

started_at

string

The execution start time, or null if execution has not started.

2026-07-01T08:00:01Z

completed_at

string

The completion time, or null if execution has not completed.

2026-07-01T08:00:05Z

resource_type

string

The associated resource type

memory

resource_id

string

The associated resource ID. Can be null.

mem-001

latency

integer

The execution duration in milliseconds.

4000

Examples

Sample success response:

{
  "id": "evt-abc123",
  "event_type": "ADD",
  "status": "SUCCEEDED",
  "payload": {},
  "metadata": {},
  "results": [],
  "created_at": "2026-07-01T08:00:00Z",
  "updated_at": "2026-07-01T08:00:05Z",
  "started_at": "2026-07-01T08:00:01Z",
  "completed_at": "2026-07-01T08:00:05Z",
  "resource_type": "memory",
  "resource_id": "mem-001",
  "latency": 4000
}

Health check

Ping

Description

Performs a health check and API key verification.

Request syntax

GET /v1/ping

Request parameters

None.

Response parameters

Name

Type

Description

Example

status

string

The service status

ok

org_id

string

The workspace ID

ws-001

project_id

string

The project identifier. A fixed value.

default

Examples

Sample success response:

{
  "status": "ok",
  "org_id": "ws-001",
  "project_id": "default"
}