Skip to content

Commit 4f4b6d9

Browse files
authored
chore: add request_url (#1643)
1 parent 53c723a commit 4f4b6d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/kratos/self-hosted/10_sending-sms.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,16 @@ The configuration consists of:
5151
(TRACE).
5252
- `auth` - configuration of authentication and authorization mechanisms to be used by request
5353

54-
Courier binds the `from`, `to`, and `body` variables into the JsonNet template. These variables are available through a `ctx`
55-
object. For example to create a body looking like `{ to: "<some-number>" }` to be sent to the SMS provider endpoint, the jsonnet
56-
template would look like this:
54+
Courier binds the `from`, `to`, `request_url`, and `body` variables into the JsonNet template. These variables are available
55+
through a `ctx` object. For example to create a body looking like `{ to: "<some-number>" }` to be sent to the SMS provider
56+
endpoint, the jsonnet template would look like this:
5757

5858
```jsonnet
5959
function(ctx) {
6060
from: ctx.from,
6161
to: ctx.to,
6262
body: ctx.body
63+
request_url: ctx.request_url
6364
}
6465
```
6566

0 commit comments

Comments
 (0)