Pengo

App · 21 actions

Work your Pengo chat inbox: read and answer conversations, keep contacts up to date and feed Pengo's AI the documents it answers from.

Actions

ActionWhat it does
Add noteAdd an internal note to a conversation that only your team sees.
Add or update knowledge documentSend Pengo a document to answer from, or update the one with the same reference.
Create or update contactAdd a contact, or update the one with the same email.
Erase contactErase a person for a data request: their messages, files, leads and bookings are deleted.
Get contactGet one contact.
Get conversationGet one conversation.
Get visitorGet one visitor with their attributes and company.
List agentsList the people in your workspace, with their user IDs.
List audit logList one page of your workspace's audit log, newest first.
List contactsList one page of contacts, newest first.
List conversationsList one page of conversations, newest first.
List knowledge documentsList one page of the documents sent through the API, newest first.
List knowledge sourcesList the website's knowledge sources filled through the API.
List messagesList one page of a conversation's messages, oldest first.
List tagsList the website's conversation tags.
List visitorsList one page of visitors, most recently seen first.
Remove knowledge documentRemove a document; Pengo stops answering from it at once.
Send messageSend a message in a conversation, as an agent or as the bot.
Update contactChange a contact's name, email, phone, company or attributes.
Update conversationChange a conversation's status, assignee, priority, tags or fields.
Update visitorChange a visitor's name, email, phone or attributes; the site's own code can't overwrite them.

Add note

Add an internal note to a conversation that only your team sees.

Inputs

Conversation IDidtextRequired
The conversation, from List conversations.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
NotecontenttextRequired
The text, up to 10,000 characters.
Authorauthor_idtext
The agent writing it. Leave empty for the key's creator.
Pin itis_pinnedtrue/false
Whether to pin the note.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "author_id": "9c8b7a6d-0000-4000-8000-000000000003",
      "content": "Customer prefers email.",
      "conversation_id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
      "created_at": "2026-10-19T09:30:12.101Z",
      "id": "1b2c3d4e-0000-4000-8000-00000000000a",
      "is_pinned": false,
      "updated_at": "2026-10-19T09:30:12.101Z"
    }
  }
}

Add or update knowledge document

Send Pengo a document to answer from, or update the one with the same reference.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Referenceexternal_idtextRequired
Your own ID for the document, unique in its source.
TitletitletextRequired
Its title.
ContentcontenttextRequired
The text, as Markdown or HTML, up to 200,000 characters.
Formatformattext
Markdown (the default) or HTML.One of: markdown, html.
Addressurltext
Where the document lives.
Link to itis_publictrue/false
Whether answers may link to its address. Only for anyone.
Who it is foraudiencetext
Who may be answered from it. Leave empty for anyone.One of: public (Anyone), verified (Verified customers), internal (Your team only).
Channelschannelslist
The channels whose answers may use it. Leave empty for all.One or more of: chat, email, whatsapp, sms, messenger, instagram.
Languagelanguagetext
Its language code, such as en.
Sourcesourcetext
The API source to put it in. Leave empty for API.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "created": true,
    "data": {
      "audience": "public",
      "channels": [
        "chat"
      ],
      "char_count": 42,
      "created_at": "2026-10-19T09:30:12.101Z",
      "enabled": true,
      "external_id": "kb-article-1042",
      "id": "4d5e6f70-0000-4000-8000-000000000007",
      "indexed_at": "2026-10-19T09:30:12.101Z",
      "is_public": true,
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "source_id": "6f708192-0000-4000-8000-000000000008",
      "status": "active",
      "title": "Shipping to Canada",
      "updated_at": "2026-10-19T09:30:12.101Z",
      "url": "https://example.com/help/shipping"
    },
    "result": "indexed"
  }
}

Create or update contact

