---
title: "Use Placeholders to Position Signatures"
description: "Position a signature place with a [[place_key]] text placeholder in your PDF or DOCX, so the place follows the text when the layout changes."
canonical: "https://signatureapi.com/docs/api/guides/how-to/use-placeholders"
source: "https://signatureapi.com/docs/api/guides/how-to/use-placeholders.md"
last_verified_api_version: "1.18.1"
last_modified: "2026-11-18T11:49:54Z"
---

# Use Placeholders to Position Signatures

Position a signature place with a [[place_key]] text placeholder in your PDF or DOCX, so the place follows the text when the layout changes.

_Last verified against API version 1.18.1._

In SignatureAPI, [places](https://signatureapi.com/docs/api/resources/places/object) are areas in a document where recipients sign, enter information, or where details, such as dates, are automatically added. The [signature place](https://signatureapi.com/docs/api/resources/places/signature) is one of them. Where a place appears is set by [positioning](https://signatureapi.com/docs/api/resources/places/positioning).

There are two ways to position places: [fixed positions](https://signatureapi.com/docs/api/resources/places/positioning#fixed-positions) (coordinates) and [placeholders](https://signatureapi.com/docs/api/resources/places/positioning#placeholders) within the document. In this example, we will show how to position a **signature place** using a **placeholder**.

For this example, we will create an envelope with:

- One recipient (of type `signer`), identified with the key `visitor`.
- The visitor signs a single PDF document.
- The document will have one signature place, identified with the key `signer_signs_here`, that will be signed by the recipient `visitor`.

All other envelope settings use the default configuration:

- The recipient will receive an email with a link to sign.
- The account's default language, timezone, and timestamp format used.

## Prepare your Document

Placeholders are text within your PDF document that define the location where places (such as signatures, initials, text inputs, etc.) should appear. They follow the format `[[place_key]]`, where `place_key` identifies the place within the document.

> **Note:** Place placeholders use double brackets: `[[place_key]]`. Template fields use double curly braces (`{{field_key}}`) to inject content into DOCX documents. A DOCX document can use both. See [Document Templates](https://signatureapi.com/docs/api/resources/documents/templates) for template fields.

For this example, we prepared a document that contains the placeholder `[[signer_signs_here]]` to indicate the position of the place with the key `signer_signs_here`.

Two rules apply to every placeholder:

- **It must be text in the document**, text you can select and copy, not part of an image or a scanned page. SignatureAPI finds placeholders by reading the document's text.
- **Placeholders and places must match one to one.** A place whose placeholder isn't in the document makes the request fail with [`invalid-places`](https://signatureapi.com/docs/v1/errors/invalid-places). A placeholder with no matching place fails with [`invalid-placeholder`](https://signatureapi.com/docs/v1/errors/invalid-placeholder). Both errors are `422` responses to the create request, so no envelope is created. A placeholder that appears twice in the document fails with [`duplicate-placeholder`](https://signatureapi.com/docs/v1/errors/duplicate-placeholder).

- [Example document](https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/privacy-placeholder.pdf): Download the PDF used in this example.

> **Tip:** In our document, the placeholder is highlighted in blue for visibility. However, we recommend setting it to white so it remains invisible to the signer.

![The end of the example document with the blue placeholder signer_signs_here on the signature line, above the name John Doe and the word Visitor](https://signatureapi.com/docs/api/guides/how-to/images/use-placeholders-1.webp)

*The placeholder in the example document*

## Create the Envelope

When creating the envelope, add the signature place object to the `places` array inside the document object, with the following properties:

- `key`: This identifies the place within the document. Must match what’s inside the square brackets in the placeholder inside the document file, in this case: `signer_signs_here`.
- `type`: As this is a signature place, we use the value `signature`.
- `recipient_key`: The key of the recipient that will sign in this place. In this example, there is just one recipient, who has the key `visitor`.

```http
POST /v1/envelopes HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{
  "title": "Privacy Consent",
  "message": "Please review and sign the privacy consent.",
  "documents": [
    {
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/privacy-placeholder.pdf",
      "format": "pdf",
      "places": [
        {
          "key": "signer_signs_here",
          "type": "signature",
          "recipient_key": "visitor"
        }
      ]
    }
  ],
  "recipients": [
    {
      "type": "signer",
      "key": "visitor",
      "name": "Jane Doe",
      "email": "jane.doe@example.com"
    }
  ]
}
```

## Result

If the request is successful, SignatureAPI sends Jane Doe (the recipient) an email with a link to sign. Jane opens the link, and the signature place sits on top of the placeholder:

![The signing ceremony with a SIGN box over the blue signer_signs_here placeholder, above the signature line](https://signatureapi.com/docs/api/guides/how-to/images/use-placeholders-2.webp)

*The signature place over the placeholder, in the signing ceremony*

## Hide the placeholder

The signature covers the placeholder, but a colored placeholder can still show around it. Set the placeholder text to white so only the signature remains. This example from another document shows the three stages:

**1. Placeholders in the document**

![A signature block with two blue placeholders: licensor_signs_here on the signature line and licensor_signed_at after Signed at](https://signatureapi.com/docs/images/place-position-placeholder.webp)

*Before signing: placeholders in blue*

**2. Signed, with visible placeholders**

![The same signature block after signing, with the signature and the date drawn over the blue placeholder text, which still shows through](https://signatureapi.com/docs/images/place-position-placeholder-signed.webp)

*Signed: the blue text shows under the signature and the date*

**3. Signed, with white placeholders**

![The same signature block after signing, showing only the signature on the line and the date December 31, 2025 after Signed at](https://signatureapi.com/docs/images/place-position-placeholder-white.webp)

*Signed: white placeholders stay hidden*

## Try It

[Try this example in Postman](https://signatureapi.com/docs/api/postman) ("Create an envelope with placeholders") using your [test API key](https://signatureapi.com/docs/api/test-mode) to create a free, non-binding test envelope. Test envelopes don't send emails, but you can review them in the Dashboard.

## Keep Learning

- Learn how to position a signature using [coordinates](https://signatureapi.com/docs/api/guides/how-to/use-fixed-positions) when exact positioning is required.
- Explore other [types of places](https://signatureapi.com/docs/api/resources/places/object), such as [initials](https://signatureapi.com/docs/api/resources/places/initials), [text inputs](https://signatureapi.com/docs/api/resources/places/text-input), or [completion dates](https://signatureapi.com/docs/api/resources/places/date).
