Documentación para desarrolladores

Publicar llms.txt

POST/sites/{siteId}/geo/llms-txt
Permiso
actions:apply
Herramienta MCP
apply_llms_txt

Approve a new /llms.txt and write it through WordPress The same rules as "Publish /llms.txt" in the app: WordPress connected and writable, at most 60,000 characters, undo in the app for 30 days. Then /llms.txt is read again; GET shows lastChange.status and live.matchesLastWrite. An empty value removes the file MonoRanks wrote.

Las descripciones vienen del documento OpenAPI y están en inglés.

Parámetros

NombreDóndeDetalles
siteIdObligatoriorutastringWebsite id, from GET /sites.

Cuerpo de la petición

CampoDetalles
valuestring · required; at most 60000 characters; The full new file; an empty string removes the file MonoRanks wrote
{
  "value": "# Acme Bikes\n\n> Road, gravel and e-bikes with free fitting.\n\n## Shop\n- [Gravel bikes](https://acmebikes.com/gravel-bikes/)\n"
}

Respuesta

200 · application/json

CampoDetalles
approvedtrue or false · required; Always true
batchIdstring · required; Change batch id; GET shows its state as lastChange
notestring · required; What happens next
linkaddress (URL) · required; The AI readiness screen in the app

Errores

EstadoSignificado
400Bad request. Codes: bad_value, too_long.
401Missing, unknown or revoked key. Codes: missing_key, invalid_key.
403The key lacks the scope, covers another website, or its owner lost access. Codes: missing_scope, other_site, owner_left, no_owner, forbidden.
404Not found. Codes: not_found.
409Conflict with the current state. Codes: wordpress_not_connected, wordpress_not_writable, no_change.
429Too many requests this hour for this key. Codes: rate_limited.
503Switched off for now. Codes: feature_off.

Petición de ejemplo

curl -X POST \
  -H "Authorization: Bearer mr_ws_…" \
  -H "Content-Type: application/json" \
  -d '{"value":"# Acme Bikes\n\n> Road, gravel and e-bikes with free fitting.\n\n## Shop\n- [Gravel bikes](https://acmebikes.com/gravel-bikes/)\n"}' \
  "https://app.monoranks.com/api/v1/sites/SITE_ID/geo/llms-txt"

Respuesta de ejemplo

{
  "approved": true,
  "batchId": "f6b8d0f2-4a6c-4e8a-ac2e-6a8cae2a4c6d",
  "note": "Queued: the worker writes /llms.txt through WordPress, then reads it again.",
  "link": "https://app.monoranks.com/sites/3f6c2a1e-8b4d-4c7a-9e21-5d0b7a6f4c13/geo"
}

El servidor MCP hace lo mismo con la herramienta apply_llms_txt.