question

newuser-825f3f5e-3b87-4703-999f-32461aa52a0e avatar image
newuser-825f3f5e-3b87-4703-999f-32461aa52a0e asked ·

Reminders can only be created in session

I create reminder for alexa skill by use Reminder API. I get this error:

Help me please, thanks.

{ code: 'NOT_IN_SESSION',  message: 'Reminders can only be created in session.' }
alexa skills kitskill builderreminders
2 comments
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Are you trying to create reminder outside session?


white I am trying to 'get' reminder out side the session, I could not Oauth for the scope alexa::alerts:reminders:skill:readwrite .


How did you able to manage to get Access Token?

0 Likes 0 ·

Check out the link in my other response, along with this link for how to grab the consent token to use for out of session operations.

0 Likes 0 ·

1 Answer

Jason@Amazon avatar image
Jason@Amazon answered ·

That's a limitation of the Reminders API - you need to use the in-session access token to create reminders. You can run GET, UPDATE and DELETE operations out of session as well, so check this out for more information.

2 comments
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi @Jason@amazon, i need to get the list of reminders to update the info and, for instance, change the time in OUT OF SESSION mode, in order to manage the reminders in a custom app, without speak to the device.

I have reviewed all the links you recommended in this and other post in this forum. I am not able to find out the way to perform this operations.

i am able to get an access token, but with this access token i cannot use the reminders api.

With more detail:

I get the Bearer token with this url:

https://api.amazon.com/auth/o2/token

After getting the token i try this to get all the reminders

https://api.eu.amazonalexa.com/v1/alerts/reminders

But I always get 401 error.


All the people asking for this topic are missing something.

Using this token i can send a message to the skill using the url https://api.eu.amazonalexa.com/v1/skillmessages/users/amzn1.ask.account.AFVOXXXXXXXXX

But i don´t know the relationship between the reminders api and the messagging API.


Do you have some example code to get the reminders using out of session mode.


Please, can you help me in some way.


Thanks a lot Jason.

0 Likes 0 ·

It looks like you've created a new post here, so I'll post a response over there as this is an older thread:

https://forums.developer.amazon.com/questions/222849/get-list-of-reminders-and-update-a-reminder-out-of.html

0 Likes 0 ·