Read the current contract
GET /v1/templates/block-schema returns limits, supported block types, directive operators, and interactivity.limits. Use it as the current reference for text lengths, chart dimensions, card actions, carousel size, and metadata size.
Gzip/base64 compression and
metadata_transport diagnostics are an unreleased prototype. Production retains the 3,800-byte event-payload budget until live Slack acceptance and deployment.
The endpoint schema is authoritative for request size, field limits, and pagination. Subscription limits for active queues, modes, and event volume depend on the organization; inspect
tier_limit errors and account settings rather than assuming a published plan table is current.
Validate realistic extremes
- Read the selected template’s input schema.
- Test longest expected text, empty arrays, and maximum expected row counts.
- Run
POST /v1/templates/validatewith the complete blocks and representativesample_data. - Inspect the generated output and measured interactivity metadata.
- Send to a test channel and check the actual Slack rendering.
validate reports raw interactivity.metadata_bytes and metadata_transport diagnostics: encoding, actual wire bytes, and bytes with both log references reserved. Sample-data estimates can differ from an actual send; the sending runtime checks the final metadata before debit or dispatch.
