Integrations

Pumble API Overview

2 min read
isidora.komaromi@cake.com

This feature is available on all plans.

By using the Pumble API addon, you can interact with Pumble’s API documentation without using any complex authentication processes. This addon lets you generate an API key that allows you to send messages, reactions, and more via simple HTTP requests.

Install API addon #

Before you can create an API key, you need to install the API addon on your Pumble workspace.

Here’s how to do this:

  1. Click on + Add apps in the left sidebar
  2. Click on Install in the API section
  3. Allow permissions 

Generate an API key #

Once your API addon is installed, you can generate API keys directly in Pumble.

Here’s how:

  1. Click on API in the left sidebar
  2. Select Add API key
  3. Enter API key name
  4. Click Generate to complete the action

You’ll receive an ephemeral message containing the generated API key. This message is not visible to other users. Copy this key for future use. The generated key enables interaction with the Addon’s public API, allowing users to send requests and execute various actions within Pumble, including:

  • Sending messages
  • Leaving a reply to a message
  • Message deletion
  • Adding a reaction to a message
  • Channel creation
  • Listing the messages in a channel (if the channel is private, Addon Bot needs to be a member of that channel)
  • Listing the channels and DMs that belong to the user who created the key

The full list of available actions is available in the Swagger documentation. You can also use the documentation in Swagger, just enter your API key in the Authorize part.

Delete API key #

You can remove an API key by following these steps:

  1. Click on API in the left sidebar
  2. Select Delete API key
  3. Choose a key from the list
  4. Click Delete to confirm the action

Valid commands #

There are a few specific actions for interacting with the Pumble API addon. You can use these commands directly in messages:

  • /api-keys generate – addon will generate API keys for that particular user and store it in their database. Users can generate as much API keys as they want to.
  • /api-keys list – addon will list all user’s API keys
  • /api-keys help – to list all valid commands you can use

Was this article helpful? #

Thank you! If you’d like a member of our support team to respond to you, please drop us a note at support@pumble.com