Documentation

Documentation

YourOwn SetupYourOwn SDKYourOwn API
Sphere SetupSphere SDKSphere API
  • Resources

›Collect payload

Introduction

  • Copilot.cx Server API

Reference

  • Collect API
  • Collect payload

    • User events
    • Thing events
    • Custom events
    • Misc. events
    • Preexisting sync events
  • Consent endpoint

Appendix

  • Releases

User events

Inform the Copilot.cx system of events related to the user.

Please refer the user_id and thing_id best practices here.

User Created

Notify Copilot.cx that a User was created in your system. Use this when a new user is registered/created in your system.

  • Type: user_created

  • Payload fields:

FieldTypeDescriptionMandatory
user_idStringYour unique user identifierY
first_nameStringUser's first name
last_nameStringUser's last name
emailStringA valid email address to be used for an engagement campaign.
copilot_analysis_consentBooleanIs allowed to be processed (read more)
utc_offestStringRepresenting the time difference from utc. Values range: -1200 to +1459 ( format [+/-]HHMM diff from UTC) OR Z OR 0000
custom_propertiesDictionaryCustom properties or attributes for a given user
  • Example
    {
      "events": [
        {
          "type": "user_created",
          "event_id": "5139f606-a47b-45b9-8fa2-20d1576950be",
          "timestamp": 1559570628993,
          "payload": {
            "email": "juanita.pagac43@mailinator.com",
            "first_name": "Juanita",
            "last_name": "Pagac",
            "user_id": "325ca496-afe8-4f44-bd37-b0dc90bdfdea",
            "copilot_analysis_consent": true,
            "utc_offset": "-0500",
            "custom_properties": {
              "subscription": "premium",
              "is_user_external": true,
              "category": 5
            }
          }
        }
      ]
    }
    

User Updated

Notifies Copilot.cx that a user was updated in your system.

  • Type: user_updated

  • Payload fields:

FieldTypeDescriptionMandatory
user_idStringYour unique user identifierY
first_nameStringUser's first name
last_nameStringUser's last name
emailStringA valid email address to be used for an engagement campaign.
copilot_analysis_consentBooleanIs allowed to be processed (read more)
utc_offestStringRepresenting the time difference from utc. Values range: -1200 to +1459 ( format [+/-]HHMM diff from UTC) OR Z OR 0000
custom_propertiesDictionaryCustom properties or attributes for a given user
  • Example
    {
      "events": [
        {
          "type": "user_updated",
          "event_id": "e8cd902a-72e4-4604-82df-87fd136e12e9",
          "timestamp": 1559570980484,
          "payload": {
            "first_name": "Michael",
            "last_name": "Smith",
            "user_id": "7d979525-82d6-4e66-ac24-936d523340b9",
            "copilot_analysis_consent": true,
            "utc_offset": "-0500",
            "custom_properties": {
              "is_imported": true,
              "imported_before_seconds": 10,
              "type": "expert"
            }
          }
        }
      ]
    }
    

User Deleted

Notify Copilot.cx that a User was deleted in your system. Post this event when user asks to be deleted from your system.

  • Type: user_deleted

  • Payload fields:

FieldTypeDescriptionMandatory
user_idStringYour unique user identifier to deleteY
  • Example
  {
  "events": [
    {
      "type": "user_deleted",
      "event_id": "5139f606-a47b-45b9-8fa2-20d1576950bf",
      "timestamp": 1559570628993,
      "payload": {
        "user_id": "325ca496-afe8-4f44-bd37-b0dc90bdfdea"
      }
    }
  ]
}
← Collect APIThing events →
  • User Created
  • User Updated
  • User Deleted
Copilot
Mail: hello@copilot.cx
Call: (212).398.0001
© Copilot.cx 2025