Skip to content

Overview

Ceremony Customization

Change how an embedded ceremony looks and behaves with URL query parameters, such as the accent color, the Cancel button and how events reach your app.

You customize a ceremony in two places:

  • Query parameters that you append to the ceremony url before you show it. They change one session and need no API call.
  • Properties of the ceremony that you set when you create it, in the Create Envelope or Create Ceremony request.

Ceremony parameters

ParameterGoes inValues (default)Applies to
embeddedURLtrue (not set: standalone)Embedded
event_deliveryURLnone, message or redirect (none)Embedded
allow_cancelURLfalse removes Cancel (shown)Embedded
accent_colorURLHex code without #, such as 8e24aa (the envelope’s accent color, else blue)Both
allow_declineURLfalse removes Decline (shown)Standalone
embeddable_inBodyUp to 10 origins, such as https://app.acme.example (none)Embedded in an iframe
redirect_urlBodyAn absolute URL (none)Standalone; embedded ignores it
redirect_delayBody0 to 20 seconds (3)Both

“URL” is a query parameter added to the ceremony url; “Body” is a property of the ceremony in the create request. An embedded ceremony in an <iframe> that sends JavaScript messages:

https://sign.signatureapi.com/en/start?token=eyJhbGci...iDsInR&embedded=true&event_delivery=message

A standalone ceremony without the Decline control:

https://sign.signatureapi.com/en/start?token=eyJhbGci...iDsInR&allow_decline=false

Appearance

Accent Color

The accent_color query parameter sets the color of the ceremony’s buttons for this session. Signature places, input fields and checkboxes keep their default colors.

The value must be a hexadecimal color code, without the # prefix. For example, to make the buttons purple:

https://sign.signatureapi.com/en/start?token=eyJhbGci...iDsInR&accent_color=8e24aa

The ceremony will look like this:

Embedded signing ceremony showing a sample privacy policy, with a purple Start button in the bottom right corner
accent_color=8e24aa

To brand every ceremony and email of an envelope, set branding.accent_color on the envelope instead. The two work together like this:

  • When the URL has accent_color, the ceremony uses it and ignores the envelope’s branding.accent_color. Emails keep the envelope’s color.
  • When the URL has no accent_color, the ceremony uses branding.accent_color, or the default blue if the envelope has none.
  • The API rejects a branding.accent_color with a contrast ratio below 4.5:1 against white. The URL parameter has no such check, so test your color: button labels are white, and a light color makes them hard to read.

Behavior

Disable Cancel

As a default, the ceremony allows the signer to cancel the ceremony. You can disable this by setting the allow_cancel query parameter to false. You can do this to handle the cancellation in your application.

This option applies only to embedded ceremonies, which use embedded=true.

https://sign.signatureapi.com/en/start?token=eyJhbGci...iDsInR&embedded=true&allow_cancel=false

Disable Decline

As a default, a standalone ceremony lets the signer decline it. You can remove the Decline control by setting the allow_decline query parameter to false.

This option applies only to standalone ceremonies, which don’t use embedded=true. Embedded signers see Cancel instead of Decline. Use allow_cancel=false to remove it.

https://sign.signatureapi.com/en/start?token=eyJhbGci...iDsInR&allow_decline=false

Event Delivery

The ceremony can send events to your application. Set the event_delivery query parameter to none, message, or redirect. The ceremony sends events only when the URL includes embedded=true.

When you don’t set event_delivery, it defaults to none: the ceremony sends no events and you use webhooks to follow the outcome.

Javascript Messages

When you set event_delivery=message, the ceremony posts each event to your page as a JavaScript message. Use it when you embed the ceremony in a web app with an <iframe>.

https://sign.signatureapi.com/en/start?token=eyJhbGci...iDsInR&embedded=true&event_delivery=message

Redirects

When you set event_delivery=redirect, the ceremony navigates the WebView to a signatureapi-message:// URL that contains the event. Use it when the ceremony is the page of a WebView in a mobile or desktop app.

https://sign.signatureapi.com/en/start?token=eyJhbGci...iDsInR&embedded=true&event_delivery=redirect

Result page delay

The redirect_delay property of the ceremony sets how many seconds the result page shows before the completed or declined event. Set it when you create the ceremony, not in the URL. Use 0 to receive the event immediately and show your own result screen. See Ceremony object.

Learn more about delivering events to your application in Ceremony Events.