Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions api-reference/health-ai/ekascribe/SDKs/TS-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -275,16 +275,7 @@ const response = await ekascribe.endRecording();

### 8. Get output recorded prescription

You can fetch output in two ways:

- `getTemplateOutput({ txn_id })`: polling is your responsibility; call repeatedly until processing finishes.
- `pollSessionOutput({ txn_id, max_polling_time })`: SDK polls for you and resolves when processing finishes (default max wait: 2 minutes; override via `max_polling_time`, pass time in milliseconds).

Example (manual polling):

```ts
const res = await ekascribe.getTemplateOutput({ txn_id: 'transaction-id' });
```
`pollSessionOutput({ txn_id, max_polling_time })`: SDK polls for you and resolves when processing finishes (default max wait: 2 minutes; override via `max_polling_time`, pass time in milliseconds).

Example (SDK-managed polling):

Expand Down