Renders

Render up to 50 documents

Every item is queued. Items that hit the cache come back finished. A failed item does not fail the batch: its entry in renders is an error envelope with the same index.

post/v1/render/batch

Request

  • Base URL: https://api.galleyrender.com
  • URL: https://api.galleyrender.com/v1/render/batch
  • Auth: HTTP bearer

Request body

webhook_urlstring uri

Applied to every item that does not carry its own.

Example request

{
  "renders": [
    {
      "template": "invoice@3",
      "data": {
        "lang": "pt-BR"
      },
      "options": {
        "margin": "18mm"
      },
      "webhook_url": "https://example.com/hooks/galley"
    }
  ]
}

Response

Accepted.

object'batch' required
idstring required
countinteger required
queuedinteger required
cachedinteger required

Example response

{
  "id": "bat_3k9dm2p1xq4v"
}

Changes

No recorded changes to this operation across all 1 revision of this API.