imgrender

Before you integrate

imgrender API basics. Read this before you integrate.

Base URL

The imgrender API is organized around REST. Our API has predictable, resource-oriented URLs.

Every imgrender API uses this base URL:

https://api.imgrender.net/open/

For production, use the Generate image from template API: design and publish a template in the template editor, then pass variables to generate an image.

To pass complete HTML on every request without a saved template, use the Generate image from HTML API.

To generate a static QR code, use the QR code API: it returns PNG, SVG, or Base64 directly from the URL query, with no authentication.

Data format

The Content-Type header of every HTTP request is application/json.

Every request and response body is JSON.

Request URLs and request bodies are case-sensitive.

Authentication

imgrender authenticates requests with an API Key. Add this authentication field to the header of every request:

X-API-Key: your API key

See API keys for how to get an API key.

Versioning

imgrender uses semantic version numbers for the API, such as v1 and v2.

The version number is in the URL path. A full URL that includes the version looks like this:

https://api.imgrender.net/open/v1/

imgrender tries to keep the API compatible:

  • If an API change is compatible, the API version number stays the same.

  • If an API change is not compatible, a new version number is added and the previous API version is kept for a period of time. For example: v1 -> v2

On this page