curl --request POST \
--url https://insights.reforge.com/api/v1/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "conversation-123",
"source": "intercom",
"createdAt": "2024-01-01T00:00:00.000Z",
"contacts": [
{
"id": "<string>",
"shouldUnflattenProperties": true,
"properties": {
"$email": "<string>",
"$name": "<string>",
"$createdAt": "2023-11-07T05:31:56Z",
"$updatedAt": "2023-11-07T05:31:56Z"
},
"account": {
"id": "account-789",
"shouldUnflattenProperties": true,
"properties": {
"$name": "Acme, Inc.",
"$domain": "acme.com",
"$createdAt": "2023-11-07T05:31:56Z",
"$updatedAt": "2023-11-07T05:31:56Z",
"$contractValue": 100000
}
}
}
],
"messages": [
{
"id": "message-789",
"incoming": true,
"contactId": "user-456",
"content": "Hello! I'\''m having trouble...",
"createdAt": "2024-01-01T00:00:00.000Z",
"shouldUnflattenProperties": true,
"properties": {}
}
],
"shouldUnflattenProperties": true,
"properties": {}
}'