---
title: "Check if a personal access token is valid and is allowed to publish in a namespace"
method: GET
path: "/api/{namespace}/verify-pat"
tags: ["registry-api"]
---

# Check if a personal access token is valid and is allowed to publish in a namespace

`GET /api/{namespace}/verify-pat`

## Path parameters

- `namespace` string, required

## Query parameters

- `token` string, required

## Response `200`

The provided PAT is valid and is allowed to publish extensions in the namespace

- Result — Generic result indicator
  - `success` string — Indicates success of the operation (omitted if a more specific result type is returned)
  - `warning` string — Indicates a warning; when this is present, other properties can still be used
  - `error` string — Indicates an error; when this is present, all other properties should be ignored

## Other responses

- `400` — The token has no publishing permission in the namespace or is not valid
- `404` — The specified namespace could not be found
- `429` — A client has sent too many requests in a given amount of time

---

[API](https://skmtc.net/livesession/apis/open-vsx-registry-api.md) · [All operations](https://skmtc.net/livesession/apis/open-vsx-registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/livesession/open-vsx-registry-api/revisions/badd706d3136/schema)
