Allow custom domain for Slack API to send message
luncliff opened this issue · 3 comments
Describe Request:
Hi. I'm trying to use this orb(v4.9 actually). And got invalid_auth
error.
After short survey, I found the slack/notify
is sending message to https://slack.com/api/chat.postMessage.
We are using different domain for the Slack, It will be helpful if we can customize API server to send the message.
Examples:
Need some field like api_host
.
- slack/notify:
circleci_host: "https://circleci.abcc.com"
api_host: "abcc" # (optional) send to https://abcc.slack.com/api/chat.postMessage
channel: C0123456789
Hi @luncliff 👋
Thanks for suggesting this feature! We will be looking into implementing it.
I looked into it, and all workspaces in Slack are accessed via a subdomain. This does not affect the API behaviour, nor are we expected to change the host based on the workspace. I believe your issue stems from token or permission issues.
I highly encourage you to go through the Wiki and verify if all environment variables and permissions are in place.
I see... I will check with the team where manages it. Thanks for the survey!