---
title: "Generate a debug ID"
method: POST
path: "/api/debug"
tags: ["Debug ID"]
---

# Generate a debug ID

`POST /api/debug`

This endpoint generates a `debug_id` that TrueLayer can use to debug issues. You should only generate a `debug_id` when you are actively experiencing a problem, or you may encounter rate limiting issues.

## Request body

- DebugIdRequest
  - `access_token` string, required — The access token of the data access attempt that needs debugging.

## Response `200`

Successful response returns a `debug_id`

- DebugIdResponse
  - `credentials_id` string, required — The ID of the underlying credential associated with the access token.
  - `debug_id` string, required — An ID that represents this debugging request. Share this with a member of TrueLayer's support team to help them debug your issue.
  - `provider_id` string, required — The provider associated with the credential and authentication attempt.

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/truelayer/apis/authentication-server.md) · [All operations](https://skmtc.net/truelayer/apis/authentication-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/truelayer/authentication-server/revisions/5f6051515b2c/schema)
