SafePhone logoSafePhone

How to Create a Slack Channel for Alerts: Get Your Bot Token and Channel ID

SafePhone can send an alert to Slack whenever a family member's phone receives a call from an unknown number or they tap a suspicious link. This guide shows you how to create a Slack channel for alerts in 5 steps: create the channel, create a bot, get the Bot Token, invite the bot to the channel, and find the Channel ID. You only need to do this once, and it takes about 5–10 minutes.

Get SafePhone to receive alerts in Slack

Get SafePhone on Google Play

Why does SafePhone use Slack for alerts?

Slack is a team messaging platform that lets you create private channels, receive messages in real time, and connect other apps to send alerts automatically. When you install SafePhone on your child's or parent's phone, every unusual event is posted to your family's Slack channel, so you know when:

This way, you can spot signs of a scam early without having to pick up your family member's phone and check it. Learn how to use alerts in these two guides: protect your family from scam calls and get alerts when a family member taps a suspicious link.

What you'll need

Step 1: Create a Slack channel

  1. Sign in to Slack at slack.com.
  2. In the left sidebar, click Add channels → Create a new channel.
  3. Name the channel (for example family-alerts) and create it.

This is where all SafePhone alerts will arrive.

Step 2: Create a Slack app and bot

  1. Go to the Slack app management page: api.slack.com/apps.
  2. Click Create New App → choose From scratch.
  3. Give the app a name (for example “SafePhone”) and select your workspace.
  4. Once it's created, go to OAuth & Permissions.
  5. Under Bot Token Scopes, add the chat:write scope so the bot can post messages.

Step 3: Install the app and get the Bot Token

  1. Still on the OAuth & Permissions page, click Install to Workspace and then allow it.
  2. After installation, you'll see a Bot User OAuth Token that looks like xoxb-....
  3. Copy this token. This is the Bot Token SafePhone uses to send messages.
Keep your Bot Token secret. Anyone with the token can post messages to your channel. Never share it on social media or in group chats. If it leaks, revoke it and generate a new token on the Slack app management page.

Step 4: Invite the bot to the channel

  1. Open the Slack channel you created in step 1.
  2. Type /invite @bot-name (the app name you chose in step 2) and send it.

The bot must be a member of the channel to post alerts.

Step 5: Find the Channel ID

Option 1: from the page URL. Open the Slack channel in a web browser and look at the address bar, which looks like this:

https://app.slack.com/client/TXXXXXXX/CYYYYYYY

The part starting with the letter C (for example CYYYYYYY) is the Channel ID.

Option 2: in the Slack app. Tap the channel name at the top to open the channel details; the Channel ID is usually at the bottom.

Finish: enter the Bot Token and Channel ID in SafePhone

On your family member's phone, open SafePhone → the first row of shield icons → Send alerts to family → choose Send via Slack, then paste the Bot Token and Channel ID into Slack channel settings. Don't have SafePhone yet? Get it on Google Play.

You can use the same channel for every device in your household. Just give each device a different name (“Dad's phone”, “Timmy's tablet”) so you know where each alert comes from.

Not getting alerts? Check these common issues

CauseFix
The bot hasn't been invited to the channelRepeat step 4 with /invite @bot-name
You entered the channel name instead of the Channel IDUse the code starting with C (step 5), not #channel-name
You copied the wrong tokenUse the Bot User OAuth Token that starts with xoxb-, not a token starting with xoxp-
Missing permission to post messagesMake sure you added chat:write in step 2, then reinstall the app (step 3)
Alert conditions aren't turned onIn SafePhone, check that you've ticked the options under “Send alerts when”
Slack notifications are off on your phoneOpen the Slack app → the channel's notification settings, and choose to be notified of all messages

Conclusion

After these 5 steps, you'll have a dedicated alert channel for the whole family: every unknown call or suspicious link on your parents' or kids' phones shows up right away in your Slack. It's a simple way to add an extra layer of protection against increasingly sophisticated scams.

Turn on family alerts with SafePhone

Get SafePhone on Google Play

FAQ

Does it cost anything to create a Slack channel for alerts?

No. You can create a workspace, channel, and bot on Slack's free plan to receive alerts from SafePhone.

What is a Slack Bot Token and where do I get it?

A Bot Token is a code starting with xoxb- that lets an app send messages to Slack. You'll find it under OAuth & Permissions for your app at api.slack.com/apps, after clicking Install to Workspace.

How do I find a Slack channel's Channel ID?

Open the channel in a web browser and look at the address bar: the part starting with the letter C at the end of the URL is the Channel ID. You can also open the channel details in the Slack app to see the Channel ID.

Why am I not getting alerts even though everything is set up?

The usual causes are: the bot hasn't been invited to the channel, you entered the channel name instead of the Channel ID, you used a token that doesn't start with xoxb-, or the chat:write permission is missing.