Skip to content

Commit 8cf1e97

Browse files
committed
Waitpoint notes
1 parent 11ae2da commit 8cf1e97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/wait-for-token.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Wait for token"
3-
description: "Wait until a token is completed."
3+
description: "Wait until a token is completed using waitpoint tokens."
44
---
55

66
Waitpoint tokens pause task runs until you complete the token. They're commonly used for approval workflows and other scenarios where you need to wait for external confirmation, such as human-in-the-loop processes.
@@ -50,7 +50,7 @@ await wait.completeToken<ApprovalToken>(tokenId, {
5050
});
5151
```
5252

53-
Or you can make an HTTP POST request to the `url` it returns:
53+
Or you can make an HTTP POST request to the `url` it returns. This is an HTTP callback:
5454

5555
```ts
5656
import { wait } from "@trigger.dev/sdk";
@@ -502,4 +502,4 @@ const token = await wait.createToken({
502502
idempotencyKey: "my-idempotency-key",
503503
idempotencyKeyTTL: "1h",
504504
});
505-
```
505+
```

0 commit comments

Comments
 (0)