question

arin avatar image
arin asked

​API ISP Call with Connections.SendRequest Token works only 1 time

Hi.

It looks like to me that calling

Alexa API for ISP [1],

2 times,

with the token received in Connections.Response (which is basically what we send to Alexa via Connections.SendRequest) for the Upsell is not working. The first call to the API works but the second call using the same token is not, and I get invalid token error [2].

I wonder what is the reason that this token is not accepted more than once? Thanks.

----------

[1]

apiEndpoint = "api.amazonalexa.com"

apiPath = "/v1/users/~current/skills/~current/inSkillProducts"

[2]

403 ({ "type": "FORBIDDEN", "message": "The authentication token is not valid." } )

alexa skills kitapiisp
10 |5000

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

1 Answer

KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

I will follow up with the internal team about this question, what's the time span from first call to second call? Is it possible that it's because the auth token is expired?

1 comment
10 |5000

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

Thanks, @KAIYIN@AMAZON.COM It's within the same Lambda execution, i.e., perhaps in order of a couple of hundreds of millisecond or at the most 2, 3 sec.

0 Likes 0 ·