---
title: "Retrieve details of the current API token."
method: GET
path: "/v1/api_tokens/self"
tags: ["API Tokens"]
---

# Retrieve details of the current API token.

`GET /v1/api_tokens/self`

## Response `200`

Current token details

- object — Details of an API Token
  - `id` string — Id of API token
  - `name` string — Name of API token
  - `workspace_id` integer — Workspace id
  - `type` 'personal_access_token' | 'service_account'
  - `status` 'active' | 'expired' | 'revoked'
  - `created_at` string, date-time — Creation date of the API token
  - `last_used_at` string, date-time, nullable — Last usage of the API token
  - `expire_at` string, date-time, nullable — Expiration date of the API token
  - `revoked_at` string, date-time, nullable — Revocation date of the API token
  - `member_id` integer, nullable — Member id
  - `creator_id` integer, nullable — Creator id
  - `scopes` string[] — List of scopes

## Other responses

- `401` — Invalid API key

---

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