Endpoint strumenti AI

POST /v1/tools/{name} esegue direttamente uno strumento di SmartChat AI, senza modello AI in mezzo. I testi che invii vengono usati parola per parola. GET /v1/tools elenca tutti gli strumenti con lo schema e se la tua chiave può usarli.

Il riferimento tecnico qui sotto è in inglese, esattamente come nomi e campi appaiono nell'API e in 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": { ... }}

Azioni in due passi

Gli strumenti che inviano, programmano, sottomettono o eliminano restituiscono prima un'anteprima e un confirm_token. Richiama lo stesso strumento con confirm_token per eseguire. Alla prima chiamata non succede nulla.

59 tools

POST/v1/tools/get_overview · Get account overview

Solo letturaPermesso: stats:read

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

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

Nessun campo di input.

POST/v1/tools/list_media · List media

Solo letturaPermesso: media:read

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

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

Nessun campo di input.

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

Modifica datiPermesso: media:write

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

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

CampoTipoObbligatorioDescrizione
media_idstringsì

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

Modifica datiPermesso: landing:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
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

Modifica datiPermesso: landing:write

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

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

CampoTipoObbligatorioDescrizione
positionanysì
querystringno

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

Solo letturaPermesso: landing:read

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

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

CampoTipoObbligatorioDescrizione
positionanyno

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

Modifica datiPermesso: landing:writeUsa crediti come un messaggio a SmartChat AI

Adds a block (section) to the landing page.

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

CampoTipoObbligatorioDescrizione
typestringsì
dataobjectno
variantstringno
tonstringno
positionanyno
stilarray of objectno

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

Invia, sottomette o eliminaPermesso: landing:write

Removes a block from the landing page.

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

CampoTipoObbligatorioDescrizione
positionanysì

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

Modifica datiPermesso: landing:write

Moves a block to another position on the landing page.

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

CampoTipoObbligatorioDescrizione
fromanysì
toanysì

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

Modifica datiPermesso: landing:write

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

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

CampoTipoObbligatorioDescrizione
radiusanyno
shadowanyno
spacinganyno
widthanyno
buttonanyno
imageanyno
stilarray of objectno

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

Modifica datiPermesso: landing:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
positionanysì
karteanyno
dataobjectno
variantstringno
tonstringno
stilarray of objectno

POST/v1/tools/publish_landing · Publish landing page

Invia, sottomette o eliminaPermesso: landing:write

Publishes the landing page so the changes are live.

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

Nessun campo di input.

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

Modifica datiPermesso: followups:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
namestringsì
stepsarray of objectsì
activatebooleanno
verbatimarray of stringno

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

Modifica datiPermesso: followups:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
step_idstringsì
contentstringno
subjectstringno
delay_hoursnumberno
verbatimarray of stringno

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

Modifica datiPermesso: followups:writeUsa crediti come un messaggio a SmartChat AI

Adds a message to a follow-up sequence.

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

CampoTipoObbligatorioDescrizione
sequence_idstringsì
channelstringno
delay_hoursnumberno
contentstringsì
buttonanyno
mediaobjectno
verbatimarray of stringno

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

Invia, sottomette o eliminaPermesso: followups:write

Deletes one message from a follow-up sequence.

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

CampoTipoObbligatorioDescrizione
step_idstringsì

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

Modifica datiPermesso: followups:write

Renames a follow-up sequence.

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

CampoTipoObbligatorioDescrizione
sequence_idstringsì
namestringsì

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

Modifica datiPermesso: followups:write

Pauses or starts a follow-up sequence.

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

CampoTipoObbligatorioDescrizione
sequence_idstringsì
statusstring ("active", "paused")sì

POST/v1/tools/create_newsletter · Create newsletter

Modifica datiPermesso: newsletters:writeUsa crediti come un messaggio 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.

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

CampoTipoObbligatorioDescrizione
subjectstringsì
contentstringsì
channelstringno
mediaobjectno
ctaobjectno
segmentobjectno

POST/v1/tools/update_newsletter · Change newsletter

