Skip to main content
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": "[email protected]",
      "name": "<string>"
    }
  ],
  "emailSubject": "<string>"
}
'
{
  "message": "<string>",
  "pdf_id": "<string>",
  "recipients": [
    "[email protected]"
  ]
}

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

emailSubject
string

Optional custom subject for the email sent to recipients.

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