Endpoint herramientas IA

POST /v1/tools/{name} ejecuta directamente una herramienta de SmartChat AI, sin modelo de IA en medio. Los textos que envías se usan palabra por palabra. GET /v1/tools lista todas las herramientas con su esquema y si tu clave puede usarlas.

La referencia técnica de abajo está en inglés, exactamente como aparecen los nombres y campos en la API y en Claude.

curl -X POST https://api.smartchat.marketing/v1/tools/update_landing \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"arguments": {"headline": "Fresh bread every morning"}}'

{"tool": "update_landing", "ok": true, "result": { ... }}

Acciones en dos pasos

Las herramientas que envían, programan, someten o borran devuelven primero una vista previa y un confirm_token. Vuelve a llamar a la misma herramienta con confirm_token para ejecutar. En la primera llamada no pasa nada.

59 tools

POST/v1/tools/get_overview · Get account overview

Solo lecturaPermiso: stats:read

Returns an overview of the account: landing page, templates, follow-ups, newsletters, automations and contacts with their IDs and states.

Datos (body): {"arguments": { ... }}

Sin campos de entrada.

POST/v1/tools/list_media · List media

Solo lecturaPermiso: media:read

Lists the images and videos in the media library with id, number, type and description.

Datos (body): {"arguments": { ... }}

Sin campos de entrada.

POST/v1/tools/save_to_library · Save to media library

Cambia datosPermiso: media:write

Saves an uploaded file permanently to the media library. Argument: media_id.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
media_idstringsí

POST/v1/tools/update_landing · Change landing page texts

Cambia datosPermiso: landing:writeUsa créditos como un mensaje a SmartChat AI

Changes texts and settings of the landing page. Texts are used word for word.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
headlinestringno
subheadlinestringno
cta_textstringno
success_messagestringno
texteobjectno
steps_titlestringno
steps_introstringno
faq_titlestringno
proof_titlestringno
problemobjectno
solutionobjectno
offerobjectno
stepsarray of objectno
faqarray of objectno
reviewsarray of objectno
colorstringno
heading_coloranyno
background_coloranyno
button_coloranyno
fontstringno
design_moodstringno
font_pairstringno
hero_imagestringno
hero_mediaobjectno
imagesarray of stringno
verbatimarray of stringnoNamen der Felder, deren Text der Nutzer WÖRTLICH vorgegeben hat (z.B. ["headline"]). Diese Texte werden exakt so gespeichert - ohne Kritiker, ohne Politur. Setze das IMMER, wenn du einen Text übernimmst, den der Nutzer selbst geschrieben hat.

POST/v1/tools/swap_landing_image · Change landing page image

Cambia datosPermiso: landing:write

Replaces an image on the landing page with an image or video from the media library.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
positionanysí
querystringno

POST/v1/tools/get_landing_blocks · Get landing page blocks

Solo lecturaPermiso: landing:read

Returns all blocks of the landing page with their ids and content.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
positionanyno

POST/v1/tools/add_landing_block · Add landing page block

Cambia datosPermiso: landing:writeUsa créditos como un mensaje a SmartChat AI

Adds a block (section) to the landing page.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
typestringsí
dataobjectno
variantstringno
tonstringno
positionanyno
stilarray of objectno

POST/v1/tools/remove_landing_block · Remove landing page block

Envía, somete o borraPermiso: landing:write

Removes a block from the landing page.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
positionanysí

POST/v1/tools/move_landing_block · Move landing page block

Cambia datosPermiso: landing:write

Moves a block to another position on the landing page.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
fromanysí
toanysí

POST/v1/tools/set_landing_style · Change landing page style

Cambia datosPermiso: landing:write

Changes colors, fonts and background of the landing page or of one block.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
radiusanyno
shadowanyno
spacinganyno
widthanyno
buttonanyno
imageanyno
stilarray of objectno

POST/v1/tools/update_landing_block · Change landing page block

Cambia datosPermiso: landing:writeUsa créditos como un mensaje a SmartChat AI

