Skip to content
中文

Events

Guide →

Base URL and authentication

Events record database lifecycle and table/field changes, not row reads or writes. Table databases and key-value databases each have their own events path; the two operations below take the same parameters.

Defaults to ascending seq; before_seq alone implies desc (newest first). next_cursor is an opaque string cursor — pass it back unchanged, as after_seq for asc or before_seq for desc. Both cursors together, or before_seq with order=asc, return 400 INVALID_PARAMS. Events remain readable while a database is deleting.

next_cursor is an opaque string cursor: pass it back unchanged and do not do arithmetic on it. A null next_cursor means there is no next page. Descending pagination uses the requests below (shown for a table database; for a key-value database replace table with kv).

终端窗口
# Newest page
curl "https://api.deepraxis.com/database/v1/table/${DATABASE_ID}/events?order=desc&limit=10" \
-H "Authorization: Bearer $PRAXIS_API_KEY"
# Set NEXT_CURSOR to the previous response's next_cursor
curl "https://api.deepraxis.com/database/v1/table/${DATABASE_ID}/events?order=desc&before_seq=${NEXT_CURSOR}&limit=10" \
-H "Authorization: Bearer $PRAXIS_API_KEY"

List table database events

GET /database/v1/table/{database_id}/events

Parameter Location Description
database_id path Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
after_seq query With order=asc, return only events with seq greater than this value. Cannot be combined with before_seq.
limit query Page size. (default: 50) (1–200)
order query Sequence order: asc or desc (newest first). Defaults to asc, or to desc when before_seq is supplied.
before_seq query Return only events with seq less than this value, newest first; implies order=desc when order is omitted. Cannot be combined with after_seq or order=asc.

Returns: Page + object.

Response

HTTP 200

Success

application/json

Name Type Description
data array<object> Events on this page in the requested order (ascending seq by default, newest first with before_seq or order=desc).
data[].seq integer Position of the event in the database's event log; starts at 1 and strictly increases. Use it as after_seq or before_seq to page.
data[].id string Unique identifier of this event record.
data[].type string What happened: a lifecycle transition of the database, or a schema change to a table or field.
data[].processed_at string Time the event was recorded, as an RFC 3339 UTC timestamp.
data[].database_id string Id (db_…) of the database the event belongs to.
data[].table_id string Id (tbl_…) of the affected table; present only for table and field events.
data[].field_id string Id (fld_…) of the affected field; present only for field events.
next_cursor string | null Opaque cursor for the next page, or null when there are no more items. Databases list: pass it as cursor. Events list: pass it as after_seq (order asc) or before_seq (order desc).
终端窗口
curl -X GET "https://api.deepraxis.com/database/v1/table/${DATABASE_ID}/events?after_seq=0&limit=10" \
-H "Authorization: Bearer $PRAXIS_API_KEY"

Response example — HTTP 200

{
"data": [
{
"seq": 1,
"id": "81fab8ce-7334-4f71-bf3d-fb6654e49d68",
"type": "database.status_provisioning",
"processed_at": "2026-11-27T03:16:30.457Z",
"database_id": "db_ff061f80a8494a1f"
},
{
"seq": 2,
"id": "52fc92a7-ea81-412d-a653-ef87f6d2f039",
"type": "database.status_active",
"processed_at": "2026-11-27T03:16:30.457Z",
"database_id": "db_ff061f80a8494a1f"
},
{
"seq": 3,
"id": "8e0315f4-1c1b-4089-874a-8b924e080594",
"type": "table.created",
"processed_at": "2026-11-27T03:16:34.251Z",
"database_id": "db_ff061f80a8494a1f",
"table_id": "tbl_2f51c604bca34b47"
},
{
"seq": 4,
"id": "0e7671a9-6cde-45ef-ba31-c5e14a0c6063",
"type": "table.updated",
"processed_at": "2026-11-27T03:16:36.697Z",
"database_id": "db_ff061f80a8494a1f",
"table_id": "tbl_2f51c604bca34b47"
},
{
"seq": 5,
"id": "f206e457-f53b-4e3a-bdde-36ef6a8a0bc6",
"type": "field.added",
"processed_at": "2026-11-27T03:16:37.506Z",
"database_id": "db_ff061f80a8494a1f",
"table_id": "tbl_2f51c604bca34b47",
"field_id": "fld_dfc03c7a3fa24c43"
},
{
"seq": 6,
"id": "3855988e-f2ad-459c-840a-8cfd6f9b4b58",
"type": "field.updated",
"processed_at": "2026-11-27T03:16:38.195Z",
"database_id": "db_ff061f80a8494a1f",
"table_id": "tbl_2f51c604bca34b47",
"field_id": "fld_dfc03c7a3fa24c43"
},
{
"seq": 7,
"id": "3e055984-f6c5-47e2-8b7b-bf7d8fa814a2",
"type": "field.deleted",
"processed_at": "2026-11-27T03:16:38.874Z",
"database_id": "db_ff061f80a8494a1f",
"table_id": "tbl_2f51c604bca34b47",
"field_id": "fld_dfc03c7a3fa24c43"
}
],
"next_cursor": null
}

