Slack integration - Rate-API

Slack

Free

A /rate slash command that returns exchange rates and conversions in any Slack channel. Verified with Slack request signing.

API reference

Examples

/rate USD EUR``/rate 100 USD to EUR``/rate 50 gbp jpy

Setup

  1. 1

Create the app from a manifest

Go to api.slack.com/apps → Create New App → From a manifest, pick your workspace, and paste this manifest.

{
     "display_information": {
       "name": "Rate-API",
       "description": "Currency exchange rates and conversion, right inside Slack.",
       "background_color": "#0b1120"
     },
     "features": {
       "bot_user": { "display_name": "Rate-API", "always_online": true },
       "slash_commands": [\
         {\
           "command": "/rate",\
           "url": "https://rate-api.com/integrations/slack",\
           "description": "Get an exchange rate or convert an amount",\
           "usage_hint": "100 USD to EUR",\
           "should_escape": false\
         }\
       ]
     },
     "oauth_config": { "scopes": { "bot": ["commands"] } },
     "settings": { "org_deploy_enabled": false, "socket_mode_enabled": false, "token_rotation_enabled": false }
}
  1. 2

Install it to your workspace

Create the app, then click Install to Workspace and approve.

  1. 3

Set the signing secret

Copy Basic Information → Signing Secret, then on the Rate-API server add it to .env and re-cache config. Until this is set the command safely returns “not configured”.

SLACK_SIGNING_SECRET=your_signing_secret_here
php artisan config:cache
  1. 4

Try it

In any channel, run /rate 100 USD to EUR.

Endpoint

POST https://rate-api.com/integrations/slack

Verified by the platform’s request signature. It safely returns “not configured” until its secret is set on the server.