---
title: "Verify a M2M Token"
method: POST
path: "/m2m_tokens/verify"
tags: ["M2M Tokens"]
---

# Verify a M2M Token

`POST /m2m_tokens/verify`

Verifies a M2M Token.

This endpoint can be authenticated by either a Machine Secret Key or by a Clerk Secret Key.

- When verifying a M2M Token with a Machine Secret Key, the token must be granted access to the Machine associated with the Machine Secret Key.
- When verifying a M2M Token with a Clerk Secret Key, any token on the Instance can be verified.

## Request body

- object
  - `token` string, required

## Response `200`

200 OK

- object
  - `object` 'machine_to_machine_token', required
  - `id` string, required
  - `subject` string, required
  - `claims` unknown
  - `scopes` string[]
  - `revoked` boolean, required
  - `revocation_reason` string, nullable, required
  - `expired` boolean, required
  - `expiration` number, nullable, required — The timestamp for when the token will expire, in milliseconds
  - `last_used_at` number, nullable, required — The timestamp for when the token was last used, in milliseconds
  - `created_at` number, required — The timestamp for when the token was created, in milliseconds
  - `updated_at` number, required — The timestamp for when the token was last updated, in milliseconds

## Other responses

- `400` — 400 Bad Request
- `404` — 404 Not Found

---

[API](https://skmtc.net/clerk/apis/clerk-backend-api.md) · [All operations](https://skmtc.net/clerk/apis/clerk-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clerk/clerk-backend-api/revisions/7d969765e49a/schema)
