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

---

[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/versions/c661c91f1df4/schema)
