ShiftMyData

Notifications

How to be told when a transfer finishes or fails, or when a schedule is switched off: by email, in your browser, on Telegram, in Slack or Discord, or at a webhook of your own.

In this chapter

What notifications are for

Transfers keep running after you close ShiftMyData, and schedules run while you are away. A notification channel tells you how they went, so you do not have to keep checking the transfers list.

Open Notifications in the sidebar. Each channel is one place messages go, and you choose which events each one hears about. Only the account owner has this page.

Kinds of channel

Email me
A short email to the address on your ShiftMyData account. It cannot be sent anywhere else. Your address must be confirmed first, and email must be set up on this service.
This browser
A notification from your browser, even when ShiftMyData is not open, as long as the browser is running. Choose it in the browser you want told, press Get notifications in this browser, and allow notifications when the browser asks. Clicking one opens your transfers. If you later block notifications or clear the site's data, the channel switches itself off; turn it on again the same way.
Telegram
A message from this service's Telegram bot, in a private chat or a group. Press Get a Telegram link, open the link in the chat you want, and press Start. The channel appears within a minute. The link works once and expires after 15 minutes. If you block the bot or remove it from the group, the channel switches itself off. Only offered when the operator has set up a bot.
Slack
A message in a Slack channel, through an incoming webhook you create in your Slack workspace. The address starts https://hooks.slack.com/services/.
Discord
A message in a Discord channel, through a webhook from the channel's settings (Integrations, then Webhooks). The address starts https://discord.com/api/webhooks/.
Webhook
Signed JSON sent to an address of your own, for your own tools and scripts. It must be a public http or https address.

Which events you can hear about

A transfer finished
A job ended successfully. This includes copies, moves and syncs, scheduled runs, downloads from links, Telegram transfers, email migrations and team migrations.
A transfer failed
A job ended with an error. This is the one most people want, and it is ticked for you when you add a channel.
A schedule was switched off
ShiftMyData turned a schedule off because it could no longer run, and says why. See the last section of this chapter.

Adding a channel

  1. Open Notifications and press Add a channel.
  2. Under Send to, choose Email me, Slack, Discord or Webhook.
  3. Give it a Name, such as “Ops channel”. This is what it is called in your list. If you leave it empty, the kind's name is used.
  4. For Slack, Discord or Webhook, paste the address into the URL box. For Email me, the box shows the address messages will go to.
  5. Under Tell me when, tick the events this channel should hear about. At least one must be ticked.
  6. Press Add channel.
  7. Press Send a test on the new channel to check that messages arrive.

The address you paste is stored encrypted and never shown again. The list shows only the start of it, such as https://hooks.slack.com/…, so you can recognise it. To change the address, delete the channel and add it again.

If Email me says Confirm your address first, press Send confirmation link, open the link from your inbox, then come back and add the channel. If it says email is not set up on this deployment yet, use Slack, Discord or a webhook instead.

Testing, pausing and changing channels

Each channel in the list shows its name, its kind, whether it is Active or Paused, and the time of its Last delivery.

Send a test
Sends a message titled Test notification saying “If you can read this, ShiftMyData can reach this channel.” The button shows Sent once the test is on its way. It may take a few seconds to arrive.
The event buttons
Under each channel, one button per event. Highlighted buttons are the events it hears about; press one to switch it on or off. The last one cannot be switched off: delete the channel instead.
Pause and Resume
Pause stops messages to this channel without losing it. Resume starts them again and clears its last error.
Delete
Removes the channel straight away, without asking first.

What a message contains

Email, Slack and Discord messages are written for people. Each has a headline and a few lines:

Emails arrive with the subject “ShiftMyData:” followed by the headline. Messages never contain passwords, keys or links to your files.

A Webhook channel receives the same facts as JSON, sent by POST. The body has an event name (job.succeeded, job.failed, schedule.disabled, or notification.test for a test) and the time, plus the job's or schedule's details. Three headers come with it:

X-ShiftMyData-Event
The event name.
X-ShiftMyData-Timestamp
When it was sent, as Unix time in seconds.
X-ShiftMyData-Signature
sha256= followed by an HMAC-SHA256, made with your signing secret, of the timestamp, a full stop, and the body exactly as received. Check it to be sure the message came from ShiftMyData.

When messages do not arrive

If a delivery fails, the channel shows the reason in a yellow box under it, for example “The receiver answered 404.” or “The receiver could not be reached.”

That is not a Slack webhook URL. / That is not a Discord webhook URL.
The address is not an incoming webhook of that service. Copy the webhook address again from Slack or Discord.
Your email address is not verified, so nothing is sent to it.
Confirm your address from the banner at the top of the page or on the Account page, then press Resume if the channel was switched off.
You already have (a number of) notification channels.
There is a limit on channels. Delete one you no longer use.

When a schedule is switched off

A schedule that can no longer run is switched off by ShiftMyData rather than left failing again and again. On the Schedules page it shows Paused, with the reason in a yellow box. Channels that hear A schedule was switched off get a message with the schedule's name and that reason.

This happens the moment ShiftMyData tries to run the schedule and finds it cannot. Typical reasons:

To start a switched-off schedule again, fix the cause (reconnect the account, for example), then press Resume on the schedule. If it is switched off again straight away, read the new reason.

Try it

Everything here is in ShiftMyData's Help too, once you are signed in. Start free

← Sub-accounts and team transfers · Apps, the API and integrations → · Every chapter