---
title: "List template endpoints"
method: GET
path: "/api/v1/templates/{template_id}/endpoints"
tags: ["Templates"]
---

# List template endpoints

`GET /api/v1/templates/{template_id}/endpoints`

## Request

- Base URL: `https://api.studio.kaitoi.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.studio.kaitoi.io/api/v1/templates/{template_id}/endpoints`
- Auth: HTTP bearer

Returns active external endpoints for a user-owned template. Endpoint API secrets are never returned; use the endpoint docs response to learn the required Authorization header shape.

## Path parameters

- `template_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

A list of active endpoint summaries.

- PublicListResponsePublicTemplateEndpointSummary
  - `data` PublicTemplateEndpointSummary[], required: Items returned for this page.
    - `endpointId` string, required: Stable template endpoint identifier.
    - `templateId` string, required: Template identifier this endpoint runs.
    - `name` string, required: Endpoint display name.
    - `description` string, nullable: Endpoint description.
    - `inputCount` integer, required: Number of exposed inputs.
    - `outputCount` integer, required: Number of exposed outputs.
    - `apiKeyPrefix` string, nullable: Non-secret prefix of the endpoint API key, useful for humans identifying the key.
    - `createdAt` string, date-time, nullable: Endpoint creation timestamp.
    - `updatedAt` string, date-time, nullable: Endpoint update timestamp.
    - `lastCalled` string, date-time, nullable: Most recent invocation timestamp, when available.
    - `callCount` integer: Number of recorded endpoint calls.
    - `isActive` boolean: Whether this endpoint currently accepts external calls.
  - `nextCursor` string, nullable: Opaque cursor for the next page. Omitted when there are no more results.
  - `hasMore` boolean, required: True when another page is available.

## Other responses

- `401`: Missing, malformed, expired, or revoked bearer token.
- `403`: The API key lacks the required scope or account capability.
- `404`: The template does not exist or is not owned by this user.
- `422`: Validation Error
- `429`: The client or API key exceeded the REST API rate limit.
- `503`: The shared REST API rate limiter is temporarily unavailable.

---

[API](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api.md) · [All operations](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api/revisions/239a74aa2c64?raw)
