---
title: "Check if a token is valid"
method: GET
path: "/v1/shares/auth/token/"
---

# Check if a token is valid

`GET /v1/shares/auth/token/`

## Request

- Base URL: `https://app.iconik.io/API/assets`
- URL: `https://app.iconik.io/API/assets/v1/shares/auth/token/`
- Auth: none declared. Required headers: `App-ID`, `Share-Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-assets/docs/v1/shares/auth/token/get.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `App-ID` string, required
- `Share-Auth-Token` string, required

## Response `200`

Returns the share token details

- ShareTokenSchema
  - `app_id` string, required
  - `drm` 'none' | 'standard', required: DRM information for the share token, if applicable
  - `email` string, email, required
  - `expires` string, date-time, required
  - `is_internal_user` boolean, required
  - `object_id` string, required
  - `object_type` string, required
  - `roles` string[], required
  - `share_id` string, required
  - `share_session_id` string, nullable
  - `share_user_id` string, required
  - `system_domain_id` string, required
  - `token` string, required
  - `user_id` string, required
  - `watermark` 'none' | 'standard', required: Watermark information for the share token, if applicable

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `404`: Share does not exist
- `423`: The share has not started yet; starts in the body is its start date
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-assets.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-assets/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-assets/revisions/62580d9e640e?raw)
