Activities
Create custom activity types and write new activity onto accounts.
Create a new activity for an account
The {id} parameter accepts either:
Internal account ID (UUID format)
External ID (any string format)
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.
POST /accounts/{id}/activities HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 125
{
"body_html": "text",
"contact_id": "text",
"happened_at": "text",
"link": "text",
"link_text": "text",
"slug": "text",
"user_id": "text"
}{
"data": {
"success": true
},
"request_id": "text"
}Get custom activity types
Authorization: Bearer
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"
}Last updated
Was this helpful?

