403 You do not have permission to access the content (Interactions API)

,

I am using a paid tier with Interaction API. The requests with some “previous_interaction_id” later than 2 days return **403 Forbidden:
**

{

"error": {

“message”: “You do not have permission to access the content.”,

“code”: “permission_denied”

}

}

The documentation states data retention to 55 days for Paid tiers. The same settings (default 55 days) are set in AI Studio. Same requests without “previous_interaction_id” generate content successfully…

What could be wrong with this setup?

hi @Yuriy_Dyuster thanks for contributing!

The team is looking into this issue. I’ll hopefully have some updates soon

Hi there,

if this was a data retention problem, API should be 404. This smells like an auth issue.

Can you try the following to help us debug this issue:

  • provide the example request for us to reproduce this
  • ensure you are using the same API key (check api key vars) for both the successful and non successful requests you tried
  • try to use GET /interactions on the previous_interaction_id using the same key that the 403 is returning to validate that it is an API key issue. Does it return a 404 or 403?