Send the current CV HTML and an editing instruction written in plain language. The AI reads the full document, applies only the change described in the prompt, and returns the complete updated HTML. You do not need to re-supply the original form data — the AI works directly on the rendered HTML.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CristianParadaLopez/cv-builder/llms.txt
Use this file to discover all available pages before exploring further.
Request
Method:POSTPath:
/api/cv/editContent-Type:
application/json
The full HTML document to modify. This should be the
html value returned by a previous call to /api/cv/generate or /api/cv/edit. Must be a non-empty string.A natural language instruction describing the change to make. For example:
"Cambia el color del encabezado a azul marino". Must be a non-empty string and cannot exceed 1000 characters.Behavior
Before the HTML is sent to the AI model, the service scans it for an embedded base64 photo (anysrc attribute whose value begins with data:image/ and is at least 20 characters long). If one is found:
- The base64 data URI is replaced with the literal string
PHOTO_PLACEHOLDERin the HTML that is sent to the AI. - After the AI returns the modified HTML,
PHOTO_PLACEHOLDERis replaced back with the original base64 string.
Validation
currentHTMLmust be a non-empty string. Returns400otherwise.promptmust be a non-empty string. Returns400otherwise.promptmust be 1000 characters or fewer. Returns400if exceeded.
Response
Status:200 OK
The full modified HTML document, beginning with
<!DOCTYPE html> and ending with </html>. Only the aspects targeted by the prompt are changed; all other content, structure, and styling remain intact.Error responses
| Status | Condition |
|---|---|
400 | currentHTML or prompt is missing or empty |
400 | prompt exceeds 1000 characters |
500 | All AI models failed to return a valid response |
Example request
Example response
Example prompts
The prompt field accepts any natural language instruction in Spanish or English. Here are some prompts that work well:"Cambia el color de la barra lateral a verde""Agrega una sección de certificaciones debajo de educación""Usa una fuente serif en lugar de sans-serif""Mueve las habilidades al lado derecho""Aumenta el interlineado de las descripciones de experiencia""Elimina la sección de idiomas"