Get an overview
Returns what the instance holds that your credential can reach: types with item counts, edge types, top tags, views and folders, and what your credential may do. Every list is capped. Needs no type access.
bearerAuthAuthorizationBearer <token>Authenticate with an API key (marfa_k1_…) or an OAuth access token (marfa_at_…).
Returns the overview. A credential that reaches nothing gets the instance and credential only.
application/json- response
A summary of what this instance holds and what your credential may reach.
instance*The instance's name and the build it runs.
credential*The credential that sent the request, and what it may do.
types?array<>The types you can read, most items first, then by identifier, at most 50. Types in the system namespace are left out. Absent when you can read none.
total?integerHow many active items you can read across every type types would list before its cut. Absent when types is.
edge_types?array<>The edge types you can read or write, sorted by identifier, at most 50. Absent when you can read no type or can use no edge type.
tags?array<>The most used tags on items you can read, at most 30. Absent when there are none.
views?array<>The views you can read, sorted by title, at most 30. Absent when there are none.
folders?array<>The folders you can read, sorted by title, at most 30. Absent when there are none.
truncated?Each list that was cut, with how many entries it held before the cut. Names are types, edge_types, tags, views, folders and credential.type_permissions.<level>. Absent when nothing was cut.
validation_error: the query has a parameter this endpoint doesn't take.
application/json- response
An error response.
error*What went wrong.
unauthorized: the request has no credential, or its credential is not valid. For a key that has expired, details.expired_at says when it expired.
application/json- response
An error response.
error*What went wrong.
contract_mismatch: X-Marfa-Contract names another contract version than this instance speaks, or is not a whole number. Nothing was done.
application/json- response
An error response.
error*What went wrong.
rate_limited: you sent too many requests. Wait for the number of seconds in Retry-After, then try again.
application/json- response
An error response.
error*What went wrong.
internal_error: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write.
application/json- response
An error response.
error*What went wrong.
write_contention: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, details.reason is restore_running.
application/json- response
An error response.
error*What went wrong.
insufficient_storage: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless details.write_outcome is unknown, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again.
application/json- response
An error response.
error*What went wrong.
curl -X GET 'http://localhost:8600/overview'{ "instance": { "name": "Marfa", "version": "0.0.0" }, "credential": { "kind": "key", "label": "CRM sync", "type_permissions": { "write": [ "*" ] }, "permissions": [ "audit.read", "blobs.manage", "config.manage", "connectors.manage", "grants.manage", "instance.maintain", "instance.read", "items.purge", "keys.manage", "keys.mint", "schema.write", "webhooks.manage" ] }, "types": [ { "id": "acme.contact", "count": 3 }, { "id": "acme.deal", "description": "A sales deal.", "count": 3 } ], "total": 7, "edge_types": [ { "id": "about", "description": "Says that an item is about another item, such as a note about a book.", "access": "write" }, { "id": "acme.deal-contact", "access": "write" } ], "tags": [ { "tag": "reviewed", "count": 3 }, { "tag": "q4", "count": 1 } ], "views": [ { "id": "01a10122-ce84-7b6c-b1fd-38287d45e791", "title": "Won this quarter" } ], "folders": [ { "id": "01a10122-54e3-7447-9e6f-91e7d99f361f", "title": "Open deals" } ]}