API V1
  • Global information
  • Authentication
  • Data format
  • Rate Limit
  • Errors
  • Pagination
RESOURCES
  • Addon providers
  • Addons
  • Alerts
  • Applications
  • Audit Logs
  • Autoscalers
  • Billing
  • Collaborators
  • Container Sizes
  • Cron Tasks
  • Data Access Consents
  • Databases
  • Deployment
  • Domains
  • Environment variables
  • Event Categories
  • Event Types
  • Events
  • Invoices
  • SSH Keys
  • Log Drains
  • Application Logs
  • Metrics
  • Notification Platforms
    • List All Notification Platforms
    • Get a Notification Platform
    • Search a Notification Platform
  • Notifiers
  • One-off Containers
  • Operations
  • Projects
  • Referral
  • Regions
  • SCM Integrations
  • Integration Link
  • Sources
  • Stacks
  • Tokens
  • User Account
LINKS
  • Addon Provider API
  • Database API
  • One-click Deployment API
  • scalingo.json Schema
  • Main site
  • Dashboard

Notifications Platform

Scalingo lets you use different platforms to send your notifications.

Notification platform attributes

field type description
id string unique ID identifying the notification platform
name string name of the notification platform
display_name string human readable name for this notification platform
logo_url string URL to a logo for this notification platform
available_event_ids []string list of event IDs accepted by this platform
description string description of the platform

Example object:

{
  "id": "5982f145d48c3600273ef089",
  "name": "slack",
  "display_name": "Slack",
  "logo_url": "https://cdn2.scalingo.com/dashboard/assets/images/notification/slack-831fd1b21576dbb3e0037b7211ecfd93.svg",
  "available_event_ids": [
    "5982f139d48c360021b1eb69",
    "59c52a9c7651ce001f62f578",
    "5b28be8e85232200126f373c",
    "5b28bf02aa9a340012832362",
    "5b28bf2485232200126f373e"
  ],
  "description": "Send events to your team thanks to Slack Incoming WebHooks."
}

List All Notification Platforms

GET https://$SCALINGO_API_URL/v1/notification_platforms

curl -H "Accept: application/json" -H "Content-Type: application/json" \
  -X GET https://$SCALINGO_API_URL/v1/notification_platforms

Returns 200 OK

{
  "notification_platforms": [
    {
      "id": "5982f145d48c3600273ef089",
      "name": "slack",
      "display_name": "Slack",
      "logo_url": "https://cdn2.scalingo.com/dashboard/assets/images/notification/slack-831fd1b21576dbb3e0037b7211ecfd93.svg",
      "available_event_ids": [
        "5982f139d48c360021b1eb69",
        "59c52a9c7651ce001f62f578",
        "5b28be8e85232200126f373c",
        "5b28bf02aa9a340012832362",
        "5b28bf2485232200126f373e"
      ],
      "description": "Send events to your team thanks to Slack Incoming WebHooks."
    }, {
      "id": "5982f145d48c3600273ef08a",
      "name": "webhook",
      "display_name": "Webhook",
      "logo_url": "https://cdn2.scalingo.com/dashboard/assets/images/notification/webhook-1f16734c1d9b61dff4460d067ab980ec.svg",
      "available_event_ids": [
        "5982f139d48c360021b1eb69",
        "59c52a9c7651ce001f62f578",
        "5b28bf2485232200126f373e"
      ],
      "description": "Send HTTP requests to any target when events happen."
    }
  ]
}

Get a Notification Platform

GET https://$SCALINGO_API_URL/v1/notification_platforms/[:id]

curl -H "Accept: application/json" -H "Content-Type: application/json" \
  -X GET https://$SCALINGO_API_URL/v1/notification_platforms/5982f145d48c3600273ef089

Returns 200 OK

{
  "notification_platform": {
    "id": "5982f145d48c3600273ef089",
    "name": "slack",
    "display_name": "Slack",
    "logo_url": "https://cdn2.scalingo.com/dashboard/assets/images/notification/slack-831fd1b21576dbb3e0037b7211ecfd93.svg",
    "available_event_ids": [
      "5982f139d48c360021b1eb69",
      "59c52a9c7651ce001f62f578",
      "5b28be8e85232200126f373c",
      "5b28bf02aa9a340012832362",
      "5b28bf2485232200126f373e"
    ],
    "description": "Send events to your team thanks to Slack Incoming WebHooks."
  }
}

Search a Notification Platform

GET https://$SCALINGO_API_URL/v1/notification_platforms/search?name=[:platform_name]

curl -H "Accept: application/json" -H "Content-Type: application/json" \
  -X GET https://$SCALINGO_API_URL/v1/notification_platforms/search?name=slack

Returns 200 OK

{
  "notification_platforms": [
    {
      "id": "5982f145d48c3600273ef089",
      "name": "slack",
      "display_name": "Slack",
      "logo_url": "https://cdn2.scalingo.com/dashboard/assets/images/notification/slack-831fd1b21576dbb3e0037b7211ecfd93.svg",
      "available_event_ids": [
        "5982f139d48c360021b1eb69",
        "59c52a9c7651ce001f62f578",
        "5b28be8e85232200126f373c",
        "5b28bf02aa9a340012832362",
        "5b28bf2485232200126f373e"
      ],
      "description": "Send events to your team thanks to Slack Incoming WebHooks."
    }
  ]
}