Pocket

Organization Templates

Create and manage shared summarization templates for your organization

Organization templates define reusable summarization structures shared across all members. When a template is created at the org level it automatically appears in every member's template list and summarization flows.

List Templates

GET /api/v1/organization/:orgId/templates

Minimum role: member

Returns all templates belonging to the organization.

Response

{
  "templates": [
    {
      "id": "tpl_abc123",
      "name": "Sales Call Debrief",
      "description": "Structured summary for sales conversations",
      "sections": [
        { "title": "Key Takeaways", "prompt": "List the main outcomes" },
        { "title": "Action Items", "prompt": "Extract follow-up tasks" }
      ],
      "created_at": "2026-03-01T09:00:00.000Z",
      "updated_at": "2026-03-15T14:00:00.000Z"
    }
  ]
}

Get Template

GET /api/v1/organization/:orgId/templates/:templateId

Minimum role: member

Returns a single template by ID.

Path Parameters

ParameterTypeDescription
templateIdstringThe template identifier

Response

{
  "id": "tpl_abc123",
  "name": "Sales Call Debrief",
  "description": "Structured summary for sales conversations",
  "sections": [
    { "title": "Key Takeaways", "prompt": "List the main outcomes" },
    { "title": "Action Items", "prompt": "Extract follow-up tasks" }
  ],
  "created_at": "2026-03-01T09:00:00.000Z",
  "updated_at": "2026-03-15T14:00:00.000Z"
}

Create Template

POST /api/v1/organization/:orgId/templates

Minimum role: admin

Creates a new organization template.

Request Body

FieldTypeRequiredDescription
namestringYesTemplate display name
descriptionstringNoShort description of the template's purpose
sectionsobject[]YesOrdered list of template sections
sections[].titlestringYesSection heading
sections[].promptstringYesInstruction for the AI summarizer

Example Request

{
  "name": "Sales Call Debrief",
  "description": "Structured summary for sales conversations",
  "sections": [
    { "title": "Key Takeaways", "prompt": "List the main outcomes" },
    { "title": "Action Items", "prompt": "Extract follow-up tasks" },
    { "title": "Objections", "prompt": "Summarize any objections raised" }
  ]
}

Response

{
  "id": "tpl_def456",
  "name": "Sales Call Debrief",
  "description": "Structured summary for sales conversations",
  "sections": [
    { "title": "Key Takeaways", "prompt": "List the main outcomes" },
    { "title": "Action Items", "prompt": "Extract follow-up tasks" },
    { "title": "Objections", "prompt": "Summarize any objections raised" }
  ],
  "created_at": "2026-04-10T08:00:00.000Z",
  "updated_at": "2026-04-10T08:00:00.000Z"
}

Update Template

PATCH /api/v1/organization/:orgId/templates/:templateId

Minimum role: admin

Updates an existing template. Only provided fields are changed.

Path Parameters

ParameterTypeDescription
templateIdstringThe template identifier

Request Body

FieldTypeRequiredDescription
namestringNoUpdated template name
descriptionstringNoUpdated description
sectionsobject[]NoReplacement sections array (fully replaces existing sections)

Example Request

{
  "name": "Sales Call Debrief v2"
}

Response

{
  "id": "tpl_abc123",
  "name": "Sales Call Debrief v2",
  "description": "Structured summary for sales conversations",
  "sections": [
    { "title": "Key Takeaways", "prompt": "List the main outcomes" },
    { "title": "Action Items", "prompt": "Extract follow-up tasks" }
  ],
  "created_at": "2026-03-01T09:00:00.000Z",
  "updated_at": "2026-04-10T09:00:00.000Z"
}

Delete Template

DELETE /api/v1/organization/:orgId/templates/:templateId

Minimum role: admin

Permanently deletes an organization template. Existing summarizations that used this template are not affected.

Path Parameters

ParameterTypeDescription
templateIdstringThe template identifier

Response

{
  "success": true
}

On this page