> For the complete documentation index, see [llms.txt](https://integuru.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integuru.gitbook.io/docs/detailed-references/verify-token-endpoint.md).

# Verify Token Endpoint

## Verify the validity of a temporary token

<mark style="color:green;">`POST`</mark> `api/verify-token`

This endpoint allows clients to test the validity of a JWT token generated by the `api/token` endpoint.

### Headers

| Name            | Value                 | Description                                                                |
| --------------- | --------------------- | -------------------------------------------------------------------------- |
| `Content-Type`  | `application/json`    | The content type returned.                                                 |
| `Authorization` | `Bearer ACCESS_TOKEN` | The ACCESS\_TOKEN is the JWT token generated from the `api/token` endpoint |

### Response

{% tabs %}
{% tab title="200" %}

```json
{
    "valid": true,
    "taiki_user": "066ce922-b022-7b4c-8000-932366cc3b90",
    "client": "066ccb8b-a2df-7851-8000-dc413ace872e"
}
```

{% endtab %}

{% tab title="401" %}

```json
{
    "detail": "Given token not valid for any token type",
    "code": "token_not_valid",
    "messages": [
        {
            "token_class": "AccessToken",
            "token_type": "access",
            "message": "Token is invalid or expired"
        }
    ]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://integuru.gitbook.io/docs/detailed-references/verify-token-endpoint.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
