> For the complete documentation index, see [llms.txt](https://docs.fractalworks.io/joule/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fractalworks.io/joule/developer-guides/api-endpoints/data-access-api.md).

# Data access API

## Overview

The **Joule Data API** provides a powerful set of REST endpoints for **accessing, publishing and consuming** data within the Joule platform.

Designed for high-performance data interactions, it allows developers to:

1. Query in-memory processed data
2. Export information
3. Manage real-time event streams via WebSockets

## API capabilities

### **Query**

Use the Query endpoints to **search and retrieve stored events** within Joule’s internal database.

This functionality enables you to extract historical data, perform analysis and export results for further processing.

It is essential for use cases where you need insights from past events or data archives.

{% content-ref url="/pages/Y6TZyeSppcCDRouzzFbe" %}
[Query](/joule/developer-guides/api-endpoints/data-access-api/query.md)
{% endcontent-ref %}

### **Upload**

The Upload endpoints allow you to **push data files or stream data directly** into Joule, integrating external data sources or updating current datasets.

This feature supports seamless data ingestion, making it easy to incorporate new data points for analysis and processing within Joule.

{% content-ref url="/pages/3WAkoxYMDFb0pBgNhBwN" %}
[Upload](/joule/developer-guides/api-endpoints/data-access-api/upload.md)
{% endcontent-ref %}

### **WebSocket**

The WebSocket endpoints enable **real-time data interaction by allowing clients to subscribe to events** as they occur.

With WebSockets, you can build applications that respond instantly to data changes, creating dynamic, event-driven solutions that leverage Joule’s real-time processing capabilities.

{% content-ref url="/pages/czfKLIthZIoRY7aGvaw3" %}
[WebSocket](/joule/developer-guides/api-endpoints/data-access-api/websocket.md)
{% endcontent-ref %}


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.fractalworks.io/joule/developer-guides/api-endpoints/data-access-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
