Skip to main content
Reference for the activation link returned by connection creation, and for where your end-user lands afterwards. Creating or updating a connection returns one field, url. Properties worth knowing:
  • Secured by a token that expires 30 minutes after generation.
  • Single purpose: it activates one connection for one consumer.
  • Use it only to redirect the end-user directly, in an interactive flow where the end-user opens the link right away. Do not send it by email. If it expires, update the connection to get a fresh one.
To reach an end-user who does not open the link right away, see Non-interactive connection.
Five steps. Your app creates or updates the connection. Chift API returns the url. The end-user opens the url within 30 minutes. The Chift page lets the end-user connect the software. The end-user lands on your page, at redirect_url. After 30 minutes the url is expired. Update the connection to get a new url.

Life of an activation link in an interactive flow.

The redirection

Two settings control redirect behaviour, and they are easy to confuse: redirect_url can be set per consumer (at creation or update) or once for the whole account (see Configure account). When both are set, the consumer-level value wins.
redirect is ignored when you pass integrationid. With a connector already chosen, Chift always redirects to redirect_url on success. There is no connector-picker page left to return to.

On connection creation

Decision tree. If integrationid is provided, the end-user goes to redirect_url. If not, and redirect is true, the end-user goes to redirect_url after the Chift connector-picker. If redirect is false, the end-user stays on the Chift connector-picker page. The consumer redirect_url wins over the account value.

Where the end-user lands after activation, on connection creation.

On connection update

Decision tree. If the activation succeeds and redirect is true, the end-user goes to redirect_url. If the activation succeeds and redirect is false, the end-user goes to the Chift connector-picker page. If the activation fails or the end-user cancels, the end-user stays on the page and can retry. Cancel or Back sends the end-user to redirect_url. The consumer redirect_url wins over the account value.

Where the end-user lands after activation, on connection update.

URL parameters on return

When a redirect happens, Chift can append query parameters describing the result:
This must be switched on for your account. See Configure account. Until it is, your callback receives a bare redirect_url with no parameters.
These parameters are convenient but not a reliable completion signal: an end-user who abandons the flow never returns, and a browser can be closed mid-redirect. Pair them with a webhook or a periodic check. See Monitoring & updating connections.