Create a new Klaviyo flow
Add a trigger
Select the metric “Brij User Profile Update” as a trigger
Set a trigger filter to only run this flow when “SMS Single Consent” (boolean) is “true”
Configure the Postscript webhook
Drag and drop the Webhook block from the Action below the trigger block
Set the following parameters in the Webhook Block:
Destination URL: https://api.postscript.io/api/v2/subscribers
Key: Authorization
Value: Bearer {POSTSCRIPT_API_KEY} [Example API_KEY: sk_a942d5d5635#####################]
JSON body:
{
"origin": "other",
"keyword": "BRIJOPTIN",
"tags": [
"brij"
],
"email": "{{ event|lookup:'Customer Email'|default:'' }}",
"phone_number": "{{ event|lookup:'Customer Phone Number'|default:'' }}"
}
Create a sample registration
Preview the integration
Return to the webhook action block in your Klaviyo flow and click the “Preview” button to bring up the preview window.
Find the profile and User Profile Update event from the previous test
Click Send Test Request
Ensure the test request sends successfully and that the user profile and SMS consent appear correctly in Postscript