Embedded Signing

Exchange an embed session

Changed on

Called by Assinafy's embed page, not by integrations. Public: the token is the credential. Trades a session token for the signer's access code, once; the token is spent even when the call is refused with 409. An unknown, expired or already used token returns 410 with code embed_session_invalid. Returns 409 when the signer or document can no longer sign.

Copy as Markdown Open in ChatGPT Open in Claude

post/v1/embed/sessions/{token}/exchange

Request

  • Base URL
    https://api.assinafy.com.br
  • Auth
    none required

Path parameters

tokenstring required

The 64-character session token from the embed URL.

Request body

parent_originstring

The origin of the page hosting the iframe, recorded for audit.

Example request

{
  "parent_origin": "https://app.example.com"
}

Response

The signing session

statusinteger

HTTP status code, mirrored in the body.

messagestring

Human-readable message; empty on success.

Example response

{
  "status": 200,
  "data": {
    "signer_id": "6f1c2a9e0b",
    "document_id": "5e0b1c2a9f",
    "verification_method": "Email",
    "embed_origins": [
      "https://app.example.com"
    ]
  }
}

Changes