diff --git a/static/images/api/bot-key.png b/static/images/api/bot-key.png index 1d3daa6156..db16e73b8d 100644 Binary files a/static/images/api/bot-key.png and b/static/images/api/bot-key.png differ diff --git a/static/images/api/create-bot.png b/static/images/api/create-bot.png index 48601e4518..2989aefa2b 100644 Binary files a/static/images/api/create-bot.png and b/static/images/api/create-bot.png differ diff --git a/static/images/api/download-zuliprc.png b/static/images/api/download-zuliprc.png new file mode 100644 index 0000000000..218820d67c Binary files /dev/null and b/static/images/api/download-zuliprc.png differ diff --git a/static/images/api/user-api-key.png b/static/images/api/user-api-key.png new file mode 100644 index 0000000000..c6c9e2d944 Binary files /dev/null and b/static/images/api/user-api-key.png differ diff --git a/templates/zerver/api/api-keys.md b/templates/zerver/api/api-keys.md index a849b7dac7..4e39a1bfea 100644 --- a/templates/zerver/api/api-keys.md +++ b/templates/zerver/api/api-keys.md @@ -1,18 +1,28 @@ # API keys You can create bots on your [settings page](/#settings). -Once you have a bot, you can use its email and API key to send messages.

+Once you have a bot, you can use its email and API key to send messages. Create a bot: + Look for the bot's email and API key: + -If you prefer to send messages as your own user, you can also find your API key on your [settings page](/#settings). -When using our python bindings, you may either specify the user +If you prefer to send messages as your own user, you can also find your API key on your [settings page](/#settings): + + + +When using our Python bindings, you may either specify the user and API key for each Client object that you initialize, or let the binding look for -them in your `~/.zuliprc`, the default config file, which you can create as follows: +them in your `~/.zuliprc`. An automatically generated default version can be found in +your bot's details: + + + +Or you may also create it manually, as follows: ``` [api] @@ -42,3 +52,4 @@ The following variables can be specified: 5. `ZULIP_CERT` 6. `ZULIP_CERT_KEY` 7. `ZULIP_CERT_BUNDLE` +