---
title: "Look up the account ID for a token."
method: GET
path: "/v1/api/auth"
tags: ["Auth"]
---

# Look up the account ID for a token.

`GET /v1/api/auth`

## Response `200`

OK

- AuthResponse
  - `account_id` string
  - `service_external_id` string
  - `service_mode` 'LIVE' | 'TEST'
  - `token_link` string
  - `token_type` 'CARD' | 'DIRECT_DEBIT'

## Other responses

- `401` — Unauthorized

## 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

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