This is the rendered version of the full Lua documentation exposed to agents when they inspect the integration namespace.
GetResponse — Lua API Reference
List contacts in your GetResponse account with pagination.
Parameters
| Name | Type | Required | Description |
|---|
page | integer | no | Page number (1-based). Default: 1 |
perPage | integer | no | Results per page (max 1000). Default: 50 |
Example
local result = app.integrations.getresponse.list_contacts({
page = 1,
perPage = 25
})
for _, contact in ipairs(result) do
print(contact.email .. " - " .. (contact.name or "N/A"))
end
Get details of a specific contact by ID.
Parameters
| Name | Type | Required | Description |
|---|
id | string | yes | The unique contact identifier |
Example
local result = app.integrations.getresponse.get_contact({
id = "abc123"
})
print(result.email)
print(result.name)
Create a new contact in GetResponse.
Parameters
| Name | Type | Required | Description |
|---|
email | string | yes | Contact email address |
name | string | no | Contact full name |
campaign | string | no | Campaign ID to assign the contact to |
Example
local result = app.integrations.getresponse.create_contact({
email = "[email protected]",
name = "John Doe",
campaign = "campaignIdHere"
})
print("Created contact: " .. result.contactId)
Update an existing contact’s details.
Parameters
| Name | Type | Required | Description |
|---|
id | string | yes | The unique contact identifier |
name | string | no | New name for the contact |
Example
local result = app.integrations.getresponse.update_contact({
id = "abc123",
name = "Jane Doe"
})
print("Contact updated")
Delete a contact from GetResponse permanently.
Parameters
| Name | Type | Required | Description |
|---|
id | string | yes | The unique contact identifier to delete |
Example
local result = app.integrations.getresponse.delete_contact({
id = "abc123"
})
print(result) -- "Contact 'abc123' has been deleted."
list_campaigns
List all campaigns in your GetResponse account.
Parameters
None.
Example
local result = app.integrations.getresponse.list_campaigns({})
for _, campaign in ipairs(result) do
print(campaign.campaignId .. " - " .. campaign.name)
end
get_campaign
Get details of a specific campaign by ID.
Parameters
| Name | Type | Required | Description |
|---|
id | string | yes | The unique campaign identifier |
Example
local result = app.integrations.getresponse.get_campaign({
id = "campaignIdHere"
})
print(result.name)
create_campaign
Create a new email campaign in GetResponse.
Parameters
| Name | Type | Required | Description |
|---|
name | string | yes | Name for the new campaign |
Example
local result = app.integrations.getresponse.create_campaign({
name = "Q1 Newsletter"
})
print("Created campaign: " .. result.campaignId)
list_newsletters
List newsletters in your GetResponse account.
Parameters
None.
Example
local result = app.integrations.getresponse.list_newsletters({})
for _, newsletter in ipairs(result) do
print(newsletter.subject .. " (" .. newsletter.status .. ")")
end
get_current_user
Get the authenticated user’s account information.
Parameters
None.
Example
local result = app.integrations.getresponse.get_current_user({})
print("Account: " .. result.email)
print("Name: " .. (result.firstName or "") .. " " .. (result.lastName or ""))
Multi-Account Usage
If you have multiple GetResponse accounts configured, use account-specific namespaces:
-- Default account (always works)
app.integrations.getresponse.list_contacts({})
-- Explicit default (portable across setups)
app.integrations.getresponse.default.list_contacts({})
-- Named accounts
app.integrations.getresponse.marketing.list_contacts({})
app.integrations.getresponse.sales.list_contacts({})
All functions are identical across accounts — only the credentials differ.