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
7 changes: 4 additions & 3 deletions docs/kratos/self-hosted/10_sending-sms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ The configuration consists of:
(TRACE).
- `auth` - configuration of authentication and authorization mechanisms to be used by request

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

```jsonnet
function(ctx) {
from: ctx.from,
to: ctx.to,
body: ctx.body
request_url: ctx.request_url
}
```

Expand Down