---
title: "Create a new activity for an account"
method: POST
path: "/accounts/{id}/activities"
tags: ["accounts"]
---

# Create a new activity for an account

`POST /accounts/{id}/activities`

The {id} parameter accepts either:

Internal account ID (UUID format)

External ID (any string format)

**Rate limit:** 20 requests per minute

## Path parameters

- `id` string, required

## Request body

- CreateActivityRequest
  - `body_html` string — Optional HTML content to display in the activity.
  - `contact_id` string — Optional contact ID of the actor of the activity.
  - `happened_at` string — Timestamp (RFC3339) of when the activity happened. Defaults to the current time if empty.
  - `link` string — Optional link to add to the activity.
  - `link_text` string — Optional link text to display on the activity. Defaults to "Open link" if not provided. Applies only if a link is provided.
  - `slug` string, required — The slug of the activity to create.
  - `user_id` string — Optional user ID of the actor of the activity.

## Response `200`

- CreateActivityResponseBody
  - `data` CreateActivityResponseData
    - `success` boolean
  - `request_id` string

## Other responses

- `400` — The request was invalid or could not be completed.
- `404`
- `500` — An unexpected internal error occurred.

---

[API](https://skmtc.net/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.net/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usepylon/pylon-api/versions/999c51740b4e/schema)
