DinastiAPI Status icon

DinastiAPI Status

Send WhatsApp status messages using DinastiAPI API

Overview

This node allows users to send WhatsApp status messages through the DinastiAPI service. It supports multiple types of status content including text, image, video, and audio. The "Send Audio Status" operation specifically enables sending audio clips as WhatsApp status updates, either as voice notes (push-to-talk) or regular audio files.

Common scenarios for this node include:

  • Sharing quick voice notes or audio clips as status updates.
  • Broadcasting audio announcements or music snippets to WhatsApp contacts.
  • Automating status updates with multimedia content in marketing or communication workflows.

For example, a user can upload an audio file from a previous node's binary data or provide a URL/base64 string of an audio clip, then post it as a voice note status with an optional caption.

Properties

Name Meaning
Audio Source Selects the source of the audio:
- Binary Data: Use binary data from previous node
- Base64: Provide base64 encoded audio
- URL: Provide URL to audio file
Binary Property Name of the binary property containing the audio (used if Audio Source is Binary Data)
Base64 Audio Base64 encoded audio string with data URL prefix (required if Audio Source is Base64)
Audio URL URL to the audio file (required if Audio Source is URL)
Voice Note (ptt) Boolean flag indicating whether to send the audio as a voice note (PTT) or as a regular audio file
Caption Optional caption text for the audio status
Additional Options Collection of optional parameters:
- Message ID: Custom message identifier
- Audience: Comma-separated list of recipient JIDs
- Exclude List: Comma-separated list of JIDs to exclude from viewing

Output

The node outputs JSON data representing the response from the DinastiAPI after attempting to send the audio status. Each item corresponds to one input item processed.

The output JSON structure typically includes details about the sent status message such as message IDs or error information if the request failed.

If the node encounters an error during processing and "Continue On Fail" is enabled, the output will contain an error object with the error message for that particular item.

No binary data is output by this node; it only returns JSON metadata about the status update operation.

Dependencies

  • Requires an API key credential for authenticating with the DinastiAPI service.
  • The node uses the DinastiAPI endpoint /status/send/audio to send audio statuses.
  • The prepareMediaData helper function is used internally to format binary media data correctly before sending.
  • Proper configuration of the API credential in n8n is necessary for successful requests.

Troubleshooting

  • Binary Property Not Found: If the selected binary property does not exist on the input item, the node throws an error like Binary property "xyz" not found. Ensure the binary data exists and the property name matches exactly.
  • Missing Required Fields: When using Base64 or URL as audio sources, the corresponding field (audioBase64 or audioUrl) must be provided and non-empty.
  • Invalid Audio Format: The audio MIME type defaults to audio/ogg if not specified. Using unsupported formats may cause errors on the API side.
  • API Errors: Network issues or invalid credentials will result in API request failures. Verify API key validity and network connectivity.
  • Enable "Continue On Fail" to allow the workflow to proceed even if some items fail, capturing error details in the output.

Links and References

Discussion