---
title: "Get Template Logs"
method: GET
path: "/api/MobileApp/get_template_logs"
tags: ["MobileApp"]
---

# Get Template Logs

`GET /api/MobileApp/get_template_logs`

## Request

- Base URL: `https://api.leapsurgebi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.leapsurgebi.com/api/MobileApp/get_template_logs`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/token`
- TypeScript: <https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/docs/api/MobileApp/get_template_logs/get.ts> (a function with typed inputs; its response is checked against the schema)

**Function**: `get_template_logs`
**Type**: API Endpoint (GET)

**Purpose**:  
Retrieves the template logs for a given template code.

**Headers**:  
- `Template-Code` (str, required): The template code for which the logs are to be retrieved.

**Response**:  
A JSON response containing the template logs, including the template name, template code, batch ID, status, and scheduler status.

**Exceptions**:  
Returns a JSON response with status "failed" and a 500 status code for any internal errors.

## Headers

- `Template-Code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `23b42df3193a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/changes/api/MobileApp/get_template_logs/get.md)

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) - [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/revisions/13653cb8ee76?raw)