Add a contact, or update the one with the same email.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
EmailemailtextRequired
Their email. If a contact has it, that contact is updated.
Namenametext
Their name.
Phonephonetext
Their phone number.
Companycompanytext
Their company.
Attributesattributesobject
Values by key: text, numbers or yes/no. They merge into the saved ones.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "created": true,
    "data": {
      "attributes": {},
      "company": "Analytical Engines",
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "email": "ada@example.com",
      "external_id": "user_42",
      "first_seen_at": "2026-10-19T09:30:12.101Z",
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": false,
      "last_chat_at": "2026-10-19T09:30:12.101Z",
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "tags": [
        "vip"
      ],
      "total_chats": 3,
      "updated_at": "2026-10-19T09:30:12.101Z"
    }
  }
}

Erase contact

Erase a person for a data request: their messages, files, leads and bookings are deleted. It can't be undone.

Inputs

Contact IDidtextRequired
The contact, from List contacts.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "chats_anonymized": 1,
      "deleted": true,
      "files_deleted": 0,
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "leads_deleted": 0,
      "messages_deleted": 4
    }
  }
}

Get contact

Get one contact.

Inputs

Contact IDidtextRequired
The contact, from List contacts.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "attributes": {},
      "company": "Analytical Engines",
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "email": "ada@example.com",
      "external_id": "user_42",
      "first_seen_at": "2026-10-19T09:30:12.101Z",
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": false,
      "last_chat_at": "2026-10-19T09:30:12.101Z",
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "tags": [
        "vip"
      ],
      "total_chats": 3,
      "updated_at": "2026-10-19T09:30:12.101Z"
    }
  }
}

Get conversation

Get one conversation.

Inputs

Conversation IDidtextRequired
The conversation, from List conversations.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "assigned_to": "9c8b7a6d-0000-4000-8000-000000000003",
      "channel": "web",
      "created_at": "2026-10-19T09:30:12.101Z",
      "custom_fields": {},
      "first_response_at": "2026-10-19T09:30:12.101Z",
      "id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
      "last_message": "Do you ship to Canada?",
      "last_message_at": "2026-10-19T09:30:12.101Z",
      "priority": "normal",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "rating": 5,
      "resolved_at": "2026-10-19T09:30:12.101Z",
      "status": "open",
      "tags": [
        "shipping"
      ],
      "team_id": "1a2b3c4d-0000-4000-8000-000000000004",
      "updated_at": "2026-10-19T09:30:12.101Z",
      "visitor_email": "ada@example.com",
      "visitor_id": "5b6c7d8e-0000-4000-8000-000000000002",
      "visitor_name": "Ada"
    }
  }
}

Get visitor

Get one visitor with their attributes and company.

Inputs

Visitor IDidtextRequired
The visitor, from List visitors.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "company": {
        "attributes": {},
        "domain": "example.com",
        "id": "2c3d4e5f-0000-4000-8000-000000000006",
        "name": "Analytical Engines"
      },
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "custom_attributes": {},
      "email": "ada@example.com",
      "has_active_chat": false,
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": true,
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "tags": [
        "vip"
      ]
    }
  }
}

List agents

List the people in your workspace, with their user IDs.

Inputs

Website IDproperty_idtext
Only people who can be assigned this website's conversations, by the propertyId in your install snippet.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "availability_status": "online",
        "avatar_url": "https://example.com/grace.png",
        "email": "grace@example.com",
        "id": "9c8b7a6d-0000-4000-8000-000000000003",
        "joined_at": "2026-10-19T09:30:12.101Z",
        "name": "Grace Hopper",
        "role": "agent",
        "website_scope": "all"
      }
    ]
  }
}

List audit log

List one page of your workspace's audit log, newest first.

Inputs

