Webhooks
Slack message sent
GraphQL
- Introduction
- Authentication
- Schema
- Customers
- Companies
- Tenants
- Threads
- Tiers
- Events
- Labels
- Messaging
- Pagination
- Error handling
- Error codes
- API Explorer
- Typescript SDK
Reference
- Customer cards
- Webhooks
- Overview
- Webhook Versions
- Using Typescript
- Thread created
- Thread status transitioned
- Thread assignment transitioned
- Thread labels changed
- Thread priority changed
- Note created
- Email received
- Email sent
- Slack message received
- Slack message sent
- Chat sent
- Chat received
- Thread Field created
- Thread Field updated
- Thread Field deleted
- Thread SLA status transitioned
- Customer created
- Customer updated
- Customer deleted
- Customer Group Membership Changed Event
- Request signing
- mTLS
- UI Components
- Attachments
Webhooks
Slack message sent
This event is fired when a Slack message is sent in your workspace.
Schema
Example:
{
"timestamp": "2024-06-19T08:08:42.701Z",
"workspaceId": "w_01H0J90EVVNJN5JNPC61DQZWAT",
"payload": {
"eventType": "thread.slack_message_sent",
"thread": {
"id": "th_01J0179YSYDSC77PQ1VY8M9Y54",
"customer": {
"id": "c_01HKW3QWV31M2N2P59BQRFWSWD",
"email": {
"email": "leslie@atrium.so",
"isVerified": true,
"verifiedAt": "2024-01-11T11:15:27.714Z"
},
"externalId": null,
"fullName": "Leslie Knope",
"shortName": null,
"markedAsSpamAt": null,
"markedAsSpamBy": null,
"customerGroupMemberships": [],
"createdAt": "2024-01-11T11:15:27.715Z",
"createdBy": { "actorType": "system", "system": "slack_webhook_handler" },
"updatedAt": "2024-02-22T16:40:11.619Z",
"updatedBy": { "actorType": "system", "system": "slack_webhook_handler" }
},
"title": "Slack message in #plain-atrium",
"previewText": "Hi, I'm seeing some errors with your API. Can you help?",
"priority": 0,
"externalId": null,
"status": "DONE",
"statusChangedAt": "2024-06-13T11:00:57.842Z",
"statusChangedBy": { "actorType": "user", "userId": "u_01GT9GAEDQ5116E1CJ0H3K06CK" },
"statusDetail": null,
"assignee": null,
"assignedAt": null,
"labels": [
{
"id": "l_01J017A070NA7NEPDGGAFEW6B4",
"labelType": {
"id": "lt_01HB924PNE3S7DVQV3SFYKW2F4",
"name": "Technical issue",
"icon": "code",
"isArchived": false,
"archivedAt": null,
"archivedBy": null,
"createdAt": "2023-09-26T15:36:21.422Z",
"createdBy": { "actorType": "system", "system": "job" },
"updatedAt": "2023-09-26T15:36:21.422Z",
"updatedBy": { "actorType": "system", "system": "job" }
},
"createdAt": "2024-06-10T14:02:20.768Z",
"createdBy": { "actorType": "system", "system": "thread_triage_handler" },
"updatedAt": "2024-06-10T14:02:20.768Z",
"updatedBy": { "actorType": "system", "system": "thread_triage_handler" }
}
],
"firstInboundMessageInfo": {
"timestamp": "2024-06-10T14:02:16.225Z",
"messageSource": "SLACK",
"actorId": null,
"actorType": null
},
"firstOutboundMessageInfo": null,
"lastInboundMessageInfo": {
"timestamp": "2024-06-10T14:02:16.225Z",
"messageSource": "SLACK",
"actorId": null,
"actorType": null
},
"lastOutboundMessageInfo": null,
"supportEmailAddresses": [],
"createdAt": "2024-06-10T14:02:19.326Z",
"createdBy": { "actorType": "customer", "customerId": "c_01HKW3QWV31M2N2P59BQRFWSWD" },
"updatedAt": "2024-06-13T11:00:58.164Z",
"updatedBy": { "actorType": "system", "system": "service_level_agreement_handler" }
},
"slackMessage": {
"timelineEntryId": "t_01J0QRMVMMTXSFXD7M11JVH4BZ",
"id": "sm_01J0QRMVMMTE7PNRZ98MH9Y4DK",
"text": "Sure thing - what errors or error codes are you getting?",
"resolvedText": "Sure thing - what errors or error codes are you getting?",
"attachments": [],
"slackChannelId": "C06EJ1397MY",
"slackChannelName": "plain-atrium",
"slackMessageLink": "https://plain-demo.slack.com/archives/C06EJ1397MY/p1718784519828399?thread_ts=1718028136.225979",
"createdAt": "2024-06-19T08:08:42.701Z",
"createdBy": { "actorType": "user", "userId": "u_01FSVKMHFDHJ3H5XFM20EMCBQN" },
"updatedAt": "2024-06-19T08:08:42.701Z",
"updatedBy": { "actorType": "user", "userId": "u_01FSVKMHFDHJ3H5XFM20EMCBQN" }
}
},
"id": "pEv_01J0QRMYED7BE28DR5J8SHV9P4",
"webhookMetadata": {
"webhookTargetId": "whTarget_01J0QRJ785442SC6Z4RR6CAR2J",
"webhookTargetVersion": "2024-09-18",
"webhookDeliveryAttemptId": "whAttempt_01J0QRMZ43VXY2Q2KGBF5BET47",
"webhookDeliveryAttemptNumber": 1,
"webhookDeliveryAttemptTimestamp": "2024-06-19T08:08:43.395Z"
},
"type": "thread.slack_message_sent"
}
Was this page helpful?
On this page