---
title: "Check connection token"
method: GET
path: "/connection/check_token"
tags: ["Connection Tokens"]
---

# Check connection token

`GET /connection/check_token`

This endpoint lets you check the status of a connection token.       To be able to check a connection token of a user, you need to have `WRITE` access on that user.

## Query parameters

- `user_id` string, required — User id
- `token` string, required

## Response `200`

OK

- object
  - `token` string — New connection token
  - `expiration_date` string, date-time — Expiration date of the token
  - `generated_by` string — Id of the user that created the token
  - `creation_date` string, date-time — Creation date of the token
  - `consumption_date` string, date-time — Date the token was consumed, ie. used to log in
  - `status` 'revoked' | 'consumed' | 'expired' | 'valid' — Status of the token: - `valid` means it can be use to log in - `consumed` means it has been used to log in - `revoked` means it has been revoked before being used or expired - `expired` means it has expired before being used

## Other responses

- `400` — Your request is incorrect
- `401` — You are not authenticated
- `403` — You are not allowed to perform this action
- `404` — Resource does not exist

---

[API](https://skmtc.net/partoo/apis/partoo-rest-api.md) · [All operations](https://skmtc.net/partoo/apis/partoo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/partoo/partoo-rest-api/revisions/3652d8b1a8b3/schema)
