---
title: "Retrieves generated tokens for service and mode."
method: GET
path: "/v1/frontend/auth/service/{serviceExternalId}/mode/{serviceMode}"
tags: ["Auth"]
---

# Retrieves generated tokens for service and mode.

`GET /v1/frontend/auth/service/{serviceExternalId}/mode/{serviceMode}`

## Path parameters

- `serviceExternalId` string, required
- `serviceMode` 'LIVE' | 'TEST', 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

---

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