Activities

Logs a note, email, call or meeting on a contact's timeline, optionally on one of their deals. body holds up to 10,000 characters. A meeting may have no contact and may carry ends_at. The author is the team member whose key made the call, or the agent's chat (author_agent) when Crevio's agent logs it.

post/activities

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

ActivityRequest required
kind, 'note' | 'email' | 'call' | 'meeting'

What happened: note, email, call or meeting. Defaults to note on create. Stage changes are written when a deal moves and cannot be logged by hand.

contact, string nullable

Contact ID (con_...) the activity is about. Required unless kind is meeting or deal is set; with a deal it must be the deal's contact.

deal, string nullable

Deal ID (deal_...) the activity belongs to. Its contact becomes the activity's contact.

body, string

What was said or decided: the note, the email's gist, the call summary or the meeting minutes.

occurred_at, string date-time

When it happened. Defaults to now.

ends_at, string date-time nullable

When a meeting ended. Only for meeting, and not before occurred_at.

Response

Activity logged

Activity required
id, string required
object, string required
kind, 'note' | 'email' | 'call' | 'meeting' | 'stage' required
body, string nullable required
occurred_at, string date-time required
ends_at, string date-time nullable required
author_agent, string nullable required
metadata, object required
created_at, string date-time required
updated_at, string date-time required
author_user, string nullable required
contact, union required

ID by default, full object when expanded

deal, union required

ID by default, full object when expanded

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision