---
title: "Create Embedded Signing URL"
description: "Returns a signing URL for one signer of a sent document, to open, redirect to or show in an iframe in your app. Request it when the signer is ready and never store it; for external identity verification, pass your provider's result in `identityAssertion`."
url: "https://docs.turbodocx.com/docs/API/create-embedded-signing-url"
---

# Create Embedded Signing URL

> Returns a signing URL for one signer of a sent document, to open, redirect to or show in an iframe in your app. Request it when the signer is ready and never store it; for external identity verification, pass your provider's result in `identityAssertion`.

`POST https://api.turbodocx.com/turbosign/documents/{documentId}/signing-url`

```bash
curl -X POST "https://api.turbodocx.com/turbosign/documents/{documentId}/signing-url" \
  -H "Authorization: Bearer $TURBODOCX_API_KEY" \
  -H "x-rapiddocx-org-id: $TURBODOCX_ORG_ID"
```

  Request

### Body (application/json)

- `recipientId` (string): The recipient's TurboDocx ID.
- `externalId` (string): The `externalId` you set on the recipient.
- `returnUrl` (string): `https` URL the signer returns to after signing. Omitting it clears one set earlier.
- `identityAssertion` (object): Required for a recipient using `external_idv`: your provider's verification of the signer.
  - `provider` (string, required): Must match the recipient's `provider`.
  - `verificationId` (string, required): Your provider's ID for this verification. Each can be used once.
  - `verifiedAt` (string, required): When the signer was verified (ISO 8601).
  - `subjectEmail` (string, required): Email of the verified person. Must match the recipient's email.
  - `method` (string): How the signer was verified. Allowed: `id_document`, `id_document_liveness`, `kba`, `database`, `sso`, `other`.
  - `methodDetail` (string): Required when `method` is `other`.
  - `assuranceLevel` (string)
  - `verifiedName` (string)
  - `evidenceUrl` (string): `https` link to the verification record.
  - `overrideEmailMatching` (boolean): Set to `true` to accept a `subjectEmail` that differs from the recipient's email. Allowed: `true`, `false`. Default: `false`.

### Path parameters

- `documentId` (string, required): The signature document ID.

### Responses

#### 200

The signing URL.

```json
{
  "data": {
    "results": {
      "url": "https://www.turbodocx.com/e-signature/embed/4a20eca5-7944-430c-97d5-fcce4be24296?sut=abc123",
      "expiresAt": "2026-01-15T10:40:00.000Z",
      "recipientId": "5f673f37-9912-4e72-85aa-8f3649760f6b",
      "externalId": "customer_123",
      "identityVerificationMode": "override",
      "pendingChecks": []
    }
  }
}
```

#### 400

The body is invalid (including a `returnUrl` that is not an https URL, which returns `ValidationError`), it does not name exactly one recipient (`RecipientSelectorInvalid`), or the identity assertion is missing or fails a check.

```json
{
  "message": "Provide exactly one of recipientId or externalId",
  "type": "RecipientSelectorInvalid",
  "error": "Provide exactly one of recipientId or externalId",
  "code": "RecipientSelectorInvalid"
}
```

#### 401

Missing or invalid API key, or the organization ID header is missing or is not an organization the key belongs to. The response has no body.

#### 403

The key's role is not administrator or contributor (no body), or your organization has not turned on embedded signing or the identity mode the recipient uses (JSON body).

```json
{
  "message": "Embedded signing is not enabled for this organization",
  "type": "EmbeddedSigningNotEnabled",
  "error": "Embedded signing is not enabled for this organization",
  "code": "EmbeddedSigningNotEnabled"
}
```

#### 404

The document does not exist in your organization, or no recipient matches the selector.

```json
{
  "message": "Document not found",
  "type": "DocumentNotFound"
}
```

#### 409

The document can no longer be signed (for example it is voided, expired or not sent yet), the recipient has already signed, or it is not their turn.

```json
{
  "message": "This document can no longer be signed",
  "type": "DocumentNotSignable",
  "error": "This document can no longer be signed",
  "code": "DocumentNotSignable"
}
```
