API reference › Platforms & people
POST/accounts/{externalId}/login-link
A one-time sign-in link into the person's own IDS cabinet (≤ 60 s, one use)
Make it at the moment of the person's click and open it in their browser at once — never e-mail or store it. Only for a linked person whose IDS account is open and who accepted the current IDS Terms (else 409 ACCOUNT_LOGIN_UNAVAILABLE with details.reason). It opens to shipments (default), dashboard, settings, billing or complaints (to), or to one of the person's shipments booked through your platform (shipmentId). A used or expired link shows the person a page saying so. A test key: the link opens a test page, no session. At most 10 links per person a minute (429).
- Key scope
accounts:login- Idempotency-Key
- Not used
- URL
https://ids.express/api/v1/accounts/{externalId}/login-link
Parameters
externalIdpath · stringrequiredlength 1–100Your id of the person
Request body
Optional: send {} with Content-Type: application/json, or no body and no Content-Type. Unknown fields are rejected.
application/json — LoginLinkRequest
tostringone of: shipments · dashboard · settings · billing · complaints
The cabinet page the link opens (default shipments).
shipmentIdstring (uuid)Or one of the person's shipments booked through this platform.
Call it
curl -s -X POST "https://ids.express/api/v1/accounts/$EXTERNAL_ID/login-link" \
-H "Authorization: Bearer $IDS_KEY" \
-H "Content-Type: application/json" \
-d '{}'Answers
201 { url, expiresAt }
Headers: X-Request-Id
application/json — LoginLink
urlstring (uri)requiredOpen it in the person's browser at once: one use, never stored, never sent by e-mail.
expiresAtstring (date-time)requiredAt most 60 seconds after it was made.
400 VALIDATION_FAILED — externalId, to and shipmentId together
Headers: X-Request-Id
Codes: VALIDATION_FAILED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
401 AUTHENTICATION_FAILED — missing, malformed, invalid, revoked or expired key
Headers: X-Request-Id
Codes: AUTHENTICATION_FAILED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
403 PLATFORM_KEY_REQUIRED / PLATFORM_SUSPENDED / API_ACCESS_DISABLED / FORBIDDEN_SCOPE
Headers: X-Request-Id
Codes: PLATFORM_KEY_REQUIREDPLATFORM_SUSPENDEDAPI_ACCESS_DISABLEDFORBIDDEN_SCOPE
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
404 NOT_FOUND — not visible to this key (other account or other environment)
409 ACCOUNT_LOGIN_UNAVAILABLE (details.reason not_linked | account_unavailable | terms_not_accepted)
Headers: X-Request-Id
Codes: ACCOUNT_LOGIN_UNAVAILABLE
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
429 RATE_LIMITED — per-key or per-IP limit exceeded; wait Retry-After seconds
Headers: X-Request-IdRetry-After
Codes: RATE_LIMITED
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
500 INTERNAL_ERROR
Headers: X-Request-Id
Codes: INTERNAL_ERROR
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
503 API_DISABLED (API switched off); CARRIER_NOT_CONFIGURED / CURRENCY_RATE_MISSING where a carrier or FX rate is used
Headers: X-Request-Id
Codes: API_DISABLEDCARRIER_NOT_CONFIGUREDCURRENCY_RATE_MISSING
The error envelope — Error (error.code, message, retryable, details, requestId); the codes below.
Error codes of this operation
The codes the answers of this operation name. Always read error.retryable of the answer itself — «varies» means it differs per answer. The gates of every keyed request (401, 403, 429, 503) and the whole catalog: errors.
The request is invalid: a field (details[].path), an unknown field, a missing Idempotency-Key, a body that is not JSON, an address the label cannot print. Fix it; repeating it unchanged fails again.
AUTHENTICATION_FAILEDHTTP 401retryable: noMissing, malformed, invalid, revoked or expired key; an environment tag that does not match. (An account switched off answers 403 API_ACCOUNT_DISABLED since SEC.)
PLATFORM_KEY_REQUIREDHTTP 403retryable: noAccounts of a platform's people are for a platform's service-account key only — this key belongs to no platform.
PLATFORM_SUSPENDEDHTTP 403retryable: noThe platform of this key is suspended by IDS: quotes, bookings and test operations are refused until IDS resumes it; reads, the tracking refresh, a cancellation and a complaint still work. A retry of a booking finished before the suspension replays its answer.
API_ACCESS_DISABLEDHTTP 403retryable: noAPI access is switched off for this account.
FORBIDDEN_SCOPEHTTP 403retryable: noThe key lacks the scope of this operation (x-scope).
NOT_FOUNDHTTP 404retryable: noUnknown path, or an object this key may not see (another account, the other environment).
No sign-in link for this person now (details.reason): not_linked (the person has not confirmed yet, or the link was removed), account_unavailable (the IDS account is closed), terms_not_accepted (the person signs in to IDS Express once and accepts the current Terms).
RATE_LIMITEDHTTP 429retryable: yesA limit per minute — the key's requests, its quotes, its platform's keys together, or the client IP (limitScope) — wait Retry-After seconds (retryAfterSec, limit).
INTERNAL_ERRORHTTP 500retryable: noUnexpected — for a booking, check GET /shipments before using a new key; quote the requestId.
API_DISABLEDHTTP 503retryable: noIDS switched the whole API off (/ping and /openapi.json keep answering).
CARRIER_NOT_CONFIGUREDHTTP 503retryable: noThe carrier credentials of this environment are missing.
CURRENCY_RATE_MISSINGHTTP 503retryable: noIDS has no exchange rate for the balance currency.