zulip/templates/zerver/api/get-users.md

45 lines
856 B
Markdown
Raw Normal View History

# Get all users
{generate_api_description(/users:get)}
## Usage examples
{start_tabs}
{tab|python}
{generate_code_example(python)|/users:get|example}
{tab|js}
More examples and documentation can be found [here](https://github.com/zulip/zulip-js).
{generate_code_example(javascript)|/users:get|example}
{tab|curl}
{generate_code_example(curl, include=[""])|/users:get|example}
You may pass the `client_gravatar` query parameter as follows:
{generate_code_example(curl)|/users:get|example}
{end_tabs}
## Parameters
**Note**: The following parameters are all URL query parameters.
{generate_api_arguments_table|zulip.yaml|/users:get}
## Response
#### Return values
{generate_return_values_table|zulip.yaml|/users:get}
#### Example response
A typical successful JSON response may look like:
{generate_code_example|/users:get|fixture(200)}