Changes the content or design of one block. Texts are used word for word.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
positionanysí
karteanyno
dataobjectno
variantstringno
tonstringno
stilarray of objectno

POST/v1/tools/publish_landing · Publish landing page

Envía, somete o borraPermiso: landing:write

Publishes the landing page so the changes are live.

Datos (body): {"arguments": { ... }}

Sin campos de entrada.

POST/v1/tools/create_followup_sequence · Create follow-up sequence

Cambia datosPermiso: followups:writeUsa créditos como un mensaje a SmartChat AI

Creates a follow-up sequence (messages after sign-up).

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
namestringsí
stepsarray of objectsí
activatebooleanno
verbatimarray of stringno

POST/v1/tools/update_followup_step · Change follow-up step

Cambia datosPermiso: followups:writeUsa créditos como un mensaje a SmartChat AI

Changes text, image or timing of one follow-up message. Texts are used word for word.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
step_idstringsí
contentstringno
subjectstringno
delay_hoursnumberno
verbatimarray of stringno

POST/v1/tools/add_followup_step · Add follow-up step

Cambia datosPermiso: followups:writeUsa créditos como un mensaje a SmartChat AI

Adds a message to a follow-up sequence.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
sequence_idstringsí
channelstringno
delay_hoursnumberno
contentstringsí
buttonanyno
mediaobjectno
verbatimarray of stringno

POST/v1/tools/delete_followup_step · Delete follow-up step

Envía, somete o borraPermiso: followups:write

Deletes one message from a follow-up sequence.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
step_idstringsí

POST/v1/tools/rename_followup_sequence · Rename follow-up sequence

Cambia datosPermiso: followups:write

Renames a follow-up sequence.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
sequence_idstringsí
namestringsí

POST/v1/tools/set_followup_status · Pause or start follow-ups

Cambia datosPermiso: followups:write

Pauses or starts a follow-up sequence.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
sequence_idstringsí
statusstring ("active", "paused")sí

POST/v1/tools/create_newsletter · Create newsletter

Cambia datosPermiso: newsletters:writeUsa créditos como un mensaje a SmartChat AI

Creates a WhatsApp newsletter as draft. Texts are used word for word; media_id adds an image or video from the media library.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
subjectstringsí
contentstringsí
channelstringno
mediaobjectno
ctaobjectno
segmentobjectno

POST/v1/tools/update_newsletter · Change newsletter

Cambia datosPermiso: newsletters:writeUsa créditos como un mensaje a SmartChat AI

Changes text, image, video or button of a newsletter. Texts are used word for word.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
newsletter_idstringsí
subjectstringno
contentstringno
mediaanyno
ctaanyno
segmentanyno

POST/v1/tools/send_newsletter · Send newsletter now

Envía, somete o borraPermiso: newsletters:schedule

Sends a newsletter to all confirmed contacts. First call returns the number of recipients and a confirm_token; the second call with confirm_token sends.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
newsletter_idstringsí
confirm_tokenstringno

POST/v1/tools/test_newsletter · Send test newsletter

Envía, somete o borraPermiso: newsletters:schedule

Sends a newsletter to the test phone number only.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
newsletter_idstringsí
tostringno

POST/v1/tools/schedule_newsletter · Schedule newsletter

Envía, somete o borraPermiso: newsletters:schedule

Schedules a newsletter. First call returns a preview and confirm_token; the second call with confirm_token schedules.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
newsletter_idstringsí
scheduled_atstringsí
confirm_tokenstringno

POST/v1/tools/cancel_newsletter · Cancel newsletter

Envía, somete o borraPermiso: newsletters:schedule

Cancels a scheduled newsletter.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
newsletter_idstringsí

POST/v1/tools/get_newsletter · Get newsletter

Solo lecturaPermiso: newsletters:read

Returns one newsletter with text, media, state and recipients.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
newsletter_idstringsí

POST/v1/tools/create_template · Create template

Cambia datosPermiso: templates:writeUsa créditos como un mensaje a SmartChat AI

