TalkToHumans Templates API
Message and sequence templates.
Message and sequence templates.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/talktohumans-app:talktohumans-app-templates-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TalkToHumans Public Templates API
version: 1.0.0
license:
name: Proprietary
description: 'Read and organize the LinkedIn organization data your team already manages in TalkToHumans: accounts, contacts, signals, content, tags, notes, custom fields, sequence state, conversations, templates, and views.'
servers:
- url: https://api.talktohumans.app
description: TalkToHumans API
security:
- bearerAuth: []
tags:
- name: Templates
description: Message and sequence templates.
paths:
/v1/templates:
get:
tags:
- Templates
x-mint:
href: /developers/templates/list-templates
operationId: listTemplates
summary: List templates
description: List shared and personal templates
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'
post:
tags:
- Templates
x-mint:
href: /developers/templates/create-template
operationId: createTemplate
summary: Create template
description: Create a shared or personal template
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTemplateRequest'
examples:
message:
summary: Create a message template
value:
name: Event follow-up
type: message
content: Hi {{first_name}}, great meeting you at {{event_name}}. Would you be open to a quick call next week?
sequence:
summary: Create a sequence template
value:
name: Connect and follow up
type: sequence
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}}?
responses:
'201':
description: Template created.
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateEnvelope'
example:
data:
template:
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'
'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'
/v1/templates/{template_id}:
patch:
tags:
- Templates
x-mint:
href: /developers/templates/update-template
operationId: updateTemplate
summary: Update template
description: Update a shared or personal template
parameters:
- name: template_id
in: path
required: true
description: Template ID returned by `GET /v1/templates` or `POST /v1/templates`.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateTemplateRequest'
examples:
rename:
summary: Rename a template
value:
name: Event follow-up (short)
content:
summary: Replace message content
value:
content: Hi {{first_name}}, great meeting you at {{event_name}}. Open to a quick call?
responses:
'200':
description: Template updated.
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateEnvelope'
example:
data:
template:
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}}. Open to a quick call?
created_at: '2026-06-02T12:00:00Z'
updated_at: '2026-06-09T12:00:00Z'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
components:
schemas:
CreateTemplateRequest:
type: object
additionalProperties: false
required:
- name
- type
properties:
name:
type: string
minLength: 1
maxLength: 200
description: Template name shown in TalkToHumans.
type:
type: string
enum:
- message
- sequence
scope:
type: string
description: '`shared` for the whole workspace, or `personal` for the API key''s or MCP user''s own templates.'
enum:
- shared
- personal
default: shared
content:
type: string
minLength: 1
description: 'Plain-text message. Required for message templates and not allowed for sequence templates.
Use contact and company variables such as `{{first_name}}` or `{{company_name}}`, or your own `{{key}}` variables filled when drafting.
'
steps:
type: array
minItems: 1
description: Ordered steps. Required for sequence templates and not allowed for message templates.
items:
$ref: '#/components/schemas/TemplateStep'
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 without attachments. For connection requests, the optional note, up to 200 characters.
attachments:
type: array
description: 'Files a message step sends, in order, each written as `{"file_id": ...}` from `POST /v1/files`. Reads also give each file''s details and a link to open it. Writing steps replaces their attachments too, so keep the ones to send. Message steps only.'
items:
$ref: '#/components/schemas/LinkedInFile'
TemplateResponse:
type: object
additionalProperties: false
required:
- template
properties:
template:
$ref: '#/components/schemas/Template'
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/conversations/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
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
- linkedin_not_connected
- workspace_setup_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
- request_timeout
- upstream_error
message:
type: string
description: Human-readable error message.
action_url:
type: string
format: uri
description: Web app page that fixes the error, such as the plans or billing settings. Sent with billing errors. Only workspace admins can change billing.
debug:
type: string
description: Development-only debug details.
ListTemplatesResponse:
type: object
additionalProperties: false
required:
- templates
- pagination
properties:
templates:
type: array
items:
$ref: '#/components/schemas/Template'
pagination:
$ref: '#/components/schemas/Pagination'
UpdateTemplateRequest:
type: object
additionalProperties: false
description: Provide at least one of `name`, `content`, or `steps`. Omitted fields are unchanged.
minProperties: 1
properties:
name:
type: string
minLength: 1
maxLength: 200
description: Template name shown in TalkToHumans.
content:
type: string
minLength: 1
description: Plain-text message. Message templates only.
steps:
type: array
minItems: 1
description: Replacement for all steps, including their attachments. Sequence templates only.
items:
$ref: '#/components/schemas/TemplateStep'
TemplateEnvelope:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/TemplateResponse'
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.
LinkedInFile:
type: object
additionalProperties: false
description: An uploaded file. Writes read only `file_id`.
required:
- file_id
properties:
file_id:
type: string
description: File ID returned by `POST /v1/files`.
kind:
type: string
description: '`file` is a PDF.'
enum:
- image
- video
- audio
- file
file_name:
type: string
mime_type:
type: string
size_bytes:
type: integer
duration_ms:
type: integer
description: Length of a video or audio file in milliseconds, when known.
width:
type: integer
height:
type: integer
url:
type: string
format: uri
description: Link to open the file, valid for an hour.
ListTemplatesEnvelope:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/ListTemplatesResponse'
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
responses:
Conflict:
description: Request conflicts with an existing resource.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
code: conflict
message: custom field key already exists
NotFound:
description: Requested resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
code: not_found
message: participant not found
BadRequest:
description: Invalid request. `message` explains what to fix.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
code: bad_request
message: field "account_id" must be a string, got number; IDs are strings, e.g. "42"
InternalServerError:
description: Unexpected server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
code: internal_error
message: An internal error occurred
Forbidden:
description: API access is not enabled for the organization, the API key cannot resolve to an active organization user, or the login has no workspace yet.
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: MCP and API access needs the Starter or Pro plan. This workspace is on the Free plan.
action_url: https://app.talktohumans.app/?settings=usage
insufficientCredits:
value:
code: billing_insufficient_credits
message: 'Not enough credits: this needs 50 and 12 are left.'
action_url: https://app.talktohumans.app/?settings=usage
apiKeyPrincipalInvalid:
value:
code: forbidden
message: This API key is no longer linked to an active organization user. Ask an organization admin to regenerate it
workspaceSetupRequired:
value:
code: workspace_setup_required
message: This TalkToHumans sign-in has no workspace yet. Open https://app.talktohumans.app, sign in with the same email to finish setting up TalkToHumans, then try again.
Unauthorized:
description: Missing, malformed, invalid, or retired API key, or an invalid or expired login access token.
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
invalidAccessToken:
value:
code: unauthorized
message: Invalid or expired access token
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
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Pass `Authorization: Bearer <credential>`, where the credential is either:
- an API key (`sk_…`), generated by an organization admin in Settings, for scripts and automation;
- an access token from `tth auth login` (the TalkToHumans CLI), which any member of the workspace can use.
Both resolve to the same organization and user. A login token acts in the user''s workspace: one with no workspace yet returns `403 workspace_setup_required`, and one in several workspaces returns `403 forbidden` (use an API key instead).
'