# Send an envelope with embedded signing

Create envelopes with embedded signing and retrieve signing page URLs.

## Prerequisites

- Embedded signing enabled on your account.
This is what makes the `envelope_signing_embed` field appear in API responses and webhook payloads. Without it, no signing URL is returned. [Contact Signable support](https://www.signable.us/contact-signable/$0) to
enable.
- Signable API credentials.
- A webhook endpoint that returns a 2xx HTTP status. Required for multi-party envelopes and for any envelope created from an uploaded file (see [Retrieve the signing URL](#retrieve-the-signing-url)).


## Create an envelope

Send a POST request to create an envelope:

```
POST https://api.signable.co.uk/v1/envelopes
```

Include your document and signer details in the request body. You can supply the document either as a template ID or as a base64-encoded file.

> **Note:** The `envelope_signing_embed` field is only returned when embedded signing is enabled on your account. If you don't see it in the response or webhook payload, check that embedded signing is active before troubleshooting anything else.


## Retrieve the signing URL

The signing URL is always returned in the `envelope_signing_embed` field. Where you read that field from depends on how you created the envelope:

- **One signer, created from a template:** the field is in the create-envelope API response.
- **Any file-based envelope, or any envelope with multiple signers:** the field is delivered through the `envelope-sent` webhook instead. It isn't present in the create-envelope response, so listening for the webhook is the only way to get it.


Single-party from a template
For a single signer using a template, extract the signing URL directly from the API response:

```json
{
  "envelope_signing_embed": "<iframe src=\"https://sign.signable.app/#...\" width=\"100%\" height=\"95%\" frameborder=\"0\" style=\"border: 0; overflow: hidden\"></iframe>"
}
```

File-based or multi-party envelopes
For envelopes created from an uploaded file, or with more than one signer, the create-envelope response does not contain the signing URL. Configure the `envelope-sent` webhook to receive it.

1. When the envelope is sent, the `envelope-sent` webhook fires with the first (or only) signer's URL in the `envelope_signing_embed` property.
2. For multi-party envelopes, the next signer's URL is delivered by webhook each time the previous signer completes their signature.


## Configure webhooks

Set up webhooks in your Signable account:

1. Go to your API settings.
2. Add your webhook endpoint URL.
3. Enable the `envelope-sent` webhook. This is what delivers the `envelope_signing_embed` URL for file-based and multi-party envelopes — without it, you have no way to retrieve the signing URL for those envelopes.
4. Enable the `signed-envelope` webhook (for multi-party envelopes). This tells your system when signing is complete.


Your endpoint must return a 2xx HTTP status to confirm receipt.

## Webhook payload

The `envelope-sent` webhook payload includes the signing URL:

```json
{
  "envelope_signing_embed": "<iframe src=\"https://sign.signable.app/#...\" width=\"100%\" height=\"95%\" frameborder=\"0\" style=\"border: 0; overflow: hidden\"></iframe>"
}
```

Extract this value and deliver it through your chosen channel.

## Deliver the signing URL

After retrieving the signing URL, deliver it to your signer:

- **Application embedding:** Display the URL in an iframe or redirect.
- **Custom email:** Include the URL in your email template.
- **SMS:** Send the URL in a text message.


When all signers complete the envelope, Signable sends completion emails with signed documents to all parties.

Use the `signed-envelope` webhook to trigger actions in your system when signing completes.

### Content Security Policy

If your application sets a [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP) (CSP), add the signing page to the `frame-src` directive. Without it, the browser blocks the iframe.

```
Content-Security-Policy: frame-src https://sign.signable.app;
```

If you set an `envelope_redirect_url`, the signer is redirected inside the iframe after signing, so you must also allow the redirect URL's origin. For example, if the redirect URL is on your own domain:

```
Content-Security-Policy: frame-src 'self' https://sign.signable.app;
```

If your policy doesn't set `frame-src`, the browser uses `child-src` instead, then `default-src`. Add the origins to the directive your policy uses.

You don't need to change any other directives. The signing page loads its own scripts, styles and API requests inside the iframe.

## QES envelopes

For envelopes with QES fields, QES signers also need a link to verify their identity after everyone has signed. See [QES with embedded signing](/guides/qes#qes-with-embedded-signing).