---
title: "Generate Content"
method: POST
path: "/generate_content"
tags: ["Generate Content"]
---

# Generate Content

`POST /generate_content`

Parse any HTML or text into our multi-channel messaging schema

## Request body

- union
  - object
    - `html` string, required — The HTML to be converted
  - object
    - `text` string, required — The text to be converted
    - `formatter` 'email' | 'sms' | 'whatsapp' | 'instagram' | 'facebook' | 'google_business_messaging' — The formatter to use for the text conversion

## Response `200`

Decoded JWT payload

- object
  - `content` object, required — The generated content

## Other responses

- `400` — Invalid input provided

---

[API](https://skmtc.net/getmateo/apis/mateo-api.md) · [All operations](https://skmtc.net/getmateo/apis/mateo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getmateo/mateo-api/versions/96e99eb80199/schema)
