---
title: "Test credentials"
method: GET
path: "/threads/token"
tags: ["Threads by Unshape"]
---

# Test credentials

`GET /threads/token`

Auth the user with the credentials passed as headers. You MUST accept the invite in https://www.threads.net/settings/account > Website authorizations > Unshape in order to have the API work.

## Query parameters

- `code` string, required

## Headers

- `X-Stripe-Email` string, required
- `X-Stripe-Emailz` string, required

## Response `200`

Success - Authentication succeeded

- ThreadsAuthSuccess
  - `success` boolean — Indicates whether the operation was successful.
  - `access_token` boolean — The access token returned by the Threads API.
  - `username` boolean — The current user's username.

## Other responses

- `400` — Bad request - Missing input properties
- `403` — Payment Required - Subscription required

---

[API](https://skmtc.dev/unshape/apis/unshape-api.md) · [All operations](https://skmtc.dev/unshape/apis/unshape-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unshape/unshape-api/revisions/25e25e454db5/schema)
