Skip to main content
GET
List Collections
Every /data endpoint needs the Intermediary plan or higher, on the database owner’s account — not the caller’s. Below that the answer is PLAN_RESTRICTED_FEATURE (403). It is also dashboard-session only: an API key gets API_KEY_SCOPE_DENIED (403) here, regardless of its scopes.
MongoDB only.
string
required
The ID of the database.
string
Workspace the database belongs to.

Response

object[]

Indexes

string
/v1/databases/{id}/data/collections/{name}/indexes
Returns an array of { name, keys, unique, sparse }, where keys has the same shape as createIndex ({ "created_at": -1 }). The collection name must be one the database’s own listCollections returns; anything else answers OBJECT_NOT_FOUND.