List key-value database events

GET /database/v1/kv/{database_id}/events

Parameter Location Description
database_id path Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
after_seq query With order=asc, return only events with seq greater than this value. Cannot be combined with before_seq.
limit query Page size. (default: 50) (1–200)
order query Sequence order: asc or desc (newest first). Defaults to asc, or to desc when before_seq is supplied.
before_seq query Return only events with seq less than this value, newest first; implies order=desc when order is omitted. Cannot be combined with after_seq or order=asc.

Returns: Page + object.

Response

HTTP 200

Success

application/json

Name Type Description
data array<object> Events on this page in the requested order (ascending seq by default, newest first with before_seq or order=desc).
data[].seq integer Position of the event in the database's event log; starts at 1 and strictly increases. Use it as after_seq or before_seq to page.
data[].id string Unique identifier of this event record.
data[].type string What happened: a lifecycle transition of the database, or a schema change to a table or field.
data[].processed_at string Time the event was recorded, as an RFC 3339 UTC timestamp.
data[].database_id string Id (db_…) of the database the event belongs to.
data[].table_id string Id (tbl_…) of the affected table; present only for table and field events.
data[].field_id string Id (fld_…) of the affected field; present only for field events.
next_cursor string | null Opaque cursor for the next page, or null when there are no more items. Databases list: pass it as cursor. Events list: pass it as after_seq (order asc) or before_seq (order desc).
终端窗口
curl -X GET "https://api.deepraxis.com/database/v1/kv/${DATABASE_ID}/events?after_seq=0&limit=10" \
-H "Authorization: Bearer $PRAXIS_API_KEY"

Response example — HTTP 200

{
"data": [
{
"seq": 1,
"id": "29a4c199-3b53-4ba1-9ed5-664f98e5258a",
"type": "database.status_provisioning",
"processed_at": "2026-11-27T03:16:54.255Z",
"database_id": "db_581e6ba51c0b40be"
},
{
"seq": 2,
"id": "5d9c428e-c377-4ea3-b3b7-f775ad469b83",
"type": "database.status_active",
"processed_at": "2026-11-27T03:16:54.255Z",
"database_id": "db_581e6ba51c0b40be"
}
],
"next_cursor": null
}

DatabaseEvent

Field Type Required Description
seq integer yes Position of the event in the database's event log; starts at 1 and strictly increases. Use it as after_seq or before_seq to page.
id string yes Unique identifier of this event record.
type "database.status_provisioning" / "database.status_active" / "database.status_deleting" / "database.status_deleted" / "database.status_failed" / "database.restored" / "table.created" / "table.updated" / "table.deleted" / "field.added" / "field.updated" / "field.deleted" yes What happened: a lifecycle transition of the database, or a schema change to a table or field.
processed_at date-time yes Time the event was recorded, as an RFC 3339 UTC timestamp.
database_id string yes Id (db_…) of the database the event belongs to.
table_id string no Id (tbl_…) of the affected table; present only for table and field events.
field_id string no Id (fld_…) of the affected field; present only for field events.