WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Contact → Create or Update

AI-generated

Overview

This node operation allows creating or updating a contact in the WasenderAPI system. It is useful for managing contact information within WhatsApp sessions, such as adding new contacts or modifying existing ones. For example, you can update a contact's full name or save the contact to the primary address book.

Use Case Examples

  1. Create a new contact with a specific JID and full name.
  2. Update an existing contact's full name and optionally save it to the primary address book.

Properties

Name Meaning
Session Optional session selection to specify which WhatsApp session to use for the contact operation. Can be selected from a list or by ID.
Contact The contact JID to create or update. Can be selected from a list or specified by JID.
Full Name The full name of the contact to be created or updated.
Save on Primary Address Book Boolean option to save the contact on the primary address book.
Options Additional request options such as retry behavior and maximum retry attempts for API requests.

Output

JSON

  • jid - The contact's JID (unique identifier).
  • fullName - The full name of the contact.
  • saveOnPrimaryAddressbook - Indicates if the contact is saved on the primary address book.
  • resourceType - The type of resource, here it is 'contact'.
  • resourceId - The identifier of the contact resource.
  • pictureUrl - URL of the contact's profile picture if available.
  • mimeType - MIME type of the profile picture or contact data.
  • fileName - File name of the profile picture or contact data.

Dependencies

  • Requires an API key credential for WasenderAPI to authenticate requests.

Troubleshooting

  • Common issues include missing or invalid session ID, which will cause the node to throw an error indicating that a session is required.
  • Invalid or missing contact JID will cause errors when attempting to create or update a contact.
  • If the API request fails due to network or server errors, the node supports retrying requests based on the configured retry options.

Discussion