Website IDproperty_idtext
Only this website's entries, by the propertyId in your install snippet.
Actionaction_nametext
Only this action, such as settings.updated.
Done byactor_idtext
Only entries by this person.
Fromsincedate and time
Only entries from this time.
Untiluntildate and time
Only entries up to this time.
Page sizelimitnumber
How many to return, from 1 to 100.From 1 to 100.
Next pagecursortext
The next_cursor from the page before, to read the page after it.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "action": "settings.updated",
        "actor_email": "grace@example.com",
        "actor_id": "9c8b7a6d-0000-4000-8000-000000000003",
        "created_at": "2026-10-19T09:30:12.101Z",
        "id": "2d3e4f50-0000-4000-8000-00000000000b",
        "ip_address": "203.0.113.7",
        "metadata": {},
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "target_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "target_type": "property",
        "user_agent": "Mozilla/5.0"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}

List contacts

List one page of contacts, newest first.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Emailemailtext
Only the contact with this email.
Include anonymous visitorsinclude_anonymoustrue/false
Yes to also list visitors without an email.
Page sizelimitnumber
How many to return, from 1 to 100.From 1 to 100.
Next pagecursortext
The next_cursor from the page before, to read the page after it.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {},
        "company": "Analytical Engines",
        "country_code": "GB",
        "created_at": "2026-10-19T09:30:12.101Z",
        "email": "ada@example.com",
        "external_id": "user_42",
        "first_seen_at": "2026-10-19T09:30:12.101Z",
        "id": "5b6c7d8e-0000-4000-8000-000000000002",
        "is_online": false,
        "last_chat_at": "2026-10-19T09:30:12.101Z",
        "last_seen_at": "2026-10-19T09:30:12.101Z",
        "name": "Ada Lovelace",
        "phone": "+15555550123",
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "tags": [
          "vip"
        ],
        "total_chats": 3,
        "updated_at": "2026-10-19T09:30:12.101Z"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}

List conversations

List one page of conversations, newest first.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Statusstatustext
Only conversations with this status.One of: open, pending, snoozed, resolved.
Assigned toassigned_totext
Only conversations assigned to this agent.
Team IDteamtext
Only conversations routed to this team.
Page sizelimitnumber
How many to return, from 1 to 100.From 1 to 100.
Next pagecursortext
The next_cursor from the page before, to read the page after it.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "assigned_to": "9c8b7a6d-0000-4000-8000-000000000003",
        "channel": "web",
        "created_at": "2026-10-19T09:30:12.101Z",
        "custom_fields": {},
        "first_response_at": "2026-10-19T09:30:12.101Z",
        "id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
        "last_message": "Do you ship to Canada?",
        "last_message_at": "2026-10-19T09:30:12.101Z",
        "priority": "normal",
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "rating": 5,
        "resolved_at": "2026-10-19T09:30:12.101Z",
        "status": "open",
        "tags": [
          "shipping"
        ],
        "team_id": "1a2b3c4d-0000-4000-8000-000000000004",
        "updated_at": "2026-10-19T09:30:12.101Z",
        "visitor_email": "ada@example.com",
        "visitor_id": "5b6c7d8e-0000-4000-8000-000000000002",
        "visitor_name": "Ada"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}

List knowledge documents

List one page of the documents sent through the API, newest first.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Sourcesourcetext
Only documents in the source with this name.
Referenceexternal_idtext
Only the document with this reference.
Page sizelimitnumber
How many to return, from 1 to 100.From 1 to 100.
Next pagecursortext
The next_cursor from the page before, to read the page after it.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "audience": "public",
        "channels": [
          "chat"
        ],
        "char_count": 42,
        "created_at": "2026-10-19T09:30:12.101Z",
        "enabled": true,
        "external_id": "kb-article-1042",
        "id": "4d5e6f70-0000-4000-8000-000000000007",
        "indexed_at": "2026-10-19T09:30:12.101Z",
        "is_public": true,
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "source_id": "6f708192-0000-4000-8000-000000000008",
        "status": "active",
        "title": "Shipping to Canada",
        "updated_at": "2026-10-19T09:30:12.101Z",
        "url": "https://example.com/help/shipping"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}

List knowledge sources

