---
updatedAt: 2026-10-19T23:48:42.000Z
agentTools:
  projectIndex: https://docs.signeasy.com/llms.txt
---

# Fetch embedded sending URL

Get a link that opens the sending screen inside your app. Your user places the fields and sends the envelope without leaving your product. You can also place fields ahead of time with `fields_payload` and fill template merge fields with `merge_fields`. Your user sees them on the sending screen before sending. Each link works for an hour, and you can create 100 a day.

Generate a URL to embed the sending experience right within your applications. This will let the sender place and assign fields and send signature requests to the recipients declared when the URL is generated.

You can generate 100 URLs per day, each valid for one hour from the time of generation.

<Callout icon="fad fa-file-pen" theme="default">
  ### Pre-fill by Sender or Earlier Signers

  Fill `text`, `checkbox`, and `combobox` fields before the recipient they belong to signs. Give each field a `label` and a `fillable_by`. For pre-fill by sender, set `fillable_by.sender` to `true` and put the value in `prefill_value`. For pre-fill by earlier signers, list them in `fillable_by.recipients` and set `is_ordered` to `true`. Both are available only on the **API Advanced Plan**. Merge fields for templates (`merge_fields`) stay available on all API plans. Reach support or sales for more details.
</Callout>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "signeasy-api-v3",
    "version": "3"
  },
  "servers": [
    {
      "url": "https://api.signeasy.com/v3"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "bearer",
        "description": "Send your access token in the `Authorization` header as `Bearer <access_token>`."
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rs/embedded/url": {
      "post": {
        "summary": "Fetch embedded sending URL",
        "description": "Get a link that opens the sending screen inside your app. Your user places the fields and sends the envelope without leaving your product. You can also place fields ahead of time with `fields_payload` and fill template merge fields with `merge_fields`. Your user sees them on the sending screen before sending. Each link works for an hour, and you can create 100 a day.",
        "operationId": "fetch-rs-sending-url",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "sources",
                  "recipients",
                  "is_ordered"
                ],
                "properties": {
                  "sources": {
                    "type": "array",
                    "description": "The original file id which must be self signed.",
                    "items": {
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "Unique identifier of the document to be used in the signature request.",
                          "format": "int32"
                        },
                        "type": {
                          "type": "string",
                          "description": "Type of the document. It can either be `original` or a `template`.",
                          "default": "original"
                        },
                        "source_id": {
                          "type": "integer",
                          "description": "An arbitrary identifier set by you to refer to this source in further declarations.",
                          "format": "int32"
                        },
                        "name": {
                          "type": "string",
                          "description": "The value specified here will be used to rename the document for the signature request. If not provided, the documents' actual names would be taken. The name of first source (provided by user or system picked) would be the name of envelope."
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "source_id"
                      ],
                      "type": "object"
                    }
                  },
                  "message": {
                    "type": "string"
                  },
                  "recipients": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "email": {
                          "type": "string"
                        },
                        "first_name": {
                          "type": "string",
                          "description": "Characters `[^,|#@!$%]+` are not allowed."
                        },
                        "last_name": {
                          "type": "string",
                          "description": "Characters `[^,|#@!$%]+` are not allowed."
                        },
                        "recipient_id": {
                          "type": "integer",
                          "description": "An identifier used to add fields to the recipient in the fields payload.",
                          "format": "int32"
                        },
                        "recipient_type": {
                          "type": "string",
                          "description": "Specify the value as `group` to create a recipient group. Recipient group has multiple members but act as a single recipient slot. Used for cases where the envelope needs to be signed by any one member who is a part of a group (department or team)."
                        },
                        "group": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "default": "Legal Department",
                              "description": "Specify the name of the recipient group. This will be logged and captured in the audit trail."
                            },
                            "members": {
                              "type": "array",
                              "items": {
                                "properties": {
                                  "email": {
                                    "type": "string"
                                  },
                                  "first_name": {
                                    "type": "string",
                                    "description": "Characters `[^,|#@!$%]+` are not allowed."
                                  },
                                  "last_name": {
                                    "type": "string",
                                    "description": "Characters `[^,|#@!$%]+` are not allowed."
                                  }
                                },
                                "type": "object",
                                "required": [
                                  "email",
                                  "first_name"
                                ]
                              },
                              "description": "Recipients in the group."
                            },
                            "signing_rule": {
                              "type": "string",
                              "default": "any",
                              "description": "Currently supports `any`, where anyone from the members object can sign the document."
                            }
                          },
                          "description": "Group recipients details. Requires `recipient_type` to be set to `group`.",
                          "required": [
                            "name",
                            "members"
                          ]
                        }
                      },
                      "required": [
                        "email",
                        "first_name",
                        "recipient_id"
                      ],
                      "type": "object"
                    },
                    "description": "A collection of recipient objects. Recipient emails on reserved test domains such as `example.com` are rejected with `422 signer_email_rejected_as_spam`, so use a real inbox you control when testing."
                  },
                  "redirect_url": {
                    "type": "string"
                  },
                  "embedded_signing": {
                    "type": "boolean",
                    "description": "When set to true suppresses all emails sent for this signature request."
                  },
                  "is_ordered": {
                    "type": "boolean",
                    "description": "When set to `true` the recipients will sign the documents in the specified order. The order is the order of the `recipients` list. Must be `true` when a field's `fillable_by.recipients` lets an earlier signer pre-fill it."
                  },
                  "signature_panel_types": {
                    "type": "array",
                    "description": "The list of options you'd want your signer to see at the time of signing.  Possible values: \"draw\", \"type\" and \"upload\"",
                    "items": {
                      "type": "string"
                    }
                  },
                  "initial_panel_types": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "recipient_role_mapping": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "source_id": {
                          "type": "integer",
                          "description": "The source_id (only for templates) defined in `sources` to which the following field has to be assigned.",
                          "default": 1,
                          "format": "int32"
                        },
                        "role_id": {
                          "type": "integer",
                          "description": "The role_id defined in above mentioned sources template.",
                          "default": 1,
                          "format": "int32"
                        },
                        "recipient_id": {
                          "type": "integer",
                          "description": "The recipient_id mentioned in `recipients` to whom the following role has to be assigned.",
                          "default": 1,
                          "format": "int32"
                        }
                      },
                      "required": [
                        "source_id",
                        "role_id",
                        "recipient_id"
                      ],
                      "type": "object"
                    }
                  },
                  "fields_payload": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "recipient_id": {
                          "type": "integer",
                          "format": "int32",
                          "default": 1,
                          "description": "The recipient_id defined in recipients to whom the field has to be assigned."
                        },
                        "source_id": {
                          "type": "integer",
                          "format": "int32",
                          "default": 1,
                          "description": "The source_id defined in sources in which the field has to be assigned."
                        },
                        "type": {
                          "type": "string",
                          "default": "signature",
                          "description": "The field type. `combobox` is a dropdown, and the signer picks one of the choices you list in `additional_info.options`. There's no `dropdown` type, and sending it returns 400. Only `text`, `checkbox`, and `combobox` fields can be pre-filled.",
                          "enum": [
                            "signature",
                            "initials",
                            "stamp",
                            "date",
                            "name",
                            "text",
                            "email",
                            "radio",
                            "checkbox",
                            "combobox"
                          ]
                        },
                        "required": {
                          "type": "boolean",
                          "default": true,
                          "description": "If set to true, the field will be mandatory. Set false to make it optional."
                        },
                        "page_number": {
                          "type": "string",
                          "default": "1",
                          "description": "The page to place the field on. Send a page number, or a string to place the field on more than one page.<br />`1` or `\"1\"` places it on page 1. `\"-1\"` places it on the last page.<br />`\"all\"` places it on every page.<br />`\"2:4\"` places it on pages 2 to 4.<br />`\"1,3\"` places it on pages 1 and 3.<br />Use a colon for ranges, and no spaces in lists. `\"1-3\"` and `\"1, 3\"` return 400."
                        },
                        "additional_info": {
                          "type": "object",
                          "properties": {
                            "format": {
                              "type": "string",
                              "description": "Date format, if the field is of type date."
                            },
                            "options": {
                              "type": "array",
                              "description": "The choices for a `combobox` (dropdown) field, in the order the signer sees them. Required for a combobox, with at least one option. Numbers are shown as text. A pre-filled value must match one option exactly, including case and spaces. The field's `label` shows as the placeholder, and without one the placeholder is `--select--`. Example: **[\"Sole Proprietorship\", \"LLC\", \"Corporation\"]**.",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "description": "Extra settings for some field types. Use `format` for `date` fields and `options` for `combobox` fields."
                        },
                        "position": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "default": "fixed",
                              "description": "The value can either be fixed or referenceText. If you specify the value as fixed, then x and y are mandatory. Else if the value is referenceText, text is mandatory."
                            },
                            "x": {
                              "type": "integer",
                              "format": "int32",
                              "default": 100,
                              "description": "The x coordinate from the bottom left of the page. The mode must be fixed to use this."
                            },
                            "y": {
                              "type": "integer",
                              "format": "int32",
                              "default": 100,
                              "description": "The y coordinate from the bottom left. The mode must be fixed to use this."
                            },
                            "height": {
                              "type": "integer",
                              "format": "int32",
                              "description": "The height of the field in pixels.",
                              "default": 200
                            },
                            "width": {
                              "type": "integer",
                              "format": "int32",
                              "default": 250,
                              "description": "The width of the field in pixels."
                            },
                            "text": {
                              "type": "string",
                              "default": "Signature",
                              "description": "The string you specify here will be used to parse the document to place the field. The mode must be set to referenceText to use this."
                            },
                            "xOffset": {
                              "type": "integer",
                              "format": "int32",
                              "default": 25,
                              "description": "The value by which original x coordinates have to be shifted. Only available when mode is set to referenceText."
                            },
                            "yOffset": {
                              "type": "integer",
                              "format": "int32",
                              "default": 10,
                              "description": "The value by which original y coordinates have to be shifted. Only available when mode is set to referenceText."
                            }
                          },
                          "description": "Defines where to place the field. For radio type field you can ignore this property and use radio_positions instead.",
                          "required": [
                            "mode",
                            "height",
                            "width"
                          ]
                        },
                        "radio_positions": {
                          "type": "array",
                          "items": {
                            "properties": {
                              "mode": {
                                "type": "string",
                                "default": "fixed",
                                "description": "The value can either be fixed or referenceText. If you specify the value as fixed, then x and y are mandatory. Else if the value is referenceText, text is mandatory."
                              },
                              "x": {
                                "type": "integer",
                                "format": "int32",
                                "default": 100,
                                "description": "The x coordinate from the bottom left of the page. The mode must be fixed to use this."
                              },
                              "y": {
                                "type": "integer",
                                "format": "int32",
                                "default": 100,
                                "description": "The y coordinate from the bottom left. The mode must be fixed to use this."
                              },
                              "height": {
                                "type": "integer",
                                "format": "int32",
                                "default": 15,
                                "description": "The height of the field in pixels."
                              },
                              "width": {
                                "type": "integer",
                                "format": "int32",
                                "default": 14,
                                "description": "The width of the field in pixels."
                              },
                              "text": {
                                "type": "string",
                                "default": "Signature",
                                "description": "The string you specify here will be used to parse the document to place the field. The mode must be set to referenceText to use this."
                              },
                              "xOffset": {
                                "type": "integer",
                                "format": "int32",
                                "default": 25,
                                "description": "The value by which original x coordinates have to be shifted. Only available when mode is set to referenceText."
                              },
                              "yOffset": {
                                "type": "integer",
                                "format": "int32",
                                "default": 10,
                                "description": "The value by which original y coordinates have to be shifted. Only available when mode is set to referenceText."
                              },
                              "selected": {
                                "type": "boolean",
                                "description": "You can either pass true or 1 to pre-select the default option."
                              }
                            },
                            "type": "object",
                            "required": [
                              "mode",
                              "height",
                              "width"
                            ]
                          },
                          "description": "Defines where to place the radio field group. For other type of fields you can ignore this property and use position instead."
                        },
                        "label": {
                          "type": "string",
                          "description": "A name for the field. Error messages name the field by it. Example: **Business Legal Name**."
                        },
                        "prefill_value": {
                          "type": "string",
                          "description": "The value for pre-fill by sender. Needs `fillable_by.sender` set to `true`. Available only on the **API Advanced Plan**. For a checkbox, `Yes` ticks it (`true`, `1`, and `on` also work), and `\"\"` or `false` leaves it unticked. For a combobox, the value must match one of `additional_info.options` exactly, including case and spaces."
                        },
                        "fillable_by": {
                          "type": "object",
                          "description": "Turns this field into a pre-fill field and sets who can fill it before the assigned recipient (`recipient_id`), the sender, earlier signers, or both. Works only on `text`, `checkbox`, and `combobox` fields. The assigned recipient sees every pre-filled value and can always change it. Pre-fill by sender and pre-fill by earlier signers are available only on the **API Advanced Plan**. Pre-fill by earlier signers also needs `is_ordered` set to `true`.",
                          "properties": {
                            "sender": {
                              "type": "boolean",
                              "description": "Set to `true` for pre-fill by sender, with `prefill_value` or in the embedded sending view.",
                              "default": false
                            },
                            "recipients": {
                              "type": "array",
                              "description": "For pre-fill by earlier signers. The `recipient_id`s, as defined in `recipients`, of signers who can fill this field. They must sign before the assigned recipient, so set `is_ordered` to `true` and list them earlier in `recipients`. It can't include the field's own `recipient_id`, and a signer group can't pre-fill. Available only on the **API Advanced Plan**. Example: **[1]**.",
                              "items": {
                                "type": "integer",
                                "format": "int32"
                              }
                            }
                          }
                        }
                      },
                      "type": "object",
                      "required": [
                        "page_number",
                        "required",
                        "type",
                        "source_id",
                        "recipient_id"
                      ]
                    },
                    "description": "Programmatically place fields on the documents based on x-y coordinates or a reference text."
                  },
                  "merge_fields": {
                    "type": "array",
                    "description": "Values for a template's merge fields. Each value fills the template field with the same `label`, and the signer can't change it. Available on the **API Intermediate Plan** and the **API Advanced Plan**, and in any sandbox app.",
                    "items": {
                      "properties": {
                        "label": {
                          "type": "string",
                          "description": "The exact label that is specified in the template."
                        },
                        "value": {
                          "type": "string",
                          "description": "The data to be filled in for the specified label."
                        },
                        "source_id": {
                          "type": "integer",
                          "description": "The source_id of the template defined in `sources` where the field has been created.",
                          "format": "int32"
                        },
                        "font_size": {
                          "type": "integer",
                          "description": "If provided, this value will change the font size of value.",
                          "default": 11,
                          "format": "int32"
                        }
                      },
                      "required": [
                        "label",
                        "value",
                        "source_id"
                      ],
                      "type": "object"
                    }
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date",
                    "example": "2026-12-31",
                    "description": "The date the envelope expires, in `YYYY-MM-DD`. Its `expiry_time` is set to 23:59:59 UTC on that day, so the earliest date you can send is tomorrow in UTC. A daily job marks envelopes expired, so the envelope can stay open for up to about a day after its `expiry_time`. Leave it out and the envelope expires 365 days after you create it."
                  }
                }
              },
              "examples": {
                "Fields placed ahead": {
                  "value": {
                    "sources": [
                      {
                        "id": 23190242,
                        "type": "original",
                        "name": "Agreement",
                        "source_id": 1
                      }
                    ],
                    "recipients": [
                      {
                        "first_name": "Jane",
                        "last_name": "Doe",
                        "email": "jane.doe@example.com",
                        "recipient_id": 1
                      }
                    ],
                    "message": "Please review and sign.",
                    "redirect_url": "https://example.com/done",
                    "embedded_signing": true,
                    "is_ordered": false,
                    "fields_payload": [
                      {
                        "recipient_id": 1,
                        "source_id": 1,
                        "type": "signature",
                        "required": true,
                        "page_number": "1",
                        "position": {
                          "mode": "fixed",
                          "x": 100,
                          "y": 150,
                          "height": 40,
                          "width": 160
                        }
                      },
                      {
                        "recipient_id": 1,
                        "source_id": 1,
                        "type": "text",
                        "required": true,
                        "page_number": "1",
                        "label": "Employee ID",
                        "fillable_by": {
                          "sender": true
                        },
                        "prefill_value": "EMP-1234",
                        "position": {
                          "mode": "fixed",
                          "x": 100,
                          "y": 400,
                          "height": 24,
                          "width": 160
                        }
                      }
                    ]
                  }
                },
                "Template with merge fields": {
                  "value": {
                    "sources": [
                      {
                        "id": 12661,
                        "type": "template",
                        "name": "NDA",
                        "source_id": 1
                      }
                    ],
                    "recipients": [
                      {
                        "first_name": "Jane",
                        "last_name": "Doe",
                        "email": "jane.doe@example.com",
                        "recipient_id": 1
                      }
                    ],
                    "recipient_role_mapping": [
                      {
                        "role_id": 1,
                        "recipient_id": 1,
                        "source_id": 1
                      }
                    ],
                    "merge_fields": [
                      {
                        "label": "Company",
                        "value": "Acme Ltd",
                        "source_id": 1
                      }
                    ],
                    "message": "Please review and sign.",
                    "redirect_url": "https://example.com/done",
                    "embedded_signing": true,
                    "is_ordered": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"recipients\": [\n        {\n            \"recipient_id\": 47619289,\n            \"email\": \"jane.doe@example.com\",\n            \"first_name\": \"Jane\",\n            \"last_name\": \"Doe\"\n        }\n    ],\n    \"pending_file_id\": 104735983,\n    \"url\": \"https://app.signeasy.com/embedded-send?hash=<hash>&data=<data>&version=v3&type=rs&next=https%3A%2F%2Fexample.com%2Fdone&int_client_id=<client_id>\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "recipients": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "recipient_id": {
                            "type": "integer"
                          },
                          "email": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "pending_file_id": {
                      "type": "integer",
                      "example": 104735983
                    },
                    "url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Required fields are missing, an ID or the expiry date is invalid, or the JSON is malformed",
            "content": {
              "application/json": {
                "examples": {
                  "Missing documents": {
                    "value": {
                      "message": {
                        "Key: 'EnvelopeCreateRequest": "Invalid Key: 'EnvelopeCreateRequest payload - Documents' Error:Field validation for 'Documents' failed on the 'required' tag"
                      }
                    }
                  },
                  "Invalid original": {
                    "value": {
                      "error_code": "bad_request",
                      "message": "Invalid original ID: 1234567"
                    }
                  },
                  "Malformed JSON": {
                    "value": {
                      "error_code": "bad_request",
                      "message": "Invalid request payload"
                    }
                  },
                  "Expiry date not after today": {
                    "value": {
                      "message": {
                        "expires_at": "expires_at must be a date after today"
                      }
                    }
                  },
                  "Expiry date in the wrong format": {
                    "value": {
                      "message": {
                        "expires_at": "expires_at must be a valid date in YYYY-MM-DD format"
                      }
                    }
                  },
                  "Dropdown without options": {
                    "value": {
                      "error_code": "bad_request",
                      "message": "Combobox field of recipient_id 1 on page 1 needs at least one option in additional_info.options"
                    }
                  },
                  "Pre-filled value not an option": {
                    "value": {
                      "error_code": "bad_request",
                      "message": "Combobox field \"Company type\": prefill_value \"llc\" is not one of its options"
                    }
                  },
                  "Unknown field type": {
                    "value": {
                      "error_code": "bad_request",
                      "message": "invalid field type dropdown"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired, or invalid access token",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid token": {
                    "value": {
                      "error": "unauthorized",
                      "message": "The server could not verify that you are authorized to accessthe URL requested. You either supplied the wrong authorization token,or you used an authorization token which doesn't have required scopes."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "A recipient uses a blocked email domain, or the account is out of credits",
            "content": {
              "application/json": {
                "examples": {
                  "Blocked domain": {
                    "value": {
                      "error_code": "signer_email_rejected_as_spam",
                      "message": "Recipients with email domain example.com are not allowed."
                    }
                  },
                  "Out of credits": {
                    "value": {
                      "message": "API credits exhausted, Kindly add credits to continue",
                      "error_code": "api_credits_limit_reached"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```