Skip to content
This is a new version of the Kivra Developer Docs. Report issues or share feedback at avsandare.support@kivra.se. The previous version can be found here.

Responsive content

More than 90% of content sent in Kivra is consumed on mobile devices. Add a responsive_part to a PDF part to show the most important information without requiring the recipient to zoom in.

Provide two versions of the content:

  • a PDF containing all information and details that must be presented
  • an HTML responsive_part containing an overview and the key information or actions you want to highlight

For example, a letter’s PDF can contain the complete message while its responsive part highlights important dates, required actions, and a support telephone number. The HTML should introduce the content itself, not act as a generic promotional banner.

Kivra is an archive, so delivered content must remain immutable. The HTML version must meet these restrictions:

  • Do not use JavaScript, either inline or from an external resource.
  • Embed images, icons, CSS, and other external documents inline so they cannot disappear or change later.
  • UTM links are allowed, but must not be used to track an individual recipient’s behaviour.