Validation messages are the part of a form a visitor actually reads, and usually the part nobody has looked at since the form was created.
contact-form-7/get-messages returns all of them with the current text next to Contact Form 7’s default, so which ones have been customised is obvious at a glance.
At a glance
| Ability | contact-form-7/get-messages |
| Toolset | Contact Form 7 — toolset/contact-form-7 |
| Group | Contact Form 7 › Validation Messages |
| Requires | Contact Form 7, active on the site |
| Capability | manage_options, plus read_contact_forms |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
Messages are addressed by slug — mail_sent_ok, invalid_required, validation_error and so on. Those slugs are what contact-form-7/update-messages expects, so this is also the way to discover valid ones.
The default shown alongside is the one Contact Form 7 ships in the site’s locale, which makes it easy to spot a message someone translated by hand and then forgot.
Messages are per form, not global. Two forms on the same site can say completely different things on success.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
form_id | integer | Yes | Form post ID, as returned by contact-form-7/list-forms. |
What comes back
| Name | Type | What it is |
|---|---|---|
form_id | integer | The form that was read. |
messages | array | One entry per message: slug, current text and Contact Form 7’s default. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation. |
Example
Ask your assistant:
What does form 42 say to someone after they submit it?
It resolves to one call:
{
"ability": "contact-form-7/get-messages",
"parameters": {
"form_id": 42
}
}Worth knowing
- This is the list of valid slugs for
contact-form-7/update-messages. - Messages are per form. Changing one form leaves the others alone.
- The success message is the one visitors see most and the one most often left at the default.
Related abilities
- Update Contact Form Messages — change what they say
- Get Contact Form — messages in the context of the whole form
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category