Skip to main content

Hi,

 

I’m trying to create an SMS Send flow over API, but the parameters I’m setting to FALSE in the request are being overwritten back to TRUE in the response for some reason:

 

 

I request to:

  1. shorten_links: false
  2. add_org_prefix: false
  3. add_info_link: false

 

And yet the Flow is created with them set to TRUE… 

 

Worse, there doesn’t appear to be a PATCH endpoint to update the Flow if it was created incorrectly over API, so updates need to be done manually in the UI.

 

Has anyone else had this issue or found a way to get the POST or PATCH to work correctly?

 

Thank you

@erik.wunder I tested making this call for my own Klaviyo account and seeing similar to you. I would try passing these values in the POST API call

 "shorten_links": false,
 "smart_sending_enabled": false,
 "transactional": true

below is what the method returned:

"shorten_links": true,
"smart_sending_enabled": false,
"transactional": false,

Only the "smart_sending_enabled" parameter was respected. Upon inspecting the flow within the Klaviyo UI, it appears that the API response does not accurately reflect the transactional status change; specifically, while the UI indicates a change to "Under Review," the API response does not correspond accordingly. Additionally, the API response does not appear to respect the "shorten_links" parameter set to false. Currently, there is no PATCH endpoint available for updating existing flows; such functionality may be planned for future development. It is recommended to report this inconsistent API behavior as a bug to the Klaviyo API development team.

 


@whereisjad thanks for the follow up and detailed response. Do you know where / how to report a bug to Klaviyo? thank you!


@erik.wunder Do you have a paid Klaviyo account or are you assisting a customer who does? I recommend emailing Klaviyo Support and opening a support ticket, providing them with all the relevant details regarding this specific issue.

https://help.klaviyo.com/hc/en-us/articles/115001002272#h_01HF9R5PM3HTCN686283HPDR31