POST
/
createFromTemplate
Create a message from a template
curl --request POST \
  --url https://api.useinkless.com/createFromTemplate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "templateId": "<string>",
  "recipients": [
    {
      "email": "jsmith@example.com",
      "name": "<string>"
    }
  ]
}'
{
  "message": "<string>",
  "pdf_id": "<string>",
  "recipients": [
    "jsmith@example.com"
  ]
}

Authorizations

x-api-key
string
header
required

Body

application/json
templateId
string
required

ID of the template to use

recipients
object[]
required

List of recipient objects

Response

Successfully created message from template

Response data

message
string

Status message

pdf_id
string

Identifier of the created PDF

recipients
string<email>[]

List of recipient email addresses