Menu

Your backend (X-Api-Key)

Create new link

POST/v1/sessions/{id}/sdk-link

Issues a fresh access_token + sdk_url for a session that is still running: the user missed the 15-minute link, or an analyst asked for steps to be redone (session.resubmitted). The previous token stops working. Accepts the same optional delivery object as Create session.

Authorization: X-Api-Key (your backend)

ERRORWHEN
404No such session for this key
409The session is not running (approved, declined, in_review, expired …) or its time ran out: create a new session
402delivery requested and the production balance is insufficient (the old link keeps working)
422 {"code": "delivery.…"}delivery cannot be sent (Sending the link)
  • The new token replaces the old one. A WebSDK page, iframe or mobile SDK that is open with the old token stops working and shows "expired", but sends no session.failed and returns no result: the session itself is still running (401 token.replaced). Issue a new link when the user is not in the flow, and open the new sdk_url. Opening a link we delivered (…/l/<code>) does the same: it issues a fresh token.

expires_at is the session's end, not the token's. An analyst's resubmission request restarts the session's 60 minutes.

Request
curl -X POST https://api.idotta.com/v1/sessions/{id}/sdk-link \
  -H "X-Api-Key: idv_test_XXXX"
JSON
// Response 200
{ "access_token": "eyJ…", "sdk_url": "https://verify.idotta.com/session/…", "expires_at": "…", "delivery": null }