# 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.296"},"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.296"},"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](https://devs.truebit.io/architecture/execution-transcripts/function-transcript)
* [Non-Concensus Function Transcript example ](https://devs.truebit.io/architecture/execution-transcripts/non-consensus-transcript)

API Transcript examples

* [API Transcript example](https://devs.truebit.io/architecture/execution-transcripts/api-transcript)
