---
title: "Create a activity"
method: POST
path: "/v1/activities"
tags: ["Activity"]
---

# Create a activity

`POST /v1/activities`

Creates a new activity.

## Request body

- ActivityCreate
  - `subject` string, required
  - `type` string
  - `startedAt` string, date-time
  - `endedAt` string, date-time
  - `participants` Reference[]
    - `id` string
    - `type` string — The referenced resource type, e.g. "user" or "team".
  - `deals` string[]
  - `externalReference` ExternalReference — A structured reference to a record in an external source system.
    - `source` string — The external system, e.g. a CRM provider.
    - `id` string — The record id in the external system.
  - `isPrivate` boolean

## Response `201`

Creates a new activity.

- object
  - `data` Activity
    - `id` string
    - `subject` string
    - `type` string
    - `startedAt` string, date-time
    - `endedAt` string, date-time
    - `participants` Reference[]
      - `id` string
      - `type` string — The referenced resource type, e.g. "user" or "team".
    - `deals` string[]
    - `relatedResources` Reference[]
      - `id` string
      - `type` string — The referenced resource type, e.g. "user" or "team".
    - `externalReference` ExternalReference — A structured reference to a record in an external source system.
      - `source` string — The external system, e.g. a CRM provider.
      - `id` string — The record id in the external system.
    - `isPrivate` boolean
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — The request body or parameters are invalid.
- `401` — Missing or invalid API key credentials.

---

[API](https://skmtc.net/metal/apis/metal-api.md) · [All operations](https://skmtc.net/metal/apis/metal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metal/metal-api/revisions/afb7b675d5b2/schema)
