Comments (3)
Hey, thanks for reaching out!
Regarding the 500 error: I was able to reproduce the issue on my end. The team that owns this is looking into it now.
Regarding your second question:
The reason for this is that we essentially have 2 types of templates: reusable templates and non-reusable templates.
Reusable templates are what you edit; when a campaign message gets assigned a template, that template is actually a non-reusable clone of the given template.
get_templates
only returns the original, reusable templates, hence the count mismatch.
That said, this overall behavior is as puzzling to me as it is to you, as presumably we’d want some way to trace a given non-reusable template back to its source, which is not currently possible. This also seems to be related to the 500 errors we’re seeing, as I’m only seeing the error when calling get_template
on a non-reusable template’s id.
I know that ’s not the optimal answer you were looking for, as we clearly have some work to do to improve these endpoints. While we're waiting on this fix, I’ll also reach out to our writing team to put together a guide to clarify reusable vs non-reusable templates.
Please do reach out if you run into any further issues. We super appreciate this kind of feedback, as it helps us iterate and make a better product for our developers.
Cheers!
Jon
from klaviyo-api-python.
I also found that when I use Templates.get_templates() I get fewer templates than what Campaigns.get_campaign_message() and using the contained 'template_id' would impy. Does the Campaigns API include potentially deleted templates and the Templates API does not?
Happy for any insight!
from klaviyo-api-python.
We are currently filtering for the deleted template ids which thankfully is not a long operation :) appreciate the detailed answer!
from klaviyo-api-python.
Related Issues (20)
- How to use "page[size]" parameter? HOT 1
- how to avoid error when making many calls? HOT 1
- No Page Size in "get_profiles" HOT 1
- Missing positional argument "id" even though it is provided HOT 2
- Rendering templates HOT 1
- Feature request: Bulk setting/unsetting of user properties HOT 4
- fields[profile] parameter not working HOT 2
- permissions issue with getting lists + campaign audience type (List\Segment) HOT 1
- Klaviyo API hangs once every 10-20 requests HOT 4
- _from_openapi_data() missing 1 required positional argument: 'name' on create event HOT 2
- _from_openapi_data() missing 1 required positional argument: 'name' on create event HOT 1
- Need basic documentation on how Track and Identify map into this new API HOT 1
- bug in profile unset property functionality HOT 2
- 400 HTTP errors with get_events() per specific metric ids HOT 4
- Pydantic v2 compatibility HOT 10
- Flows pagination not possible HOT 5
- Templates Pagination not functioning HOT 6
- Klaviyo profile unable to subscribe: due to HTTPSConnectionPool HOT 2
- "Invalid cursor provided" Error for "get_events()" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klaviyo-api-python.