zulip/templates/zerver/api/list-linkifiers.md

45 lines
1.0 KiB
Markdown
Raw Normal View History

# List linkifiers
2018-08-14 03:10:37 +02:00
List all of an organization's configured
[linkifiers](/help/add-a-custom-linkification-filter), regular
expression patterns that are automatically linkified when they appear
in messages and topics.
2018-08-14 03:10:37 +02:00
`GET {{ api_url }}/v1/realm/filters`
## Usage examples
{start_tabs}
{tab|python}
2018-08-14 03:10:37 +02:00
{generate_code_example(python)|/realm/filters:get|example}
{tab|curl}
2018-08-14 03:10:37 +02:00
``` curl
curl -X GET {{ api_url }}/v1/realm/filters \
2018-08-14 03:10:37 +02:00
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
```
{end_tabs}
2018-08-14 03:10:37 +02:00
## Arguments
{generate_api_arguments_table|zulip.yaml|/realm/filters:get}
## Response
#### Return values
* `filters`: An array of tuples, each representing one of the
linkifiers set up in the organization. Each of these tuples contain the
pattern, the formatted URL and the filter's ID, in that order. See
the [Create linkifiers](/api/add-linkifiers) article for details on what
each field means.
2018-08-14 03:10:37 +02:00
#### Example response
A typical successful JSON response may look like:
{generate_code_example|/realm/filters:get|fixture(200)}