# get_auth_message_template · FT4 Rell API · Chromia Docs (concept)

> function get_ auth_ message_ template(op_ name: text, op_ args: gtv?): text Returns the auth message template that is needed to authorize a certain operati

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.auth/get_auth_message_template/

FUNCTION

# get\_auth\_message\_template

```signature
function get_auth_message_template(op_name: text, op_args: gtv?): text
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/auth/authentication.rell#lines-297)

Returns the auth message template that is needed to authorize a certain operation, given its
arguments. It will either use the one defined in `auth_handler.message_formatter`, or create
a default one from the args if the former does not exist.

Throws if the auth handler for `op_name` cannot be found.

**Parameters**

* **op\_name** — the name of the operation to authorize
* **op\_args** — the arguments passed to the operation

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.auth/get_auth_message_template.html)Generated API reference, mirrored from the live docs
