Get connection details is a WordPress ability from SureMail — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get connection details
Read-onlyRetrieves the full non-sensitive details of a single email connection by its ID.
Requires the SureMail plugin installed on WordPress 6.9+ (for Abilities API support). Every ability also requires the current user to have the 'manage_options' capability. Abilities that create, modify, resend, or delete data are additionally gated behind separate site options: the destructive abilities (delete-connection, delete-email-logs) require the 'suremails_abilities_api_delete' option to be enabled, and the write abilities (add-connection, update-connection, send-test-email, resend-email, update-settings) require the 'suremails_abilities_api_edit' option to be enabled.
What it does
Given a connection ID obtained from list-connections, this ability returns that connection's provider type, sender email, display name, title, priority, force-from flags, and creation date. Credentials such as API keys, passwords, and OAuth tokens are always stripped before the data is returned. It throws an error if the ID does not match any existing connection. An AI assistant uses this after list-connections to drill into one specific connection's configuration.
See it in action
You ask your AI assistant
"Get the full details of the email connection with ID conn_123."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The connection ID. Obtain this from list-connections. |
Returns
An object with the connection's id, type, from_email, connection_title, priority, from_name, force_from_email, force_from_name, and created_at.
Permission
The current user must have the 'manage_options' capability.
More SureMail abilities
Add new email connection
Creates and authenticates a new email-sending connection against its provider's credentials.
Delete connection
Permanently deletes an email connection by ID, an action that cannot be undone.
Delete email logs
Permanently deletes one or more email log entries and any attachments used only by them.
Get default connection
Returns the connection that WordPress is currently using to send all outgoing emails.
Get email delivery statistics
Returns aggregate sent/failed email counts and a daily breakdown for a given date range.
Get email log details
Retrieves the full stored details of a single logged email, including its body and provider response.