resources

List Resources

List all resources in the caller's current workspace.

Returns an ordered list (latest activity first) of contexts that have a non-null resource_id, with aggregated counts joined from the resource_tokens, memories, resource_schemas, and resource_events tables.

#1863: a resource whose contexts were all deleted is still listed, with the context fields null, while it has active tokens. Those tokens keep authenticating ingest, so the owner needs a way to reach and revoke them; once the last one is revoked the row disappears.

Owner-only (#389): WorkspaceOwner rejects non-owners with 403. get_accessible_contexts below is a no-op for owners and retained as defense-in-depth against a role-gate regression.

Example: GET /api/v1/resources

get/api/v1/resources

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/resources
  • Auth: none declared

Headers

authorizationstring nullable

Response

Successful Response

totalinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.