---
title: "Fetch Debug Sql By Term Type"
method: GET
path: "/debug_sql/{term_violation_id}"
tags: ["DEBUG_SQL"]
deprecated: true
---

# Fetch Debug Sql By Term Type

`GET /debug_sql/{term_violation_id}`

> **Deprecated.**

Fetches debug_sql for a given term_violation_id.
:param auth: The authorization token for the request.
:param term_violation_id: The term violation id for which we are supposed to fetch debug_sql.
:return: A dictionary containing the result of the operation.

## Path parameters

- `term_violation_id` integer, required

## Response `200`

Successful Response

- DebugSQLFetchResponse
  - `debug_sql` string, nullable
  - `status` string, required
  - `error_code` string, nullable
  - `message` string, nullable

## Other responses

- `400` — Not supported for public user
- `403` — Not supported for public user
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/103580dad816/schema)
