# 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: 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://docs.fractalworks.io/joule/developer-guides/api-endpoints/data-access-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.
