A Postman walkthrough for creating a chat and sending customer messages into Five9. No website or demo server is included or required to run the collection. Your Five9 delivery configuration still controls outbound delivery and webhooks.
- Demo-ready Postman collection
- Five9 Open Messaging API reference
- Download the OpenAPI YAML specification
- Open Messaging configuration guide
- Configuring API Access Control
Use the JSON collection for the demo. Importing the YAML into Postman generates API requests, but does not include this collection's demo payloads, ordering, variable checks, or automatic ID capture.
The specification is hosted by Five9 rather than bundled in this repository.
A local download named open-messaging-api.yaml is ignored by Git.
- Postman with support for
pm.execution.skipRequest(). - A Five9 test domain with Open Messaging enabled and API access configured.
- An appropriate messaging campaign and delivery profile.
- An available agent if you want to demonstrate routing and agent replies.
Open Messaging requires a license and may incur consumption-based charges. Use synthetic customer information for demonstrations.
These repositories contain sample code which is not an official Five9 resource. They are intended solely for educational and illustrative purposes to demonstrate possible ways to interact with Five9 APIs.
Under the MIT License:
- These are not officially endorsed or supported software by Five9.
- Any customizations, modifications, or deployments made with code shared here are done at your own risk and sole responsibility.
- The code may not account for all use cases or meet specific requirements without further development.
- Five9 assumes no liability and provides no support for issues arising from the use of this code.
For production-ready tailored implementations, we strongly recommend working with Five9��s Professional Services and Technical Account Management teams.
-
Download and import the JSON collection into Postman.
-
Open the collection's Variables tab and configure:
Variable Value baseUrlAPI origin for your region/environment, without a trailing slash. See the hosted YAML specification's serverslist.domainIdYour test domain ID. campaignNameExact name of the messaging campaign. Replaces the old chatCampaignNamevariable.deliveryProfileIdYour configured delivery profile ID. authSecretYour API secret, kept local. authKeyYour API key, kept local. channelDefaults to GENERIC; must match your campaign/profile configuration. -
Optionally customize
clientHandle,subject,question, andmessageText. The subject and question provide chat context; Add a message to a chat sends the customer message. -
Send 00 - Authentication / authentication. A successful response saves
bearerTokenautomatically. The request preserves the original collection's Basic authentication convention:base64(authSecret:authKey). Alternatively, set a validbearerTokenlocally and skip authentication.
Use collection variables for this walkthrough. Remove conflicting values from active environments and Runner data files so they do not override the settings or captured IDs.
Run only the 01 - Text chat demo folder, or send its requests individually
in order:
- Create a new chat - captures
chatIdand the USER participant ID. - Retrieve chat details - inspect the chat and refresh the participant ID.
- Show typing indicator.
- Add a message to a chat - sends
messageTextand capturesmessageId. - List all messages in a chat - inspect the conversation.
- Retrieve a chat message - inspect the customer message just sent.
- Retrieve chat interaction history.
Have the agent reply in Five9, then send List all messages in a chat again
to inspect available messages. Change messageText and repeat Add a message
to a chat to continue. There is no automatic polling or webhook listener.
If Five9 has not returned a USER participant, retrieve chat details again.
You can also set sourceParticipantId manually from the USER participant in
that response; do not use an agent participant ID.
Set allowDestructiveActions to true, then send 05 - Edit and cleanup
(manual) / Terminate chat. Expect HTTP 204. Successful termination clears
the runtime IDs and resets the opt-in to false.
Creating another chat does not terminate the previous one. End the previous chat first to avoid leaving demo sessions open.
The delivery method and postback destination configured in Five9 determine where outbound messages and events are delivered. The collection does not change that configuration or implement a receiver.
Configure your endpoint according to the Five9 Open Messaging documentation. A successful API request is not, by itself, proof that an outbound message was delivered or read by a customer.
Do not run the whole collection as a single sequence:
- 02 - Optional inspection: retrieve chat extensions.
- 03 - Optional attachments: create attachment metadata and inspect it. Creating metadata does not upload content; follow the upload instructions inside the request before referencing the attachment in a message.
- 04 - Optional outbound acknowledgments: set
outboundMessageIdfrom a real outbound message or webhook event. Send only the acknowledgment matching the actual delivery state, not every request in this folder. - 05 - Edit and cleanup (manual): update/delete messages or terminate a chat.
These actions require
allowDestructiveActions=true; reset it afterwards.
- Missing variable: configure the named collection variable, or run the authentication/create-chat step that supplies it.
- Variable override: remove the conflicting environment or Runner value.
- HTTP 401: authenticate again.
- HTTP 403: check API access permissions and the selected domain.
- HTTP 400: inspect the response and verify the campaign, delivery profile, channel, and request values.
Never commit or share populated credentials, authEncoded, bearer tokens, or
signed upload URLs, even for a test tenant. Review exported collection values
and saved response examples for sensitive information before publishing.
The collection tests check request wiring and execute scripts with simulated Postman inputs and API responses. With a recent Node.js:
node --test collection.test.cjsThese are local regression checks, not a live Five9 integration test or a replacement for a walkthrough in Postman against your configured test domain.