Modifica datiPermesso: newsletters:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
newsletter_idstringsì
subjectstringno
contentstringno
mediaanyno
ctaanyno
segmentanyno

POST/v1/tools/send_newsletter · Send newsletter now

Invia, sottomette o eliminaPermesso: 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.

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

CampoTipoObbligatorioDescrizione
newsletter_idstringsì
confirm_tokenstringno

POST/v1/tools/test_newsletter · Send test newsletter

Invia, sottomette o eliminaPermesso: newsletters:schedule

Sends a newsletter to the test phone number only.

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

CampoTipoObbligatorioDescrizione
newsletter_idstringsì
tostringno

POST/v1/tools/schedule_newsletter · Schedule newsletter

Invia, sottomette o eliminaPermesso: newsletters:schedule

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

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

CampoTipoObbligatorioDescrizione
newsletter_idstringsì
scheduled_atstringsì
confirm_tokenstringno

POST/v1/tools/cancel_newsletter · Cancel newsletter

Invia, sottomette o eliminaPermesso: newsletters:schedule

Cancels a scheduled newsletter.

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

CampoTipoObbligatorioDescrizione
newsletter_idstringsì

POST/v1/tools/get_newsletter · Get newsletter

Solo letturaPermesso: newsletters:read

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

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

CampoTipoObbligatorioDescrizione
newsletter_idstringsì

POST/v1/tools/create_template · Create template

Modifica datiPermesso: templates:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
namestringsì
channelstringno
contentstringsì
subjectstringno
buttonsarray of anyno
mediaobjectno
verbatimarray of stringno

POST/v1/tools/update_template · Change template

Modifica datiPermesso: templates:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
template_idstringsì
namestringno
contentstringno
subjectstringno
buttonsanyno
mediaanyno
verbatimarray of stringno

POST/v1/tools/delete_template · Delete template

Invia, sottomette o eliminaPermesso: templates:delete

Deletes a template.

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

CampoTipoObbligatorioDescrizione
template_idstringsì

POST/v1/tools/submit_all_templates · Submit all templates

Invia, sottomette o eliminaPermesso: templates:submit

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

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

CampoTipoObbligatorioDescrizione
confirm_tokenstringno

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

Invia, sottomette o eliminaPermesso: templates:submit

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

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

CampoTipoObbligatorioDescrizione
template_idstringsì
confirm_tokenstringno

POST/v1/tools/get_stats · Get statistics

Solo letturaPermesso: stats:read

Returns the key figures of the account.

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

CampoTipoObbligatorioDescrizione
rangestring ("7d", "30d", "90d")no

POST/v1/tools/list_contacts · List contacts

Solo letturaPermesso: contacts:read

Lists contacts with their opt-in state and tags.

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

CampoTipoObbligatorioDescrizione
typestringno
searchstringno

POST/v1/tools/add_contact · Add contact

Modifica datiPermesso: contacts:write

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

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

CampoTipoObbligatorioDescrizione
namestringno
emailstringno
phonestringno

POST/v1/tools/resend_optin_confirmation · Resend confirmation

Invia, sottomette o eliminaPermesso: messages:write

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

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

CampoTipoObbligatorioDescrizione
contact_idstringsì
confirm_tokenstringno

POST/v1/tools/tag_contacts · Tag contacts

Modifica datiPermesso: contacts:write

Adds tags to one or more contacts.

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

CampoTipoObbligatorioDescrizione
tagstringsì
contact_idsarray of anysì
grundstringno

POST/v1/tools/untag_contacts · Remove tags

Modifica datiPermesso: contacts:write

Removes tags from one or more contacts.

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

CampoTipoObbligatorioDescrizione
tagstringsì
contact_idsarray of anysì

POST/v1/tools/export_contacts · Export contacts

Solo letturaPermesso: contacts:read

Exports the contacts as CSV text.

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

Nessun campo di input.

POST/v1/tools/update_brand · Change brand

Modifica datiPermesso: settings:write

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

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

CampoTipoObbligatorioDescrizione
colorstringno
tonalitystringno

POST/v1/tools/set_landing_tracking · Set tracking pixel

