Activities
Create custom activity types and write new activity onto accounts.
The {id} parameter accepts either: Internal account ID (UUID format) External ID (any string format)
Rate limit: 120 requests per minute
Authorization: Bearer
The ID or external ID of the account to create the activity for.
Optional HTML content to display in the activity.
Optional contact ID of the actor of the activity.
Timestamp (RFC3339) of when the activity happened. Defaults to the current time if empty.
Optional link to add to the activity.
Optional link text to display on the activity. Defaults to "Open link" if not provided. Applies only if a link is provided.
The slug of the activity to create.
Optional user ID of the actor of the activity.
The request was invalid or could not be completed.
The request could not be authenticated for this API.
The authenticated caller or organization is not allowed to access this endpoint or operation.
The request exceeded the applicable rate limit.
An unexpected internal error occurred.
POST /accounts/{id}/activities HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"body_html": "text",
"contact_id": "text",
"happened_at": "2026-01-01T00:00:00.000Z",
"link": "text",
"link_text": "text",
"slug": "text",
"user_id": "text"
}{
"data": {
"success": true
},
"request_id": "text"
}Returns all custom activity type definitions for the organization.
Rate limit: 30 requests per minute
Authorization: Bearer
The request ID for tracking.
The request was invalid or could not be completed.
The request could not be authenticated for this API.
The authenticated caller or organization is not allowed to access this endpoint or operation.
The request exceeded the applicable rate limit.
An unexpected internal error occurred.
GET /activity-types HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"icon_url": "text",
"id": "text",
"label": "text",
"slug": "text"
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}Returns custom activities for the specified account, ordered from newest to oldest. The {id} parameter accepts either: Internal account ID (UUID format) External ID (any string format)
Rate limit: 300 requests per minute
Authorization: Bearer
The ID or external ID of the account to fetch activities for.
The custom activity type slug to filter by.
The start time (RFC3339) of the activity time range.
The end time (RFC3339) of the activity time range.
The cursor to use for pagination.
The number of activities to fetch. Defaults to 100. Must be greater than 0 and less than or equal to 1000.
The request ID for tracking.
The request was invalid or could not be completed.
The request could not be authenticated for this API.
The authenticated caller or organization is not allowed to access this endpoint or operation.
The request exceeded the applicable rate limit.
An unexpected internal error occurred.
GET /accounts/{id}/activities HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"account_id": "text",
"activity_type": {
"icon_url": "text",
"id": "text",
"label": "text",
"slug": "text"
},
"body_html": "text",
"contact_id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"happened_at": "2026-01-01T00:00:00.000Z",
"id": "text",
"link": "text",
"link_text": "text",
"updated_at": "2026-01-01T00:00:00.000Z",
"user_id": "text"
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}Returns email threads synced to the specified account from connected Gmail and Outlook inboxes, ordered by their latest email from newest to oldest. The {id} parameter accepts either: Internal account ID (UUID format) External ID (any string format)
Rate limit: 120 requests per minute
Authorization: Bearer
The ID or external ID of the account to fetch email activities for.
The start time (RFC3339) of the activity time range, compared against each thread's latest email.
The end time (RFC3339) of the activity time range, compared against each thread's latest email.
The cursor to use for pagination.
The number of email activities to fetch. Defaults to 20. Must be greater than 0 and less than or equal to 50.
The request ID for tracking.
The request was invalid or could not be completed.
The request could not be authenticated for this API.
The authenticated caller or organization is not allowed to access this endpoint or operation.
The request exceeded the applicable rate limit.
An unexpected internal error occurred.
GET /accounts/{id}/email-activities HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"account_id": "text",
"happened_at": "2026-01-01T00:00:00.000Z",
"id": "text",
"messages": [
{
"contact_id": "text",
"email_info": {
"bcc_emails": [
"text"
],
"cc_emails": [
"text"
],
"from_email": "text",
"message_id": "text",
"opens": [
{
"email": "text",
"time": "2026-09-30T16:33:54Z"
}
],
"sender_authentication_status": "pass",
"to_emails": [
"text"
]
},
"id": "text",
"issue_id": "text",
"message_html": "text",
"subject": "text",
"timestamp": "2026-01-01T00:00:00.000Z",
"user_id": "text"
}
]
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}Last updated
Was this helpful?

