Set Slack Status with Apple Shortcuts
In this article
Yes, you can set your Slack status directly from an Apple Shortcut, and it takes about five minutes to set up. This guide walks you through building a shortcut that updates your Slack status text and emoji, then shows you how to trigger it from the Home Screen, Siri, or an automation. You'll need the Slack app installed and logged in on your iPhone or iPad, and the Shortcuts app (built into iOS and iPadOS).
What You'll Need
- An iPhone or iPad with iOS 15 or later (Shortcuts is preinstalled).
- The Slack app (free) installed and signed in to your workspace.
- Your Slack workspace URL (e.g.,
yourteam.slack.com) — you can find it in the Slack app's “Workspace Settings” or by tapping your workspace name in the top-left corner.
Step-by-Step
- Open the Shortcuts app on your iPhone or iPad. Tap the + in the top-right corner to create a new shortcut.
- Add the “Get Contents of URL” action. Tap the search bar at the bottom, type
Get Contents of URL, and tap the result to add it. This action will send the API request to Slack. - Configure the URL. In the “Get Contents of URL” action, tap the URL field and replace it with:
https://slack.com/api/users.profile.set
This is Slack's official API endpoint for updating your profile status. - Set the method to POST. Tap the word “Get” (or the method dropdown) and choose POST. This tells Slack you're sending data, not retrieving it.
- Add headers. Tap Headers and add two headers:
-Authorizationwith valueBearer YOUR_TOKEN(replace YOUR_TOKEN with a Slack token — see step 6).
-Content-Typewith valueapplication/x-www-form-urlencoded. - Get a Slack token. This is the only tricky part. Slack no longer allows creating tokens directly in the app; you must use a legacy token or create a Slack app. The easiest method for personal use:
- Go to api.slack.com/apps in a browser on your computer or phone.
- Click Create New App → From scratch, name it (e.g., “Status Shortcut”), and choose your workspace.
- In the left menu, go to OAuth & Permissions.
- Scroll to Scopes and add theusers.profile:writescope under User Token Scopes.
- Click Install to Workspace and authorize. Copy the User OAuth Token (starts withxoxp-). Paste it into the Authorization header in your shortcut, replacingYOUR_TOKEN. - Add the request body. In the same “Get Contents of URL” action, tap Body → Form, then add two fields:
-profilewith value:{"status_text":"YOUR_STATUS","status_emoji":":emoji:"}
-tokenwith value:YOUR_TOKEN(same token as above).
ReplaceYOUR_STATUSwith the status text you want (e.g., “Deep work”) and:emoji:with a Slack emoji (e.g.,:focus:). - Test the shortcut. Tap the play button at the bottom of the shortcut editor. If it works, you'll see a JSON response in the preview. Check your Slack profile — your status should now be set.
- Make it dynamic (optional). To ask for input each time you run the shortcut, add a Ask for Input action before the URL action. Then replace
YOUR_STATUSin the body withProvided Input(tap the variable and select the Ask for Input result). You can also add a Choose from Menu action to pick from preset statuses. - Rename and save. Tap the shortcut name at the top, type something like “Set Slack Status,” and tap Done. You can now run it from the Shortcuts app, or add it to your Home Screen via the share sheet.
Common Mistakes
- Using a bot token instead of a user token. The API requires a user token (starts with
xoxp-), not a bot token (xoxb-). If you use a bot token, you'll get a “missing_scope” error. - Forgetting the
tokenfield in the body. Even though you have the Authorization header, Slack's API also expects the token in the form body. If it's missing, you'll get an “invalid_auth” error. - Incorrect JSON formatting. The
profilevalue must be a valid JSON string with double quotes. If you use single quotes or omit the braces, Slack will reject it. - Not setting the method to POST. If you leave it as GET, the shortcut will fail because Slack's API requires POST for this endpoint.
- Using the wrong emoji format. Emojis must be wrapped in colons, like
:focus:, not justfocus.
Tips
- Create multiple shortcuts for different statuses (e.g., “In a Meeting,” “Lunch,” “Offline”) — duplicate the shortcut and change the status text/emoji.
- Use a menu for one shortcut. Add a Choose from Menu action and list your common statuses. Each menu item can set a different variable that feeds into the body.
- Trigger automatically with an automation. In the Shortcuts app, go to the Automation tab, create a new automation (e.g., “When I arrive at work”), and select your status shortcut as the action.
- Keep your token secure. The token is stored in the shortcut itself. Avoid sharing the shortcut publicly, and consider using a dedicated Slack app that you can revoke later.
- Test with a harmless status first. Set “Testing” to confirm the shortcut works before using it for real.
Troubleshooting
If the shortcut doesn't work, check these in order:
- Error “invalid_auth” or “not_authed”: Your token is wrong or expired. Go back to api.slack.com/apps, regenerate the token, and update both the Authorization header and the body field.
- Error “missing_scope”: Your token doesn't have the
users.profile:writescope. Reinstall the app after adding the scope. - Error “invalid_json”: The
profilefield is not valid JSON. Make sure it looks exactly like{"status_text":"Hello","status_emoji":":wave:"}— no extra spaces or missing quotes. - Shortcut runs but status doesn't change: Check the response in the shortcut's preview. If it says “ok:true”, then the status was set — maybe you're looking at the wrong workspace or profile. If it says “ok:false”, read the error message and fix accordingly.
- “Get Contents of URL” fails with a network error: Make sure you're connected to the internet, and that Slack's API is reachable. Also check that your URL is exactly
https://slack.com/api/users.profile.set.
Frequently Asked Questions
Can I set a status with a duration (e.g., clear after 1 hour)?
Yes, but it requires an additional API call. You can add a Wait action or a Delay in the shortcut, but that only works if the shortcut stays running. A better approach is to create a second shortcut that clears the status (sets it to empty) and schedule it with an automation at a specific time.
Do I need to create a Slack app for this?
Yes, because Slack no longer allows creating legacy tokens directly in the app. The app creation is free and takes about 2 minutes. You only need to do it once.
Can I use this on my Mac?
Shortcuts is available on macOS Monterey and later. The steps are identical, but the interface differs slightly. You can also use the same token and URL in a similar shortcut on Mac.
Will this work with Slack's free plan?
Yes, the API is available on all plans, including free. The users.profile.set endpoint works for any workspace.
Can I set my status to “Away” (the red indicator)?
No, the users.profile.set endpoint only changes the status text and emoji. To toggle presence (active/away), you'd need a different endpoint (users.setPresence), which is more complex and not covered here.
Is it safe to share my shortcut with others?
No, because it contains your personal token. If you want to share, create a new Slack app and instruct others to use their own tokens, but that's beyond this guide.