I Have a big deal whit a block: I need create a new list item in side Alexa whith API but every time give me a error.
The permision and the endpoit is correct.
I think that the problem is to compile the “HEADERS”, I have tried with many combinations but continues give me a error:
“ERROR”:{1 item
“message”:“src property must be a valid json object”
I cipiled in this mode
Enter HTTTP header: Authorization
Value: Bearer auth_token_for_customer
Enter object Path: Content-Type
Value: application/json
you can download a demo from Voiceflow’s marketplace.
BTW, you seems Alexa List API, right? you should remeber some Alexa-specific features including list api, it can be tested only on Alexa Developer Console or real Echo device. those kind of features cannot be tested on Voiceflow’s test.
Based on my knowledge, if the error is "message”:“src property must be a valid json object”, then the URL is probably not having a JAON structure. It must be having an HTML or other structure.
Cut and paste the API URL in a browser and check.
Also, which API is this - if I have experience in this I can assist…
what i’m trying to do is write a list inside alexa. I composted the structure like this:
1- Block permision -lPermission request : lists write
2- Block user info - User info type : lists write
3-I go inside alexa and validate the authorizations
4-Block API - Request URL >: PUT https://api.amazonalexa.com/v2/householdlists/{NAME LISTS}/items/{NAME ITEM}
Header Assignments: Authorization
value: application/json
ok thank you very much i am solving following the demo, but i don’t understand something:
In the API block “get shoping list” I retrieve the shopping list into “transform into varibles” whit the numer [0], but I want to retrieve a specific name from my list. How can I do?
one more thing. This is just my opinion. It might be hard to get customer’s custom list by its name by voice because Alexa might not recognize its list name correctly.
ex) when you say ‘to-do list’, alexa seems recognize ‘to do list’. you know what i mean.