---
title: "Backend Keys"
description: "Reference of every request and response key on the autosave, comment and saved-section endpoints your backend implements for the Email Editor, with types and nullability."
url: https://docs.topol.io/email-editor/reference/backend-keys.html
---

# Backend key reference

**Every key the editor sends to, or reads from, the autosave, comment and saved-section endpoints you implement.** The Email Editor and the Landing Page Editor share these keys, so one backend serves both.

## Keys sent with every request

Reads carry these in the query string, writes in the JSON body.

| Key | Type | Notes |
| --- | --- | --- |
| `key` | `string` | Your API key, from `authorize.apiKey`. |
| `hostname` | `string` | Origin of the page embedding the editor. |
| `templateId` | `string` | Not sent by the saved-section endpoints. |
| `entityId` | `string \| number` | The `authorize.entityId` option, sent as configured. |
| `currentUserId` | `string` | `currentUser.userId`. Sent by autosaves when a current user is configured, and by every comment request. |

## Autosaves

| Call | Request | Response |
| --- | --- | --- |
| List: `GET {AUTOSAVES}` | Common keys | `{ success: true, data: Autosave[] }`, not paginated |
| Create: `POST {AUTOSAVES}` | Common keys, `definition` | Any 2xx, body not read |
| Detail: `GET {AUTOSAVES}/{key}` | Common keys | `{ success: true, data: { template } }` |

| Key | Type | Nullable | Notes |
| --- | --- | --- | --- |
| `definition` (create) | `string` | no  | The template, serialized as JSON. |
| `template` (detail) | `string` | no  | The string sent as `definition`. |
| `key` (entry) | `string` | no  | Autosave identifier, appended to the URL for the detail call. |
| `time` (entry) | `string` | no  | Any value `new Date()` parses; ISO 8601 recommended. |
| `createdBy` (entry) | `User` | optional |     |

## Comments and conversations

Read endpoints answer with `{ success: true, data }`; the conversation list is not paginated.

| Key | Type | Notes |
| --- | --- | --- |
| `sortBy` (list request) | `string` |     |
| `showResolved` (list request) | `boolean` |     |
| `involvedUsers` | `User[]` |     |
| `createdBy` | `User` |     |
| `createdAt` | `string` |     |
| `readBy` | `(string \| number)[]` | User ids. |

## Saved and synced sections

The list answers with `{ success: true, data: { data, lastPage, parentFolderId } }`. It is paginated by `perPage` and `currentPage`; when `perPage` is absent the whole level is expected back.

| Key | Type | Nullable | Notes |
| --- | --- | --- | --- |
| `folderId` (list request) | `number` | optional | Absent means the root level. |
| `folderId` (update request) | `number` | yes | `null` moves the item to the root level. |
| `perPage`, `currentPage` (request) | `number` | optional |     |
| `sortBy` (request) | `"name" \| "date" \| "type"` | optional |     |
| `id` (item) | `number` | no  |     |
| `folderId` (item) | `number` | yes | `null` or absent for a root-level item. |
| `createdAt` (item) | `string` | optional | Leave out when unknown; `null` is rejected. |
| `parentFolderId` (list envelope) | `number` | yes | `null` at the root level. |

## The `User` object

| Key | Type |
| --- | --- |
| `userId` | `string \| number` |
| `name` | `string` |
| `profilePhotoUrl` | `string` |

All three are required wherever a user appears in a response.
