2017-07-25 02:37:04 +02:00
|
|
|
# API keys
|
|
|
|
|
2024-02-09 22:49:12 +01:00
|
|
|
An **API key** is how a bot identifies itself to Zulip. For the official
|
|
|
|
clients, such as the Python bindings, we recommend [downloading a `zuliprc`
|
|
|
|
file](/api/configuring-python-bindings#download-a-zuliprc-file).
|
|
|
|
This file contains an API key along with other necessary configuration values
|
|
|
|
for using the Zulip API with a specific account on a Zulip server.
|
2017-07-25 02:37:04 +02:00
|
|
|
|
2018-09-26 06:02:58 +02:00
|
|
|
## Get a bot's API key
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2024-02-09 22:49:12 +01:00
|
|
|
{start_tabs}
|
|
|
|
|
|
|
|
{tab|desktop-web}
|
|
|
|
|
2018-09-26 06:02:58 +02:00
|
|
|
{settings_tab|your-bots}
|
2017-07-25 02:37:04 +02:00
|
|
|
|
2018-09-26 06:02:58 +02:00
|
|
|
1. Click **Active bots**.
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2018-09-26 06:02:58 +02:00
|
|
|
1. Find your bot. The bot's API key is under **API KEY**.
|
2017-07-25 02:37:04 +02:00
|
|
|
|
2024-02-09 22:49:12 +01:00
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
!!! warn ""
|
|
|
|
|
|
|
|
Anyone with a bot's API key can impersonate the bot, so be careful with it!
|
|
|
|
|
2018-09-26 06:02:58 +02:00
|
|
|
## Get your API key
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2024-02-09 22:49:12 +01:00
|
|
|
{start_tabs}
|
|
|
|
|
|
|
|
{tab|desktop-web}
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2021-06-28 19:23:45 +02:00
|
|
|
{settings_tab|account-and-privacy}
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2024-02-16 00:39:36 +01:00
|
|
|
1. Under **API key**, click **Manage your API key**.
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2023-03-09 03:48:37 +01:00
|
|
|
1. Enter your password, and click **Get API key**. If you don't know your
|
2024-02-09 22:49:12 +01:00
|
|
|
password, click **reset it** and follow the instructions from there.
|
2018-05-05 21:59:01 +02:00
|
|
|
|
2018-09-26 06:02:58 +02:00
|
|
|
1. Copy your API key.
|
|
|
|
|
2024-02-09 22:49:12 +01:00
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
!!! warn ""
|
|
|
|
|
|
|
|
Anyone with your API key can impersonate you, so be doubly careful with it.
|
|
|
|
|
|
|
|
|
2018-09-26 06:02:58 +02:00
|
|
|
## Invalidate an API key
|
|
|
|
|
2024-02-09 22:49:12 +01:00
|
|
|
To invalidate an existing API key, you have to generate a new key.
|
|
|
|
|
|
|
|
### Invalidate a bot's API key
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
|
|
|
|
{tab|desktop-web}
|
|
|
|
|
|
|
|
{settings_tab|your-bots}
|
|
|
|
|
|
|
|
1. Click **Active bots**.
|
|
|
|
|
|
|
|
1. Find your bot.
|
|
|
|
|
|
|
|
1. Under **API KEY**, click the **refresh** (<i class="fa fa-refresh"></i>) icon
|
|
|
|
to the right of the bot's API key.
|
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
### Invalidate your API key
|
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
|
|
|
|
{tab|desktop-web}
|
|
|
|
|
|
|
|
{settings_tab|account-and-privacy}
|
|
|
|
|
|
|
|
1. Under **API key**, click **Manage your API key**.
|
|
|
|
|
|
|
|
1. Enter your password, and click **Get API key**. If you don't know your
|
|
|
|
password, click **reset it** and follow the instructions from there.
|
|
|
|
|
|
|
|
1. Click **Generate new API key**
|
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
## Related articles
|
2018-09-26 06:02:58 +02:00
|
|
|
|
2024-02-09 22:49:12 +01:00
|
|
|
* [Configuring the Python bindings](/api/configuring-python-bindings)
|