Documentation
Documentation menu

Promotional slide-in

Add an on-page promotion with a title, description, and call-to-action link.

Configure a slide-in

Send a leadCapture object in settings. Set mode to promotional to enable it or none to remove it. Enabling the slide-in requires a Solo, Pro, or Pro Max plan.

curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
  -H "x-api-key: $TIINY_API_KEY" \
  -F 'domain=example.tiiny.site' \
  --form-string 'settings={"leadCapture":{"mode":"promotional","title":"Book a demo","ctaText":"Book now","ctaLink":"example.com/demo"}}'

Send the hostname of an owned project. This settings-only request keeps its hosted files. See Project settings for the full request and validation rules.

Field Validation
title String, up to 50 characters
description String, up to 120 characters
ctaText String, up to 25 characters
ctaLink HTTP(S) URL or mailto: address. A bare web address gets https://.

Invalid changed values can return TOO_LONG or INVALID_URL. To request verified email before opening a project, use Email capture.

Search documentation