> For the complete documentation index, see [llms.txt](https://docs.trustlesswork.com/trustless-work/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/escrows/get-escrow.md).

# Get Escrow

### **Headers**

<table><thead><tr><th width="366">Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/json</code></td></tr><tr><td>x-api-key</td><td><code>&#x3C;token></code></td></tr></tbody></table>

### Open API

## GET /escrows/{contractId}

Reads one escrow in full: current state, participants, event timeline and deposits.

| Name       | Type   | In   | Description                              |
| ---------- | ------ | ---- | ---------------------------------------- |
| contractId | string | path | On-chain escrow address (`C…`, 56 chars) |

### **What this Endpoint returns?**

```json
{
  "escrow": { /* state + snapshot + asset + balance */ },
  "events": [ /* first 200 */ ],
  "eventsHasMore": true,
  "deposits": [ ]
}
```

If `eventsHasMore` is true, page the rest with `GET /escrows/{contractId}/events`.

A `404 ESCROW_NOT_FOUND` means the contract is unknown **on this network**.

### Use Example:

```typescript
import axios from "axios";

const http = axios.create({
  baseURL: "https://beta.api.trustlesswork.com",
  timeout: 10000,
  headers: {
    "Content-Type": "application/json",
    "x-api-key": your_api_key,
  },
});

export const useExample = async (contractId: string) => {
  const { data } = await http.get(`/escrows/${contractId}`);
  return data;
}
```

{% hint style="info" %}
There is also `GET /escrow/<family>/v2/{contractId}`, which reads the same escrow **directly from the contract**. That one is authoritative but slower and returns only contract state. Use this page's endpoint for speed, history and deposits; use the contract read when the value is about to drive a decision.
{% endhint %}

{% hint style="info" %}
These reads come from the read-model, which is eventually consistent. Right after submitting a transaction a `404` usually means "not projected yet", not "does not exist" — poll briefly instead of treating it as an error.
{% endhint %}


---

# 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.trustlesswork.com/trustless-work/v2-en/api-rest/escrows/get-escrow.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.
