pulso Docs

API

View as Markdown

Account

These endpoints need account:read. They return the whole list, by name, so you can find the ids to assign or filter by.

  • GET /v1/members: the active members, with their role and teams
  • GET /v1/teams
  • GET /v1/categories: the monitors’ categories
  • GET /v1/slack_integrations: the Slack workspaces, as { "id", "name", "workspace_id" }
  • GET /v1/slack_integrations/:id/destinations: a workspace’s channels and users, asked of Slack each time. ?query= keeps those whose name contains it.
curl https://api.pulso.run/v1/members \
  -H "Authorization: Bearer ak_..."
{
  "members": [
    {
      "id": "01M7ZJ3A…",
      "name": "Ada Lovelace",
      "email": "ada@example.com",
      "role": "operator",
      "teams": [ { "id": "01M7ZJ3B…", "name": "Payments Ops" } ]
    }
  ]
}

Teams and categories come as { "teams": [ { "id", "name" } ] } and { "categories": [ { "id", "name" } ] }.

A playbook’s slackNotification step takes an integration’s id as its slack_integration_id, and a channel’s or user’s id as its destination:

{
  "channels": [ { "id": "C04H…", "name": "payments-alerts" } ],
  "users": [ { "id": "U02K…", "name": "ada", "real_name": "Ada Lovelace" } ]
}

If Slack refuses, for instance because the app was removed from the workspace, the answer is a 409 with Slack’s error.