Search code examples
slackslack-api

Add unique key of my own to slack event requests


I created a slack app with distribution (multiple clients) and I subscribe to events several events like a message posted in a channel.

Beside the team_id field for identifying the client team - is there an ability to put my own key for a client?

Thank you.


Solution

  • No, Sack does not store any custom data for you. Its your job as an app developer to store all team related information for your app and link it to the Slack team_id. This is usually done with a database.

    You can however include custom IDs with Slack requests, e.g. in the response you get from an interactive message. See this answer for more details on how this works.