# Get Transcript

## API Doc

Interactive API docs can be found at: <https://run.truebit.network/transcript-query/api-docs/>

## Overview

By calling this endpoint, you’ll receive the Transcript associated with the given  `executionId`  or `transcriptHash`.

## Find transcript by executionId

> Returns the transcript associated with the given executionId parameter

```json
{"openapi":"3.1.0","info":{"title":"Transcript and Invoice","version":"1.120.0-beta.311"},"tags":[{"name":"Transcript","description":"Transcript query endpoints"}],"servers":[{"description":"Public beta","url":"https://run.truebit.network"},{"description":"Current environment relative paths","url":"/"}],"paths":{"/task/{executionId}/transcript":{"get":{"tags":["Transcript"],"summary":"Find transcript by executionId","description":"Returns the transcript associated with the given executionId parameter","operationId":"getTranscriptByExecutionId","parameters":[{"name":"executionId","in":"path","description":"Task executionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Cannot find the transcript associated with the given executionId","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}}}}
```

## Find transcript by transcriptHash

> Returns the transcript associated with the given transcriptHash parameter

```json
{"openapi":"3.1.0","info":{"title":"Transcript and Invoice","version":"1.120.0-beta.311"},"tags":[{"name":"Transcript","description":"Transcript query endpoints"}],"servers":[{"description":"Public beta","url":"https://run.truebit.network"},{"description":"Current environment relative paths","url":"/"}],"paths":{"/task/hash/{transcriptHash}/transcript":{"get":{"tags":["Transcript"],"summary":"Find transcript by transcriptHash","description":"Returns the transcript associated with the given transcriptHash parameter","operationId":"getTranscriptByTranscriptHash","parameters":[{"name":"transcriptHash","in":"path","description":"Transcript hash","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Cannot find the transcript associated with the given transcriptHash","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}}}}
```

### Response Data

It returns the Function Transcript associated with the given `executionId`  or `transcriptHash`.

Function Transcript examples

* [Verified Function Transcript example](/architecture/execution-transcripts/function-transcript.md)
* [Non-Concensus Function Transcript example ](/architecture/execution-transcripts/non-consensus-transcript.md)

API Transcript examples

* [API Transcript example](/architecture/execution-transcripts/api-transcript.md)


---

# 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://devs.truebit.io/integrating-truebit-tasks/get-transcript.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.
