Skip to main content
POST
/
v1
/
templates
/
compile
Compile a template
curl --request POST \
  --url https://api.lithoblocks.com/v1/templates/compile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "template_id": "<string>",
  "data": {}
}
'
{
  "template": {
    "id": "<string>",
    "name": "<string>",
    "type": "<string>",
    "user_name": "<string>",
    "icon_emoji": "<string>"
  },
  "compiled_message": "<string>",
  "remaining_credits": 123,
  "warnings": [
    "<string>"
  ],
  "slack_truncation": {
    "fields_truncated": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.lithoblocks.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

LithoBlocks API key obtained from your organization dashboard

Body

application/json

Compile template with credits

template_id
string
required
data
object
required

Response

Successfully compiled template with credits

template
object
required
compiled_message
string
required
status
enum<string>
required
Available options:
success
remaining_credits
number
warnings
string[]
slack_truncation
object