---
title: "Retrieves generated tokens for gateway account."
method: GET
path: "/v1/frontend/auth/{accountId}"
tags: ["Auth"]
---

# Retrieves generated tokens for gateway account.

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

## Path parameters

- `accountId` string, required

## Query parameters

- `state` 'REVOKED' | 'ACTIVE'
- `type` 'API' | 'PRODUCTS'

## Response `200`

OK

- object
  - `tokens` 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

- `422` — Invalid or missing required parameters

## Changes

- **2025-05-16** `02ec8ad8ecfd` — 2 info
  - added the optional property `tokens/items/service_external_id` to the response with the `200` status
  - added the optional property `tokens/items/service_mode` to the response with the `200` status

[Change history](https://skmtc.dev/government-digital-service/apis/publicauth-api/changes/v1/frontend/auth/:accountId/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)