List the website's knowledge sources filled through the API.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "char_count": 42,
        "chunk_count": 1,
        "created_at": "2026-10-19T09:30:12.101Z",
        "document_count": 1,
        "enabled": true,
        "id": "6f708192-0000-4000-8000-000000000008",
        "last_pushed_at": "2026-10-19T09:30:12.101Z",
        "name": "API",
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001"
      }
    ]
  }
}

List messages

List one page of a conversation's messages, oldest first.

Inputs

Conversation IDidtextRequired
The conversation, from List conversations.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Page sizelimitnumber
How many to return, from 1 to 100.From 1 to 100.
Next pagecursortext
The next_cursor from the page before, to read the page after it.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "chat_id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
        "client_message_id": "refund-4821",
        "content": "Thanks, your refund is on its way.",
        "created_at": "2026-10-19T09:30:12.101Z",
        "id": "7e8f9a0b-0000-4000-8000-000000000005",
        "sender_id": "9c8b7a6d-0000-4000-8000-000000000003",
        "sender_type": "agent"
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}

List tags

List the website's conversation tags.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "color": "#00a8e0",
        "created_at": "2026-10-19T09:30:12.101Z",
        "id": "0a1b2c3d-0000-4000-8000-000000000009",
        "name": "shipping",
        "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
        "usage_count": 12
      }
    ]
  }
}

List visitors

List one page of visitors, most recently seen first.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Onlineis_onlinetrue/false
Yes for only visitors on the site now, no for only those who are not.
Chattinghas_active_chattrue/false
Yes for only visitors chatting now, no for only those who are not.
Page sizelimitnumber
How many to return, from 1 to 100.From 1 to 100.
Next pagecursortext
The next_cursor from the page before, to read the page after it.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": [
      {
        "company": "Analytical Engines",
        "company_id": "2c3d4e5f-0000-4000-8000-000000000006",
        "country_code": "GB",
        "created_at": "2026-10-19T09:30:12.101Z",
        "custom_attributes": {},
        "email": "ada@example.com",
        "has_active_chat": false,
        "id": "5b6c7d8e-0000-4000-8000-000000000002",
        "is_online": true,
        "last_seen_at": "2026-10-19T09:30:12.101Z",
        "name": "Ada Lovelace",
        "phone": "+15555550123",
        "tags": [
          "vip"
        ]
      }
    ],
    "pagination": {
      "has_more": true,
      "limit": 50,
      "next_cursor": "eyJ0IjoiMjAyNi0xMC0xOVQwOTozMDoxMi4xMDFaIn0"
    }
  }
}

Remove knowledge document

Remove a document; Pengo stops answering from it at once.

Inputs

Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Document IDidtext
The document's Pengo ID. Give this or its reference.
Referenceexternal_idtext
Your own ID for the document.
Sourcesourcetext
The source the reference is in. Leave empty for API.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "audience": "public",
      "channels": [
        "chat"
      ],
      "char_count": 42,
      "created_at": "2026-10-19T09:30:12.101Z",
      "enabled": true,
      "external_id": "kb-article-1042",
      "id": "4d5e6f70-0000-4000-8000-000000000007",
      "indexed_at": "2026-10-19T09:30:12.101Z",
      "is_public": true,
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "source_id": "6f708192-0000-4000-8000-000000000008",
      "status": "active",
      "title": "Shipping to Canada",
      "updated_at": "2026-10-19T09:30:12.101Z",
      "url": "https://example.com/help/shipping"
    },
    "deleted": true
  }
}

Send message

Send a message in a conversation, as an agent or as the bot.

Inputs

