# RetrieveTokenStatus API: Sandbox support and required credentials

**URL:** <https://developer.squareup.com/forums/t/retrievetokenstatus-api-sandbox-support-and-required-credentials/28331>\
**Category:** Questions\
**Created:** [October 26, 2026, 6:37am UTC](https://developer.squareup.com/forums/t/retrievetokenstatus-api-sandbox-support-and-required-credentials/28331 "2026-10-26T06:37:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamariso-dev](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mamariso-dev](https://developer.squareup.com/forums/u/mamariso-dev)\
**Post date:** [October 26, 2026, 6:37am UTC](https://developer.squareup.com/forums/t/retrievetokenstatus-api-sandbox-support-and-required-credentials/28331/1 "2026-10-26T06:37:54Z")

</div>

Hello Square Developer Team,

I’m building an application that uses Square OAuth in the Sandbox environment. Before running any API requests with a newly issued Sandbox OAuth access token, I would like to confirm the supported and secure way to verify its identity.

According to the RetrieveTokenStatus API documentation:

> **[POST /oauth2/token/status - Square API Reference](https://developer.squareup.com/reference/square/o-auth-api/RetrieveTokenStatus)**
>
> Returns information about an \[OAuth access token\](https://developer.squareup.com/docs/build-basics/access-tokens#get-an-oauth-access-token) or an application’s \[personal access...

The response can include the `client_id`, `merchant_id`, scopes, and expiration information.

Could you please clarify the following?

1. Is RetrieveTokenStatus officially supported for Sandbox OAuth access tokens?

2. If so, is the correct endpoint `https://connect.squareupsandbox.com/oauth2/token/status`?

3. What authentication credentials and authorization header format should be used for this endpoint in Sandbox? Should the Sandbox application secret or another credential be used?

4. Can we reliably use the returned `client_id` and `merchant_id` to verify that an OAuth access token belongs to the intended Sandbox application and test seller?

5. Is there a recommended alternative if RetrieveTokenStatus is not supported in Sandbox?

Our goal is to verify the application and seller identity before performing read-only API operations. We will not share access tokens, application secrets, or customer information.

Thank you for your guidance.

---

<div class="post-metadata">

**Author:** ![zacstlouis](https://avatars.discourse-cdn.com/v4/letter/z/b5a626/32.png) [@zacstlouis](https://developer.squareup.com/forums/u/zacstlouis)\
**Post date:** [October 26, 2026, 9:46pm UTC](https://developer.squareup.com/forums/t/retrievetokenstatus-api-sandbox-support-and-required-credentials/28331/4 "2026-10-26T21:46:10Z")

</div>

1. Yes, RetrieveTokenStatus works with Sandbox OAuth access tokens.
2. Endpoint: `POST` `https://connect.squareupsandbox.com/oauth2/token/status`, with no request body.
3. Auth: put the access token you want to check in the header as `Authorization: Bearer <SANDBOX_ACCESS_TOKEN>`. The application secret isn’t used for this call. Include a `Square-Version` header as you would on any other request.
4. Verification: yes. Check that `client_id` matches your Sandbox application ID and that `merchant_id` matches the test seller you expect. Check `scopes` and `expires_at` too before you make calls. An invalid or expired token returns `UNAUTHORIZED`.
5. Make sure Sandbox tokens only go to the [`squareupsandbox.com`](http://squareupsandbox.com) host. Production tokens go to [`connect.squareup.com`](http://connect.squareup.com).
