> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getNotePageTemplate

> Get the template information of a note page.

```ts wrap theme={null}
static getNotePageTemplate(NOTEPath: string, page: number): Promise<APIResponse<NoteTemplateInfo>>;
```

**Parameters**

| Parameter  | Type     | Description                  |
| ---------- | -------- | ---------------------------- |
| `NOTEPath` | `string` | NOTE file path               |
| `page`     | `number` | Page index (starts from `0`) |

**Returns**

* [`APIResponse<NoteTemplateInfo>`](/en/api-reference/supernote-plugin/types/api-response):
  `result` is the page template object. Fields:
  \| Field | Type | Description |
  \| --- | --- | --- |
  \| `name` | `string` | Template name |
  \| `md5` | `string` | MD5 for custom templates; system templates use `0` |

## Example

```ts wrap theme={null}
import { PluginFileAPI } from 'sn-plugin-lib';

/**
 * Example: get page template information.
 */
export async function exampleGetNotePageTemplate() {
 const NOTEPath = '/storage/emulated/0/Note/demo.note';
 const page = 1;
 const res = await PluginFileAPI.getNotePageTemplate(NOTEPath, page);
 if (!res.success) {
 throw new Error(res.error?.message ?? 'getNotePageTemplate call failed');
 }
 return res.result;
}
```
