# What to pass for query token in swagger?

**URL:** https://forum.social.plus/t/what-to-pass-for-query-token-in-swagger/995
**Category:** General
**Created:** [November 30, 2023, 7:24am UTC](https://forum.social.plus/t/what-to-pass-for-query-token-in-swagger/995 "2023-11-30T07:24:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![muhammad.nasir.ext](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@muhammad.nasir.ext](https://forum.social.plus/u/muhammad.nasir.ext)
#### Post date: [November 30, 2023, 7:24am UTC](https://forum.social.plus/t/what-to-pass-for-query-token-in-swagger/995/1 "2023-11-30T07:24:38Z")

</div>

I am trying different endpoints through swagger. All endpoints where token is mandatory to pass are failing on whatever value I pass to token. Can you guide me what value will work for query token staying in swagger?

[https://api-docs.amity.co/](https://api-docs.amity.co/)

curl -X ‘GET’   
‘[https://api.eu.amity.co/api/v3/users?keyword=moderator&filter=all&sortBy=displayName&options[limit]=10&options[token]=test](https://api.eu.amity.co/api/v3/users?keyword=moderator&filter=all&sortBy=displayName&options%5Blimit%5D=10&options%5Btoken%5D=test)’   
-H ‘accept: application/json’   
-H ‘Authorization: Bearer d2fd4ecbbb4efc9b68f9\*\*\*\*\*\*\*\*\*\*\*\*\*’

```auto
{
  "status": "error",
  "message": "Query Token is invalid",
  "code": 400000,
  "data": {
    "detail": {}
  }
}

```

---

<div class="post-metadata">

### Author: ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)
#### Post date: [November 30, 2023, 10:22am UTC](https://forum.social.plus/t/what-to-pass-for-query-token-in-swagger/995/2 "2023-11-30T10:22:48Z")

</div>

Hello,

The next page token will be returned at the end of the first page of the result response. This allows you to fetch the next page values if there are any.

```auto
,
  "paging": {
    "next": "string"
  }

```

Best regards,

Support Team
