Sign in with the link we emailed you
Session · POST /v1/sign-in-links/complete · MCP tool complete-sign-in-link
Send the two values from your sign-in link to start a session. Send the session in the X-Tarsana-Session header on every later call. A link works once and stops working 15 minutes after you asked for it. The first time you sign in, your profile is created and profile_created is true. If onboarded is false, create your tenant with create-tenant.
You do not need to sign in.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
sign_in_link | body | yes | The link ID: the sign_in_link value in your sign-in link |
sign_in_proof | body | yes | The token: the sign_in_proof value in your sign-in link |
Returns
A JSON object with these keys: session, login, scopes, tenants, expires_at, profile_created, onboarded, guarantee, caller_authenticated.
Example request
curl -X POST https://api.tarsana.io/v1/sign-in-links/complete \
-H "Content-Type: application/json" \
--data '{"sign_in_link": "4b0e7f3a91c2d855", "sign_in_proof": "TOKEN-FROM-YOUR-SIGN-IN-LINK"}'
Example response
{
"session": "YOUR-SESSION",
"login": "you@example.com",
"scopes": [
"operate",
"read",
"submit"
],
"tenants": [],
"expires_at": "2026-10-05T03:15:39Z",
"profile_created": true,
"onboarded": false,
"guarantee": "namespaces are separated, callers are not authenticated",
"caller_authenticated": false
}
Errors
| Code | HTTP | What it means |
|---|---|---|
invalid_parameter | 400 | A value in your request does not have the expected format, for example a submission ID that is not a spec hash. Check the value against the field's description and try again. |
sign_in_refused | 400 | We could not sign you in, because the link was already used, has expired or is not one we sent, or because we do not accept your email address. The response says which; ask for a new link on the sign-in page. |
sign_in_not_configured | 503 | Signing in with an email link is not available on this Tarsana deployment. Contact Tarsana support. |
rate_limited | 429 | You sent too many requests in a short time. Wait for the number of seconds in retry_after_seconds, then try again. |
surface_fault | 500 | Something went wrong on our side. Try again later, and contact Tarsana support if it keeps happening. |