List all OKF types in the vault
GET
/types
const url = 'https://api.engram.page/types';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.engram.page/types \ --header 'Authorization: Bearer <token>'Returns the distinct set of Open Knowledge Format type values used across all notes in the current vault, normalised (NFKC + lowercase) to match how the search filter buckets them.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”Types
Media typeapplication/json
TypesResponse
object
types
required
Array<object>
object
name
string
Examplegenerated
{ "types": [ { "name": "example" } ]}