Conversation IDidtextRequired
The conversation, from List conversations.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
MessagecontenttextRequired
The text, up to 10,000 characters.
Send assender_typetext
An agent (the default) or the bot.One of: agent, bot.
Agentsender_idtext
The agent sending it. Needed when sending as an agent.
Message referenceclient_message_idtext
Your own ID for the message, so a retry doesn't send it twice.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "chat_id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
      "client_message_id": "refund-4821",
      "content": "Thanks, your refund is on its way.",
      "created_at": "2026-10-19T09:30:12.101Z",
      "id": "7e8f9a0b-0000-4000-8000-000000000005",
      "sender_id": "9c8b7a6d-0000-4000-8000-000000000003",
      "sender_type": "agent"
    }
  }
}

Update contact

Change a contact's name, email, phone, company or attributes.

Inputs

Contact IDidtextRequired
The contact, from List contacts.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Emailemailtext
Their email.
Namenametext
Their name.
Phonephonetext
Their phone number.
Companycompanytext
Their company.
Attributesattributesobject
Values by key: text, numbers or yes/no. They merge into the saved ones.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "attributes": {},
      "company": "Analytical Engines",
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "email": "ada@example.com",
      "external_id": "user_42",
      "first_seen_at": "2026-10-19T09:30:12.101Z",
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": false,
      "last_chat_at": "2026-10-19T09:30:12.101Z",
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "tags": [
        "vip"
      ],
      "total_chats": 3,
      "updated_at": "2026-10-19T09:30:12.101Z"
    }
  }
}

Update conversation

Change a conversation's status, assignee, priority, tags or fields.

Inputs

Conversation IDidtextRequired
The conversation, from List conversations.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Statusstatustext
The new status.One of: open, pending, snoozed, resolved.
Assign toassigned_totext
The agent to assign it to.
Priorityprioritytext
The new priority.One of: urgent, high, normal, low.
Tagstagslist
The full list of tags, up to 20. It replaces the current ones.
Conversation fieldscustom_fieldsobject
Field values by key. Only the fields you name change.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "assigned_to": "9c8b7a6d-0000-4000-8000-000000000003",
      "channel": "web",
      "created_at": "2026-10-19T09:30:12.101Z",
      "custom_fields": {},
      "first_response_at": "2026-10-19T09:30:12.101Z",
      "id": "3f6d1c2e-9a8b-4c7d-a6e5-0f1e2d3c4b5a",
      "last_message": "Do you ship to Canada?",
      "last_message_at": "2026-10-19T09:30:12.101Z",
      "priority": "normal",
      "property_id": "8a1b2c3d-0000-4000-8000-000000000001",
      "rating": 5,
      "resolved_at": "2026-10-19T09:30:12.101Z",
      "status": "open",
      "tags": [
        "shipping"
      ],
      "team_id": "1a2b3c4d-0000-4000-8000-000000000004",
      "updated_at": "2026-10-19T09:30:12.101Z",
      "visitor_email": "ada@example.com",
      "visitor_id": "5b6c7d8e-0000-4000-8000-000000000002",
      "visitor_name": "Ada"
    }
  }
}

Update visitor

Change a visitor's name, email, phone or attributes; the site's own code can't overwrite them.

Inputs

Visitor IDidtextRequired
The visitor, from List visitors.
Website IDproperty_idtext
The website to work on, the propertyId in your install snippet. Leave empty when you have one website.
Namenametext
Their name.
Emailemailtext
Their email.
Phonephonetext
Their phone number.
Attributesattributesobject
Values by key: text, numbers or yes/no. They merge into the saved ones.

Outputs

dataobject
The response from Pengo.
Example output
{
  "data": {
    "data": {
      "company": {
        "attributes": {},
        "domain": "example.com",
        "id": "2c3d4e5f-0000-4000-8000-000000000006",
        "name": "Analytical Engines"
      },
      "country_code": "GB",
      "created_at": "2026-10-19T09:30:12.101Z",
      "custom_attributes": {},
      "email": "ada@example.com",
      "has_active_chat": false,
      "id": "5b6c7d8e-0000-4000-8000-000000000002",
      "is_online": true,
      "last_seen_at": "2026-10-19T09:30:12.101Z",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "tags": [
        "vip"
      ]
    }
  }
}

On this page