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

# List templates

> List shared and personal templates



## OpenAPI

````yaml /developers/openapi.yaml get /v1/templates
openapi: 3.0.3
info:
  title: TalkToHumans Public API
  version: 1.0.0
  license:
    name: Proprietary
  description: >
    Read and organize the LinkedIn organization data your team already manages
    in TalkToHumans: accounts, contacts, tags, notes, sequence state,
    conversations, templates, and views.
servers:
  - url: https://api.talktohumans.app
    description: TalkToHumans API
security:
  - bearerAuth: []
tags:
  - name: Organization
    description: Organization details for the current API key.
  - name: LinkedIn
    description: LinkedIn accounts, contacts, companies, and conversations.
  - name: Activity
    description: Activity for organization reporting.
  - name: Enrich
    description: Profile enrichment for LinkedIn contacts and companies.
  - name: Views
    description: Saved TalkToHumans views.
  - name: Templates
    description: Message and sequence templates.
paths:
  /v1/templates:
    get:
      tags:
        - Templates
      summary: List templates
      description: List shared and personal templates
      operationId: listTemplates
      parameters:
        - name: type
          in: query
          description: Filter by template type. Defaults to all.
          schema:
            type: string
            enum:
              - all
              - message
              - sequence
            default: all
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: Templates.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTemplatesEnvelope'
              example:
                data:
                  templates:
                    - template_id: tpl_6f1d2c3a-8b4e-4f5a-9c7d-2e1b0a9f8c7d
                      name: Event follow-up
                      type: message
                      scope: shared
                      content: >-
                        Hi {{first_name}}, great meeting you at {{event_name}}.
                        Would you be open to a quick call next week?
                      created_at: '2026-06-02T12:00:00Z'
                      updated_at: '2026-06-02T12:00:00Z'
                    - template_id: tpl_1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
                      name: Connect and follow up
                      type: sequence
                      scope: personal
                      steps:
                        - type: connection_request
                          delay_minutes: 0
                          content: Hi {{first_name}}, I'd love to connect.
                        - type: message
                          delay_minutes: 4320
                          content: >-
                            Thanks for connecting, {{first_name}}! How is
                            everything at {{company_name}}?
                      created_at: '2026-06-05T12:00:00Z'
                      updated_at: '2026-06-07T12:00:00Z'
                  pagination:
                    limit: 10
                    has_more: false
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    Limit:
      name: limit
      in: query
      description: Page size. Defaults to 10. Values above 25 are clamped to 25.
      schema:
        type: integer
        minimum: 1
        default: 10
        maximum: 25
    Cursor:
      name: cursor
      in: query
      description: Opaque cursor from the previous response's `pagination.next_cursor`.
      schema:
        type: string
  schemas:
    ListTemplatesEnvelope:
      type: object
      additionalProperties: false
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/ListTemplatesResponse'
    ListTemplatesResponse:
      type: object
      additionalProperties: false
      required:
        - templates
        - pagination
      properties:
        templates:
          type: array
          items:
            $ref: '#/components/schemas/Template'
        pagination:
          $ref: '#/components/schemas/Pagination'
    Error:
      type: object
      additionalProperties: false
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Machine-readable error code.
          enum:
            - unauthorized
            - forbidden
            - not_found
            - bad_request
            - internal_error
            - conflict
            - rate_limit_exceeded
            - account_shared_access_required
            - billing_payment_failed
            - billing_subscription_incomplete
            - billing_subscription_expired
            - billing_grace_period
            - billing_feature_not_available
            - billing_insufficient_credits
            - billing_invalid
            - enrichment_failed
            - enrichment_in_progress
            - linkedin_profile_not_found
        message:
          type: string
          description: Human-readable error message.
        debug:
          type: string
          description: Development-only debug details.
    Template:
      type: object
      additionalProperties: false
      required:
        - template_id
        - name
        - type
        - scope
        - created_at
        - updated_at
      properties:
        template_id:
          type: string
          description: >-
            Template ID. Pass as `template_id` to `POST /v1/drafts` to write a
            draft from this template.
        name:
          type: string
        type:
          type: string
          enum:
            - message
            - sequence
        scope:
          type: string
          description: >-
            Shared templates are visible to the whole workspace. Personal
            templates are visible only to their owner.
          enum:
            - shared
            - personal
        content:
          type: string
          description: Plain-text message, present for message templates.
        steps:
          type: array
          description: Ordered steps, present for sequence templates.
          items:
            $ref: '#/components/schemas/TemplateStep'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Pagination:
      type: object
      additionalProperties: false
      required:
        - limit
        - has_more
      properties:
        limit:
          type: integer
          format: int32
          example: 10
        has_more:
          type: boolean
        next_cursor:
          type: string
          description: Cursor for the next page. Omitted when there are no more results.
    TemplateStep:
      type: object
      additionalProperties: false
      required:
        - type
        - delay_minutes
      properties:
        type:
          type: string
          enum:
            - message
            - connection_request
        delay_minutes:
          type: integer
          minimum: 0
          description: >-
            Minutes to wait after the previous step, or after launch for the
            first step.
        content:
          type: string
          description: >-
            Plain-text message, required for message steps. For connection
            requests, the optional note, up to 200 characters.
  responses:
    BadRequest:
      description: Invalid request. `message` explains what to fix.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: bad_request
            message: invalid type for field "account_id"
    Unauthorized:
      description: Missing, malformed, invalid, or retired local API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missingAuthorization:
              value:
                code: unauthorized
                message: Authorization header is required
            invalidAuthorizationFormat:
              value:
                code: unauthorized
                message: Authorization header must use Bearer scheme
            invalidAPIKey:
              value:
                code: unauthorized
                message: Invalid API key
    Forbidden:
      description: >-
        API access is not enabled for the organization, or the API key cannot
        resolve to an active organization user.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            forbidden:
              value:
                code: forbidden
                message: you don't have access to this organization
            featureUnavailable:
              value:
                code: billing_feature_not_available
                message: >-
                  Feature 'TalkToHumansAPI' is not available in your current
                  plan
            insufficientCredits:
              value:
                code: billing_insufficient_credits
                message: Insufficient credits
            apiKeyPrincipalInvalid:
              value:
                code: forbidden
                message: >-
                  This API key is no longer linked to an active organization
                  user. Ask an organization admin to regenerate it
    RateLimited:
      description: >-
        Rate limit exceeded. Public routes allow 50 requests per 10 seconds per
        IP and endpoint.
      headers:
        Retry-After:
          description: Seconds to wait before retrying the request.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: rate_limit_exceeded
            message: Rate limit exceeded
    InternalServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: internal_error
            message: An internal error occurred
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Pass API key as `Authorization: Bearer <api_key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.