Creates a WhatsApp template as draft. Texts are used word for word.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
namestringsí
channelstringno
contentstringsí
subjectstringno
buttonsarray of anyno
mediaobjectno
verbatimarray of stringno

POST/v1/tools/update_template · Change template

Cambia datosPermiso: templates:writeUsa créditos como un mensaje a SmartChat AI

Changes text, image or buttons of a template. Texts are used word for word.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
template_idstringsí
namestringno
contentstringno
subjectstringno
buttonsanyno
mediaanyno
verbatimarray of stringno

POST/v1/tools/delete_template · Delete template

Envía, somete o borraPermiso: templates:delete

Deletes a template.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
template_idstringsí

POST/v1/tools/submit_all_templates · Submit all templates

Envía, somete o borraPermiso: templates:submit

Submits all open templates to WhatsApp. First call returns the list and confirm_token; the second call with confirm_token submits.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
confirm_tokenstringno

POST/v1/tools/submit_template · Submit template to WhatsApp

Envía, somete o borraPermiso: templates:submit

Submits a template to WhatsApp for approval. First call returns a check and confirm_token; the second call with confirm_token submits.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
template_idstringsí
confirm_tokenstringno

POST/v1/tools/get_stats · Get statistics

Solo lecturaPermiso: stats:read

Returns the key figures of the account.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
rangestring ("7d", "30d", "90d")no

POST/v1/tools/list_contacts · List contacts

Solo lecturaPermiso: contacts:read

Lists contacts with their opt-in state and tags.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
typestringno
searchstringno

POST/v1/tools/add_contact · Add contact

Cambia datosPermiso: contacts:write

Adds a contact. A new contact still has to confirm the sign-up.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
namestringno
emailstringno
phonestringno

POST/v1/tools/resend_optin_confirmation · Resend confirmation

Envía, somete o borraPermiso: messages:write

Sends the sign-up confirmation to a contact again. First call returns a preview and confirm_token.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
contact_idstringsí
confirm_tokenstringno

POST/v1/tools/tag_contacts · Tag contacts

Cambia datosPermiso: contacts:write

Adds tags to one or more contacts.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
tagstringsí
contact_idsarray of anysí
grundstringno

POST/v1/tools/untag_contacts · Remove tags

Cambia datosPermiso: contacts:write

Removes tags from one or more contacts.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
tagstringsí
contact_idsarray of anysí

POST/v1/tools/export_contacts · Export contacts

Solo lecturaPermiso: contacts:read

Exports the contacts as CSV text.

Datos (body): {"arguments": { ... }}

Sin campos de entrada.

POST/v1/tools/update_brand · Change brand

Cambia datosPermiso: settings:write

Changes brand data: name, colors, logo, tone.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
colorstringno
tonalitystringno

POST/v1/tools/set_landing_tracking · Set tracking pixel

Cambia datosPermiso: landing:write

Sets tracking pixels (Meta, Google, TikTok) on the landing page.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
meta_pixel_idstringno
meta_capi_tokenstringno
google_idstringno
gtm_idstringno
tiktok_idstringno
tiktok_events_tokenstringno

POST/v1/tools/find_text · Find text

Solo lecturaPermiso: landing:read

Finds where a text appears: landing page, popup, templates, follow-ups and newsletters. Argument: text.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
textstringsí

POST/v1/tools/update_website_popup · Change website popup

Cambia datosPermiso: landing:writeUsa créditos como un mensaje a SmartChat AI

Changes texts, look and timing of the sign-up popup on the business website.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
headlinestringno
textstringno
buttonstringno
thanks_headlinestringno
thanks_textstringno
imageanyno
triggersarray of string ("time", "exit", "scroll")no
delay_secondsnumberno
scroll_percentnumberno

POST/v1/tools/scan_website · Scan website

Cambia datosPermiso: settings:writeUsa créditos como un mensaje a SmartChat AI

Scans the business website again and updates the stored data. Argument: url (optional).

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
urlstringsí

