TalkToHumans Activity API
Activity for organization reporting.
Activity for organization reporting.
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-activity-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 Activity 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: Activity
description: Activity for organization reporting.
paths:
/v1/activity:
get:
tags:
- Activity
x-mint:
href: /developers/activity/list-activity
operationId: listActivity
summary: List activity
description: Lists activity events for the current organization
parameters:
- $ref: '#/components/parameters/ActivityFrom'
- $ref: '#/components/parameters/ActivityTo'
- $ref: '#/components/parameters/ActivityTimezone'
- $ref: '#/components/parameters/ActivityAccountId'
- $ref: '#/components/parameters/ActivityUserId'
- $ref: '#/components/parameters/ActivityEventType'
- $ref: '#/components/parameters/ActivityChannel'
- $ref: '#/components/parameters/ActivitySource'
- $ref: '#/components/parameters/ActivityTag'
- $ref: '#/components/parameters/ActivityLimit'
- $ref: '#/components/parameters/ActivityCursor'
responses:
'200':
description: Activity rows.
content:
application/json:
schema:
$ref: '#/components/schemas/ListActivityEnvelope'
example:
data:
generated_at: '2026-07-09T12:00:00Z'
timezone: America/Los_Angeles
filters:
from: '2026-07-01T07:00:00Z'
to: '2026-07-10T07:00:00Z'
to_exclusive: true
account_ids:
- '42'
event_types:
- message_sent
- outbound_reply_received
channels:
- linkedin_message
sources:
- canonical_messages
tag_attribution: unavailable
activity:
- id: '987'
occurred_at: '2026-07-09T10:30:00Z'
recorded_at: '2026-07-09T10:30:04Z'
event_type: message_sent
source: canonical_messages
channel: linkedin_message
user_id: '7'
account_id: '42'
subject_key: linkedin:participant:linkedin:urn:li:fsd_profile:abc
attribution_method: user_and_account
metadata:
provider_message_id: urn:li:msg:abc
provider_chat_id: urn:li:msg_conversation:def
message_source: linkedin_message
pagination:
limit: 50
has_more: false
caveats:
- 'Account 42 (Jane Doe): inbox last synced 2026-07-08T18:00:00Z, so messages sent or received on LinkedIn after that may be missing.'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/AdminForbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
/v1/activity/summary:
get:
tags:
- Activity
x-mint:
href: /developers/activity/summarize-activity
operationId: summarizeActivity
summary: Summarize activity
description: Summarizes LinkedIn activity and performance for the current organization
parameters:
- $ref: '#/components/parameters/ActivityFrom'
- $ref: '#/components/parameters/ActivityTo'
- $ref: '#/components/parameters/ActivityTimezone'
- $ref: '#/components/parameters/ActivityAccountId'
- $ref: '#/components/parameters/ActivityUserId'
- $ref: '#/components/parameters/ActivityEventType'
- $ref: '#/components/parameters/ActivityChannel'
- $ref: '#/components/parameters/ActivitySource'
- $ref: '#/components/parameters/ActivityTag'
responses:
'200':
description: Activity summary.
content:
application/json:
schema:
$ref: '#/components/schemas/ActivitySummaryEnvelope'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/AdminForbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalServerError'
components:
parameters:
ActivityTimezone:
name: timezone
in: query
description: IANA timezone used for date-only `from` and `to` filters. Defaults to `UTC`.
schema:
type: string
default: UTC
example: America/Los_Angeles
ActivityFrom:
name: from
in: query
description: 'Inclusive activity window start. Use RFC3339 or `YYYY-MM-DD`.
Date-only values are interpreted in the requested `timezone`.
'
schema:
type: string
example: '2026-07-01'
ActivitySource:
name: source
in: query
description: 'Filter by activity emitter source, such as `canonical_messages`, `canonical_chats`,
`canonical_sequence_steps`, `sequence_runner_report`, or `canonical_account_participants`.
Repeat the query parameter for multiple sources. The backend also accepts comma-separated values.
'
schema:
type: array
items:
type: string
style: form
explode: true
ActivityTo:
name: to
in: query
description: 'Activity window end. Use RFC3339 or `YYYY-MM-DD`.
A `YYYY-MM-DD` date is the last day included, in the requested `timezone`: for one week, pass its first and last days. An RFC3339 time is excluded.
The response repeats the normalized exclusive instant in `filters.to` (or `window.to` for the summary) with `to_exclusive: true`.
'
schema:
type: string
example: '2026-07-10'
ActivityChannel:
name: channel
in: query
description: 'Filter by activity channel, such as `linkedin_message`, `linkedin_inmail`, or `linkedin_connection`.
Repeat the query parameter for multiple channels. The backend also accepts comma-separated values.
'
schema:
type: array
items:
type: string
style: form
explode: true
ActivityUserId:
name: user_id
in: query
description: 'Filter by TalkToHumans user ID in activity facts.
Repeat the query parameter for multiple users. The backend also accepts comma-separated values.
'
schema:
type: array
items:
type: string
pattern: ^[1-9][0-9]*$
style: form
explode: true
ActivityCursor:
name: cursor
in: query
description: Opaque cursor from the previous `GET /v1/activity` response's `pagination.next_cursor`.
schema:
type: string
ActivityLimit:
name: limit
in: query
description: Page size for `GET /v1/activity`. Defaults to 50 and must be between 1 and 200.
schema:
type: integer
minimum: 1
maximum: 200
default: 50
ActivityAccountId:
name: account_id
in: query
description: 'Filter by TalkToHumans LinkedIn account ID in activity facts.
Repeat the query parameter for multiple accounts. The backend also accepts comma-separated values.
'
schema:
type: array
items:
type: string
pattern: ^[1-9][0-9]*$
style: form
explode: true
ActivityTag:
name: tag
in: query
description: Reserved for future tag-attributed reporting. Passing this parameter currently returns `400 bad_request`.
schema:
type: string
ActivityEventType:
name: event_type
in: query
description: 'Filter by activity event type.
Repeat the query parameter for multiple event types. The backend also accepts comma-separated values.
'
schema:
type: array
items:
$ref: '#/components/schemas/ActivityEventType'
style: form
explode: true
schemas:
ActivityDerivedMetrics:
type: object
additionalProperties: false
required:
- contacts_contacted_outbound
- contacts_replied_to_outbound
- reply_rate
- connection_requests_sent
- connection_requests_accepted
- connection_request_acceptance_rate
- basis
properties:
contacts_contacted_outbound:
type: integer
description: Conversations opened with a cold message in the window.
contacts_replied_to_outbound:
type: integer
description: Of those conversations, how many got a reply, including after the window.
reply_rate:
type:
- number
- 'null'
format: double
minimum: 0
maximum: 1
description: Replied conversations divided by conversations opened. Same as the analytics page.
connection_requests_sent:
type: integer
description: Connection requests sent in the window.
connection_requests_accepted:
type: integer
description: Contacts asked to connect in the window who accepted, including after the window.
connection_request_acceptance_rate:
type:
- number
- 'null'
format: double
minimum: 0
maximum: 1
description: Accepted contacts divided by distinct contacts asked to connect. Same as the analytics page.
basis:
type: string
description: How the funnel counts leads and outcomes.
ActivityEventType:
type: string
enum:
- connection_request_sent
- connection_request_accepted
- incoming_connection_request_accepted
- message_scheduled
- message_sent
- follow_up_sent
- message_received
- outbound_reply_received
- template_run_started
- template_run_replied
- content_engagers_imported
ActivityListResponse:
type: object
additionalProperties: false
required:
- generated_at
- timezone
- filters
- activity
- pagination
- caveats
properties:
generated_at:
type: string
format: date-time
timezone:
type: string
description: IANA timezone used to interpret date-only request filters.
filters:
$ref: '#/components/schemas/ActivityFilters'
activity:
type: array
items:
$ref: '#/components/schemas/ActivityEvent'
pagination:
$ref: '#/components/schemas/ActivityPagination'
caveats:
type: array
description: Why some activity may be missing, such as a LinkedIn list not synced recently. Empty when nothing is known to be missing.
items:
type: string
ActivitySummaryEnvelope:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/ActivitySummaryResponse'
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.
ActivityWindow:
type: object
additionalProperties: false
description: The window the counts cover, after date-only values were resolved in `timezone`.
required:
- to_exclusive
properties:
from:
type: string
format: date-time
description: Normalized inclusive lower bound in UTC, when supplied.
to:
type: string
format: date-time
description: Normalized exclusive upper bound in UTC, when supplied.
to_exclusive:
type: boolean
description: Always true. Counts include events where `occurred_at < to`.
ActivityIdCount:
type: object
additionalProperties: false
required:
- count
properties:
id:
type: string
count:
type: integer
unattributed:
type: boolean
ActivityPagination:
type: object
additionalProperties: false
required:
- limit
- has_more
properties:
limit:
type: integer
format: int32
example: 50
has_more:
type: boolean
next_cursor:
type: string
description: Cursor for the next activity page. Omitted when there are no more results.
ListActivityEnvelope:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/ActivityListResponse'
ActivityEvent:
type: object
additionalProperties: false
required:
- id
- occurred_at
- recorded_at
- event_type
- source
- attribution_method
properties:
id:
type: string
description: TalkToHumans activity event ID.
occurred_at:
type: string
format: date-time
description: When the activity happened.
recorded_at:
type: string
format: date-time
description: When TalkToHumans recorded the activity.
event_type:
$ref: '#/components/schemas/ActivityEventType'
source:
type: string
description: Backend emitter that recorded the fact.
example: canonical_messages
channel:
type: string
description: Activity channel when known.
example: linkedin_message
user_id:
type: string
description: TalkToHumans user ID when the fact can be attributed to a user.
account_id:
type: string
description: TalkToHumans LinkedIn account ID when the fact can be attributed to an account.
subject_key:
type: string
description: Stable content-free contact identity used to deduplicate reporting metrics.
template_run_public_id:
type: string
description: Template-run identity when the activity belongs to attributed outreach.
template_key:
type: string
description: Stable opaque template identity snapshotted when the activity was recorded.
template_public_id:
type: string
template_type:
type: string
enum:
- normal
- sequence
attribution_method:
type: string
enum:
- user_and_account
- user
- account
- unattributed
metadata:
$ref: '#/components/schemas/ActivityMetadata'
ActivitySummaryTotals:
type: object
additionalProperties: false
required:
- events
- unattributed_user_events
- unattributed_account_events
properties:
events:
type: integer
unattributed_user_events:
type: integer
unattributed_account_events:
type: integer
ActivitySummaryResponse:
type: object
additionalProperties: false
required:
- generated_at
- timezone
- window
- totals
- by_event_type
- by_channel
- by_source
- by_user
- by_account
- by_template
- template_metrics_basis
- metrics
- caveats
properties:
generated_at:
type: string
format: date-time
timezone:
type: string
window:
$ref: '#/components/schemas/ActivityWindow'
totals:
$ref: '#/components/schemas/ActivitySummaryTotals'
by_event_type:
type: array
items:
$ref: '#/components/schemas/ActivityStringCount'
by_channel:
type: array
items:
$ref: '#/components/schemas/ActivityStringCount'
by_source:
type: array
items:
$ref: '#/components/schemas/ActivityStringCount'
by_user:
type: array
items:
$ref: '#/components/schemas/ActivityIdCount'
by_account:
type: array
items:
$ref: '#/components/schemas/ActivityIdCount'
by_template:
type: array
description: Per-template conversion metrics derived from attributed activity facts.
items:
$ref: '#/components/schemas/ActivityTemplateMetrics'
template_metrics_basis:
type: string
description: Run activation and single-reply attribution rule used for per-template rates.
metrics:
$ref: '#/components/schemas/ActivityDerivedMetrics'
caveats:
type: array
description: Why some counts may be too low, such as a LinkedIn list not synced recently. Empty when nothing is known to be missing.
items:
type: string
ActivityMetadata:
type: object
additionalProperties:
type: string
description: 'Small machine-readable metadata allowlist. Possible keys include `chat_provider`, `invite_entity_urn`,
`invite_id`, `invitation_id`, `invitation_urn`, `message_mode`, `message_public_id`,
`message_source`, `occurred_at_basis`, `outcome`, `participant_provider`, `position`,
`previous_invite_type`, `provider_chat_id`, `provider_message_id`, `provider_participant_id`,
`reason`, `relationship_source`, `reply_basis`, `scheduled_for`, `sequence_step_public_id`,
`task_type`, `template_run_public_id`, and `template_status`.
Message text, attachments, notes, drafts, and generated message bodies are never returned here.
'
ActivityFilters:
type: object
additionalProperties: false
required:
- to_exclusive
- tag_attribution
properties:
from:
type: string
format: date-time
description: Normalized inclusive lower bound in UTC, when supplied.
to:
type: string
format: date-time
description: Normalized exclusive upper bound in UTC, when supplied.
to_exclusive:
type: boolean
description: Always true. Activity queries include events where `occurred_at < to`.
account_ids:
type: array
items:
type: string
user_ids:
type: array
items:
type: string
event_types:
type: array
items:
$ref: '#/components/schemas/ActivityEventType'
channels:
type: array
items:
type: string
sources:
type: array
items:
type: string
tag_attribution:
type: string
enum:
- unavailable
description: Tag filtering is intentionally unavailable until activity events include tag attribution metadata.
ActivityTemplateMetrics:
type: object
additionalProperties: false
required:
- template_key
- template_public_id
- template_type
- outreach_runs_started
- outreach_runs_replied
- reply_rate
- connection_requests_sent
- connection_requests_accepted
- connection_request_acceptance_rate
properties:
template_key:
type: string
description: Stable opaque template identity including scope and ownership.
template_public_id:
type: string
template_type:
type: string
enum:
- normal
- sequence
outreach_runs_started:
type: integer
description: Distinct template runs activated after a delivered outbound action.
outreach_runs_replied:
type: integer
description: Activated template runs credited with a reply.
reply_rate:
type:
- number
- 'null'
format: double
minimum: 0
maximum: 1
connection_requests_sent:
type: integer
connection_requests_accepted:
type: integer
connection_request_acceptance_rate:
type:
- number
- 'null'
format: double
minimum: 0
maximum: 1
ActivityStringCount:
type: object
additionalProperties: false
required:
- count
properties:
key:
type: string
count:
type: integer
missing:
type: boolean
responses:
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
AdminForbidden:
description: API access is not enabled for the organization, the API key cannot resolve to an active organization user, or the credential's user is not an organization admin.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
adminRequired:
summary: Requires an organization admin (API key or login)
value:
code: forbidden
message: Only organization admins can perform this action.
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.
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
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
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).
'