> For the complete documentation index, see [llms.txt](https://greymatter.gitbook.io/grey-matter-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://greymatter.gitbook.io/grey-matter-documentation/1.3/usage/platform-services/data/api.md).

# API Overview

This section gives a broad overview of how to interact with the Grey Matter Data API.

## Structure

For a necessary introduction to the API model, see the [Structure](/grey-matter-documentation/1.3/usage/platform-services/data/internals/structure.md) section.

## Authentication

Grey Matter Data uses JSON Web Tokens (JWT) for authentication.

To learn more, see [Authentication with JWT](/grey-matter-documentation/1.3/usage/platform-services/data/internals/auth.md).

## Data Retrieval

Initial file listings may be accessed from the root folder with a `GET` request to the `/list/1` endpoint.

The root directory has the well-known Object ID (`oid`) of 1 by default. This directory may be accessed by all users, although its contents may only be accessed by authenticated users.

Information about Objects in the system may be retrieved through the following means:

* Props - Get the latest Event for a given Object
* List - Get all child Events for a given Object
* Notifications Get all Events for a given Object
* Derived - Get all Objects related to a given Object
* History - Get all Events associated with an Object

Actual file data may be extracted from the system through the following means:

* Stream - As a raw byte stream through the `/stream` endpoint, used to download the Object locally.
* Show - As a raw byte stream within an iFrame that displays security meta data of the Object, through the `/show` endpoint, used to view the Object within the browser window.
* Read - Through the `/read` endpoint which allows for bulk querying.

## Data Modification

The only way to modify data in Grey Matter Data is through the `/write` endpoint.

## Utilities

Additional utility endpoints are available. See the [Utility Endpoints](/grey-matter-documentation/1.3/usage/platform-services/data/endpoints.md) section.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://greymatter.gitbook.io/grey-matter-documentation/1.3/usage/platform-services/data/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
