Slack API ➔ Notion API Payload Specification

Technical reference for automating data exchange between Messaging and Workspace workflows.

💡 How this integration works:

1. Slack API triggers an event when message.channels occurs.
2. Data is packaged into a standard JSON webhook payload.
3. Payload is delivered into your Notion API intake pipeline and mapped to your Workspace targets.

Authentication & Event Specs

ParameterSource (Slack API)Destination (Notion API)
Auth MechanismOAuth Bot TokenBearer Integration Token
Trigger Eventmessage.channelsIngest Pipeline

Sample Webhook JSON Payload

{
  "event": "message.channels_to_notion",
  "timestamp": 1788105199,
  "source": {
    "platform": "Slack API",
    "auth_mode": "OAuth Bot Token",
    "data": {
      "channel_id": "sample_channel_id_val",
      "user_id": "sample_user_id_val",
      "text": "sample_text_val",
      "ts": "sample_ts_val"
    }
  },
  "destination": {
    "platform": "Notion API",
    "auth_mode": "Bearer Integration Token",
    "target_endpoint": "https://api.notion.com/v1/ingest",
    "mapped_fields": {
      "page_id": "{{source.channel_id}}",
      "database_id": "{{source.user_id}}",
      "last_edited_by": "{{source.text}}",
      "properties": "{{source.ts}}"
    }
  }
}

Quick Integration Setup

  1. Retrieve your secret API credentials from your Slack API developer dashboard using authentication method OAuth Bot Token.
  2. Configure the target endpoint URL to route payloads into the Notion API intake pipeline.
  3. Map incoming schema properties according to the JSON specification detailed above.

Expected HTTP Response Codes

Status CodeMeaningTroubleshooting Step
200 OKSuccessPayload accepted and queued for routing.
401 UnauthorizedAuth FailureVerify headers for valid OAuth Bot Token credentials.
422 UnprocessableSchema ErrorCheck field keys alignment between source and target payload.

Related Technical Specifications