Dynalinks
Page templates

Get the page template

GET
/page_template
Manage the page template shown on link preview pages. Requires page-template access, enabled per project by Dynalinks. Experimental: the request and response shapes may still change.

Returns the project's page template: the draft and the live version links currently show.

Requirements: a Pro plan, page templates enabled for the project, and an API key of a project owner or manager with the page_templates.show scope.

Authorization

headerAuthorization<token>

Format: Authorization: Token {api_key}

Response Body

Page template found

application/json
  1. response
id?string

UUID of the page template

Formatuuid
body?string

Body of the draft

css?string

CSS of the draft

unpublished_changes?boolean

Whether the draft differs from the live version

live_version?|null

The version links currently show, or null if nothing is published

created_at?string
Formatdate-time
updated_at?string
Formatdate-time
Example Request
curl -X GET 'https://dynalinks.app/api/v1/page_template'
Example Response
{  "id": "0199e2a8-6f3b-7c1e-9a4d-2b8f6c1d3e5a",  "body": "<div class=\"page\">{{ link.title }}</div>\n{% store_buttons %}",  "css": ".page { color: #111; }",  "unpublished_changes": true,  "live_version": {    "id": "0199e2a9-1a2b-7c3d-8e4f-5a6b7c8d9e0f",    "published_at": "2026-10-12T09:30:00.000Z",    "live": true,    "body": "<div>{{ link.title }}</div>\n{% store_buttons %}",    "css": ""  },  "created_at": "2026-10-10T08:00:00.000Z",  "updated_at": "2026-10-12T10:00:00.000Z"}