SmallPlate

Creation API

Create static and dynamic short links

Use creation endpoints to generate short links for a plate.

POST /{plateId}/create

Request body:

{
  "destination": "https://example.com/product/42",
  "expires_at": 0,
  "max_uses": 500,
  "id_prefix": "prd_",
  "metadata": {
    "owner": "web-team"
  }
}
POST /{plateId}/create/dynamic

Request body:

{
  "template": "https://shop.example.com/product/{}?ref={}",
  "id_prefix": "dyn_",
  "expires_at": 0,
  "max_uses": 0,
  "metadata": {
    "kind": "campaign"
  }
}

Fields

FieldTypeRequiredNotes
destinationstringfor static linksURL target
templatestringfor dynamic linksURL template with placeholders
expires_atnumberoptionalunix ms timestamp, 0 means no expiry
max_usesnumberoptional0 means unlimited
metadataobjectoptionalcustom JSON payload
id_prefixstringoptionalprefix for generated random ID

ID behavior

  • You cannot provide a full custom ID.
  • Only id_prefix is accepted.
  • ID suffix is random alphanumeric and collision-safe.

Response shape

{
  "ok": true,
  "data": {
    "link": {
      "id": "dyn_aB93x",
      "plate_id": "1",
      "dynamic_mode": "mixed",
      "enabled": true,
      "uses": 0,
      "created_at": 1742500000000,
      "updated_at": 1742500000000
    },
    "shortUrl": "/url/dyn_aB93x"
  }
}

On this page