Get contents with status ARCHIVED using GraphQL

Hi,

I’m running Squidex 5.5.0.

I’m trying to do the following in Postman but I receive an empty array:

{
  queryCouponContents(filter: "status eq 'Archived'") {
    id
    status
    etc.
    etc.
    etc.
  }
}

The above GraphQL query returns:

{
    "data": {
        "queryCouponContents": []
    }
}

The same GraphQL query works in GraphiQL inside the Squidex admin UI.

When inside the GraphiQL editor in Squidex i open Chrome DevTools and take the bearer token for that graphql network request and use it in Postman I receive contents with status Archived. But this is obviously not the proper way to do it.

I tried regenerating a new bearer token with Owner, Developer, Reader, Editor but none of them work.

So my question is; what are the steps needed for this to work?

I think I found the solution here: https://docs.squidex.io/02-documentation/developer-guides/api-overview/api#published-items

1 Like