Skip to content

Account links and tokens

amabledata does not issue personal access tokens tied to your user. Your user account is used in the browser only, through a session cookie created after sign-in. Everything that talks to amabledata from code uses a credential that belongs to a workspace or a site instead:

You want to… Use Where
Call the REST API from a script or server Workspace API key (amb_live_…), limited to the permissions you choose Settings › API keys, see API keys
Let a third-party application act on a workspace OAuth app authorization Settings › Apps, see Apps and OAuth apps
Send server-side analytics events or read one site’s analytics Site server secret (amb_sk_…) or site key (amb_ak_…) Web analytics settings, see Analytics settings

These credentials never reach your account: the sign-in, Security and other account endpoints accept browser sessions only and refuse them.

The rest of this page covers the single-use links amabledata emails to you as a user, which are the only user-level tokens in the product.

Link Opens Valid for Created when
Magic link /auth/magic 15 minutes You click Send me a magic link on /login
Password reset link /auth/reset 1 hour You click Send reset link on /auth/forgot
Invitation link /invite 7 days A workspace admin invites you
Email change link /auth/email 1 hour You click Send confirmation link in Security › Email address (sent to the new address)

Common rules:

  • Single use. A link stops working as soon as it is used.
  • Newest wins. Requesting a new magic link, reset link or email change link invalidates the previous ones of the same kind. A password reset also invalidates every pending magic link.
  • Kept out of logs. The token is placed after # in the URL (for example /auth/reset#token=…). Browsers never send that part to the server, and the page removes it from the address bar as soon as it loads.
  • Stored as a hash. amabledata keeps only a SHA-256 hash of each token, so a database copy cannot be turned back into working links.
  • First factor only. A magic link does not sign you in by itself: the second factor always follows. A reset link changes the password and then asks you to sign in normally. An email change link switches your sign-in address, signs out all your sessions and then asks you to sign in with the new address.

After the second factor, the browser receives an opaque session token in a secure, HTTP-only cookie that is limited to the app’s host. It is never shown to you and cannot be copied into scripts. The server stores only its hash. Every state-changing request from the app also carries a dedicated header that other websites cannot add, which blocks cross-site request forgery.

The token is renewed whenever your privileges change (after a step-up verification or a password change), and the old value stops working at once.

  1. On /login, click Send me a magic link, enter your Email, complete the check and confirm.
  2. Open the newest email within 15 minutes and click the link.
  3. The page shows Signing you in… and then asks for your second factor.
  1. On /login, click Forgot your password?, enter your Email and click Send reset link.
  2. Open the newest email within 1 hour and click the link.
  3. On Choose a new password, type a New password and click Set password.
  4. Click Sign in and sign in with the new password.
  1. Request the change in Account menu › Security › Email address (see Change your email address).
  2. Open the Confirm your new email address message in the new mailbox within 1 hour and click the link. Any browser works.
  3. The Confirm your new email page applies the change and shows Email updated. You were signed out everywhere: sign in with the new address.
  4. Click Sign in and use the new address.
  1. Decide which credential fits (see the table in the overview).
  2. For a workspace API key, open Settings › API keys, click New API key, name it, pick its permissions and click Create key. Confirm with your second factor when asked.
  3. Copy the key right away: it is shown only once.
Token Format Stored as Lifetime
Magic link token Random, in the URL fragment SHA-256 hash 15 minutes, single use
Password reset token Random, in the URL fragment SHA-256 hash 1 hour, single use
Invitation token Random, in the URL fragment SHA-256 hash 7 days, single use
Email change token Random, in the URL fragment SHA-256 hash 1 hour, single use
Second factor recovery cancel token Random, in the URL fragment (/auth/mfa-reset/cancel#token=…) SHA-256 hash Until the removal time, single use
Session token Random, in an HTTP-only cookie SHA-256 hash 7 days idle, 30 days maximum
  • Magic links: at most 3 per account every 15 minutes.
  • Reset links: at most 3 per account per hour.
  • Any user can request links for their own address; the request answers the same way whether or not the account exists.
  • Creating workspace API keys requires the api_keys:manage permission and a step-up verification.
Symptom Cause Fix
This link is invalid or has expired. Request a new one. The magic link expired, was used, or a newer one was requested. Request a new link and open only the newest email.
This reset link is invalid or has expired. The reset link expired, was used, or was replaced by a newer one. Request a new reset link.
This confirmation link is invalid or has expired. Request the change again from your security settings. The email change link expired, was used, or was replaced by a newer request. Request the email change again from Security.
Another account already uses this email address. After you requested the email change, another account took the new address. The link is used up. Request the change again with a different address.
A link opened in the email app’s built-in browser fails at the second factor The second-factor step is bound to the browser that opened the link. Complete the second factor in the same browser, or copy the link into your usual browser.
You need a token for your own user to call the API Personal tokens do not exist. Create a workspace API key with only the permissions the script needs.