Modifica datiPermesso: landing:write

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

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

CampoTipoObbligatorioDescrizione
meta_pixel_idstringno
meta_capi_tokenstringno
google_idstringno
gtm_idstringno
tiktok_idstringno
tiktok_events_tokenstringno

POST/v1/tools/find_text · Find text

Solo letturaPermesso: landing:read

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

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

CampoTipoObbligatorioDescrizione
textstringsì

POST/v1/tools/update_website_popup · Change website popup

Modifica datiPermesso: landing:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
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

Modifica datiPermesso: settings:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
urlstringsì

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

Modifica datiPermesso: settings:write

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

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

CampoTipoObbligatorioDescrizione
valuestringsì
kindstringno

POST/v1/tools/search_knowledge · Search business knowledge

Solo letturaPermesso: settings:read

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

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

CampoTipoObbligatorioDescrizione
querystringsì
limitnumberno

POST/v1/tools/refresh_brain · Rebuild business knowledge

Modifica datiPermesso: settings:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
forcebooleanno

POST/v1/tools/get_growth_plan · Get growth plan

Solo letturaPermesso: settings:readUsa crediti come un messaggio a SmartChat AI

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

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

Nessun campo di input.

POST/v1/tools/get_next_step · Get next step

Solo letturaPermesso: settings:read

Returns the most useful next step for the account.

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

Nessun campo di input.

POST/v1/tools/refresh_reviews · Reload reviews

Modifica datiPermesso: landing:writeUsa crediti come un messaggio a SmartChat AI

Loads the latest Google reviews for the landing page.

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

Nessun campo di input.

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

Solo letturaPermesso: settings:readUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
querystringsì
languagestringno

POST/v1/tools/list_automations · List automations

Solo letturaPermesso: automations:read

Lists the automations with state and trigger.

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

Nessun campo di input.

POST/v1/tools/create_automation · Create automation

Modifica datiPermesso: automations:writeUsa crediti come un messaggio a SmartChat AI

Creates an automation (trigger and actions).

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

CampoTipoObbligatorioDescrizione
namestringsì
trigger_typestringsì
trigger_configobjectno
actionsarray of objectsì
contact_fieldsarray of stringno
activatebooleanno

POST/v1/tools/update_automation · Change automation

Modifica datiPermesso: automations:writeUsa crediti come un messaggio a SmartChat AI

Changes an automation, or pauses and activates it.

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

CampoTipoObbligatorioDescrizione
automation_idstringsì
namestringno
statusstringno
actionsanyno
trigger_configanyno

POST/v1/tools/test_automation · Test automation

Modifica datiPermesso: automations:write

Runs an automation once with test data.

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

CampoTipoObbligatorioDescrizione
automation_idstringsì
sample_payloadobjectno

POST/v1/tools/get_automation_setup · Get automation setup

Solo letturaPermesso: automations:read

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

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

CampoTipoObbligatorioDescrizione
automation_idstringsì

POST/v1/tools/connect_calendar · Connect calendar

Modifica datiPermesso: automations:write

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

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

CampoTipoObbligatorioDescrizione
automation_idstringsì
calendar_urlstringno
providerstringno
lead_minutesnumberno

POST/v1/tools/get_automation_runs · Get automation runs

Solo letturaPermesso: automations:read

Returns the latest runs of an automation.

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

CampoTipoObbligatorioDescrizione
automation_idstringsì
limitnumberno

POST/v1/tools/delete_automation · Delete automation

Invia, sottomette o eliminaPermesso: automations:delete

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

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

CampoTipoObbligatorioDescrizione
automation_idstringsì
confirm_tokenstringno

POST/v1/tools/create_free_automation · Create custom automation

Modifica datiPermesso: automations:writeUsa crediti come un messaggio a SmartChat AI

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

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

CampoTipoObbligatorioDescrizione
namestringsì
regelobjectsì
actionsarray of objectsì
contact_fieldsarray of stringno
activatebooleanno
confirmedbooleanno

Domande?

Scrivici a support@smartchat.marketing