2017-07-25 02:37:04 +02:00
|
|
|
# API keys
|
|
|
|
|
|
|
|
You can create bots on your [settings page](/#settings).
|
2018-05-05 21:59:01 +02:00
|
|
|
Once you have a bot, you can use its email and API key to send messages.
|
2017-07-25 02:37:04 +02:00
|
|
|
|
|
|
|
Create a bot:
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2017-07-25 02:37:04 +02:00
|
|
|
<img class="screenshot" src="/static/images/api/create-bot.png" />
|
|
|
|
|
|
|
|
Look for the bot's email and API key:
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2017-07-25 02:37:04 +02:00
|
|
|
<img class="screenshot" src="/static/images/api/bot-key.png" />
|
|
|
|
|
2018-05-05 21:59:01 +02:00
|
|
|
If you prefer to send messages as your own user, you can also find your API key on your [settings page](/#settings):
|
|
|
|
|
|
|
|
<img class="screenshot" src="/static/images/api/user-api-key.png" />
|
|
|
|
|
|
|
|
When using our Python bindings, you may either specify the user
|
2017-07-25 02:37:04 +02:00
|
|
|
and API key for each Client object that you initialize, or let the binding look for
|
2018-05-05 21:59:01 +02:00
|
|
|
them in your `~/.zuliprc`. An automatically generated default version can be found in
|
|
|
|
your bot's details:
|
|
|
|
|
|
|
|
<img class="screenshot" src="/static/images/api/download-zuliprc.png" />
|
|
|
|
|
2018-05-13 21:02:41 +02:00
|
|
|
Another alternative is manually creating your own `.zuliprc` file, or setting
|
|
|
|
environment variables that are equivalent. You can find out more about these
|
|
|
|
methods [here](/api/configuring-python-bindings).
|
2018-05-05 21:59:01 +02:00
|
|
|
|