---
title: "Get a token by gateway account id and token link."
method: GET
path: "/v1/frontend/auth/{accountId}/{tokenLink}"
tags: ["Auth"]
---

# Get a token by gateway account id and token link.

`GET /v1/frontend/auth/{accountId}/{tokenLink}`

## Path parameters

- `accountId` string, required
- `tokenLink` string, required

## Response `200`

OK

- TokenResponse
  - `created_by` string
  - `description` string
  - `issued_date` string
  - `last_used` string
  - `revoked` string
  - `service_external_id` string
  - `service_mode` 'LIVE' | 'TEST'
  - `token_link` string
  - `token_type` 'CARD' | 'DIRECT_DEBIT'
  - `type` 'API' | 'PRODUCTS'

## Other responses

- `404` — Token not found

## Changes

- **2025-05-16** `02ec8ad8ecfd` — 2 info
  - added the optional property `service_external_id` to the response with the `200` status
  - added the optional property `service_mode` to the response with the `200` status
- **2025-01-03** `358c66710ae3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/government-digital-service/apis/publicauth-api/changes/v1/frontend/auth/:accountId/:tokenLink/get.md)

---

[API](https://skmtc.dev/government-digital-service/apis/publicauth-api.md) · [All operations](https://skmtc.dev/government-digital-service/apis/publicauth-api/llms.txt) · [OpenAPI document](https://skmtc.dev/government-digital-service/apis/publicauth-api/revisions/c661c91f1df4?raw)