POST/v1/tools/set_constraint · Set a content rule

Cambia datosPermiso: settings:write

Stores a rule for all content, for example a topic that must never be mentioned.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
valuestringsí
kindstringno

POST/v1/tools/search_knowledge · Search business knowledge

Solo lecturaPermiso: settings:read

Searches the stored knowledge about the business (website, documents). Argument: query.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
querystringsí
limitnumberno

POST/v1/tools/refresh_brain · Rebuild business knowledge

Cambia datosPermiso: settings:writeUsa créditos como un mensaje a SmartChat AI

Rebuilds the stored knowledge about the business from its website and documents.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
forcebooleanno

POST/v1/tools/get_growth_plan · Get growth plan

Solo lecturaPermiso: settings:readUsa créditos como un mensaje a SmartChat AI

Returns a growth plan for the business based on its data.

Datos (body): {"arguments": { ... }}

Sin campos de entrada.

POST/v1/tools/get_next_step · Get next step

Solo lecturaPermiso: settings:read

Returns the most useful next step for the account.

Datos (body): {"arguments": { ... }}

Sin campos de entrada.

POST/v1/tools/refresh_reviews · Reload reviews

Cambia datosPermiso: landing:writeUsa créditos como un mensaje a SmartChat AI

Loads the latest Google reviews for the landing page.

Datos (body): {"arguments": { ... }}

Sin campos de entrada.

POST/v1/tools/web_research · Research on the web

Solo lecturaPermiso: settings:readUsa créditos como un mensaje a SmartChat AI

Researches a question on the web and returns sources. Argument: query.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
querystringsí
languagestringno

POST/v1/tools/list_automations · List automations

Solo lecturaPermiso: automations:read

Lists the automations with state and trigger.

Datos (body): {"arguments": { ... }}

Sin campos de entrada.

POST/v1/tools/create_automation · Create automation

Cambia datosPermiso: automations:writeUsa créditos como un mensaje a SmartChat AI

Creates an automation (trigger and actions).

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
namestringsí
trigger_typestringsí
trigger_configobjectno
actionsarray of objectsí
contact_fieldsarray of stringno
activatebooleanno

POST/v1/tools/update_automation · Change automation

Cambia datosPermiso: automations:writeUsa créditos como un mensaje a SmartChat AI

Changes an automation, or pauses and activates it.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
automation_idstringsí
namestringno
statusstringno
actionsanyno
trigger_configanyno

POST/v1/tools/test_automation · Test automation

Cambia datosPermiso: automations:write

Runs an automation once with test data.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
automation_idstringsí
sample_payloadobjectno

POST/v1/tools/get_automation_setup · Get automation setup

Solo lecturaPermiso: automations:read

Returns how an automation is connected (webhook address, fields).

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
automation_idstringsí

POST/v1/tools/connect_calendar · Connect calendar

Cambia datosPermiso: automations:write

Connects a calendar (private iCal address) to an automation.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
automation_idstringsí
calendar_urlstringno
providerstringno
lead_minutesnumberno

POST/v1/tools/get_automation_runs · Get automation runs

Solo lecturaPermiso: automations:read

Returns the latest runs of an automation.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
automation_idstringsí
limitnumberno

POST/v1/tools/delete_automation · Delete automation

Envía, somete o borraPermiso: automations:delete

Deletes an automation. First call returns a summary and confirm_token.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
automation_idstringsí
confirm_tokenstringno

POST/v1/tools/create_free_automation · Create custom automation

Cambia datosPermiso: automations:writeUsa créditos como un mensaje a SmartChat AI

Creates an automation from a custom rule. First call returns a preview; the second call with confirmed: true creates it.

Datos (body): {"arguments": { ... }}

CampoTipoObligatorioDescripción
namestringsí
regelobjectsí
actionsarray of objectsí
contact_fieldsarray of stringno
activatebooleanno
confirmedbooleanno

¿Preguntas?

Escríbenos a support@smartchat.marketing