# Squadcast

> Raise, acknowledge, reassign and resolve Squadcast incidents, add notes, tags and responders, look up services, teams, users, escalation policies, schedules and squads, and follow new, acknowledged and resolved incidents.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/squadcast

## Actions

### Acknowledge incident

Acknowledge an incident, so Squadcast stops escalating it.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": "example"
  }
}
```

### Add incident note

Add a note to an incident's war room.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.
- Note (`message`, text, required): The note.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "id": "example",
      "incident_id": "example",
      "message": "example",
      "type": "example",
      "user": {
        "first_name": "example",
        "id": "example",
        "last_name": "example"
      },
      "user_id": "example"
    }
  }
}
```

### Add incident responders

Bring more people into an incident, who are notified.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.
- Users (`user_ids`, list, required): The people to add.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "additional_responders": [
        {
          "id": "example",
          "name": "example",
          "time_of_assignment": "example",
          "type": "example"
        }
      ]
    }
  }
}
```

### Add incident tags

Add tags to an incident. Tags it already has are kept.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.
- Tags (`tags`, object, required): The tags to add, as name and value pairs.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "alert_source_id": "example",
      "assignedTo": [
        {
          "id": "example",
          "reason": "example",
          "timeOfAssignment": "example",
          "type": "example"
        }
      ],
      "description": "example",
      "id": "example",
      "incidentNumber": 1,
      "last_acknowledged_at": "example",
      "message": "example",
      "service_id": "example",
      "status": "example",
      "tags": {},
      "timeOfCreation": "example",
      "updated_at": "example"
    }
  }
}
```

### Create incident

Raise an incident on a service, which notifies whoever its escalation policy says. Returns the event ID that resolves it, and the incident's ID once Squadcast has made it.

**Inputs**

- Service (`service_id`, text, required): The service.
- Message (`message`, text, required): What is happening. It is the incident's title.
- Description (`description`, text): More detail about the incident.
- Priority (`priority`, text): How urgent it is. Leave empty to leave it unset. One of: `P1` (P1 (critical)), `P2` (P2 (high)), `P3` (P3 (moderate)), `P4` (P4 (low)), `P5` (P5 (informational)).
- Tags (`tags`, object): Tags for the incident, as name and value pairs, such as `severity` and `high`.
- Event ID (`event_id`, text): Your own ID for the event, used to resolve it later. Leave empty to have one made.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "eventId": "example",
    "incidentId": "example",
    "serviceId": "example"
  }
}
```

### Get escalation policy

Get an escalation policy's rules: who is notified, how and when.

**Inputs**

- Escalation policy (`escalation_policy_id`, text, required): The escalation policy.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "description": "example",
      "id": "example",
      "name": "example",
      "repeat_after": 1,
      "repetition": 1,
      "rules": [
        {
          "entities": [
            {
              "id": "example",
              "type": "example"
            }
          ],
          "escalationTime": 1,
          "via": [
            "example"
          ]
        }
      ],
      "slug": "example"
    }
  }
}
```

### Get incident

Get an incident's message, status, assignees, tags and timeline.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "alert_source_id": "example",
      "assignedTo": [
        {
          "id": "example",
          "reason": "example",
          "timeOfAssignment": "example",
          "type": "example"
        }
      ],
      "description": "example",
      "id": "example",
      "incidentNumber": 1,
      "last_acknowledged_at": "example",
      "message": "example",
      "service_id": "example",
      "status": "example",
      "tags": {},
      "timeOfCreation": "example",
      "updated_at": "example"
    }
  }
}
```

### Get schedule

Get an on-call schedule's name, time zone, owner and whether it is paused.

**Inputs**

- Schedule (`schedule_id`, text, required): The schedule.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "example",
      "description": "example",
      "id": 1,
      "name": "example",
      "ownerID": "example",
      "ownerType": "example",
      "paused": true,
      "teamID": "example",
      "timeZone": "example",
      "updatedAt": "example"
    }
  }
}
```

### Get service

Get a service's name, escalation policy, owner team and maintenance status.

**Inputs**

- Service (`service_id`, text, required): The service.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "description": "example",
    "email": "example",
    "escalation_policy": {
      "id": "example",
      "name": "example"
    },
    "escalation_policy_id": "example",
    "id": "example",
    "name": "example",
    "on_maintenance": true,
    "owner": {
      "id": "example",
      "type": "example"
    },
    "slug": "example"
  }
}
```

### Get user

Get a user's name, email, role and time zone.

**Inputs**

- User (`user`, text, required): The user.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "email": "example",
      "email_verified": true,
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "role": "example",
      "time_zone": "example",
      "title": "example",
      "username_for_display": "example"
    }
  }
}
```

### List escalation policies

List a team's escalation policies and their rules.

**Inputs**

- Team (`team`, text, required): The team.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "description": "example",
        "id": "example",
        "name": "example",
        "repeat_after": 1,
        "repetition": 1,
        "rules": [
          {
            "entities": [
              {
                "id": "example",
                "type": "example"
              }
            ],
            "escalationTime": 1,
            "via": [
              "example"
            ]
          }
        ],
        "slug": "example"
      }
    ]
  }
}
```

### List incident notes

List the notes in an incident's war room.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "id": "example",
        "incident_id": "example",
        "message": "example",
        "type": "example",
        "user": {
          "first_name": "example",
          "id": "example",
          "last_name": "example"
        },
        "user_id": "example"
      }
    ]
  }
}
```

### List incidents

List a team's incidents created in a time range, by status, service or priority.

**Inputs**

- Team (`team`, text, required): The team.
- Created from (`start_time`, date and time): Only incidents created at or after this time. Leave empty for seven days before Created until.
- Created until (`end_time`, date and time): Only incidents created before this time. Leave empty for now.
- Statuses (`statuses`, list): Only incidents with these statuses. One or more of: `triggered`, `acknowledged`, `resolved`, `suppressed`.
- Services (`service_ids`, list): Only incidents on these services.
- Priorities (`priorities`, list): Only incidents with these priorities. One or more of: `P1` (P1 (critical)), `P2` (P2 (high)), `P3` (P3 (moderate)), `P4` (P4 (low)), `P5` (P5 (informational)).
- Containing (`text`, text): Only incidents containing this text.
- Sort by (`sort_by`, text): What to sort by. Leave empty for time. One of: `time`, `priority`.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "incidents": [
      {
        "created_at": "example",
        "description": "example",
        "id": "example",
        "message": "example",
        "priority": "example",
        "service": "example",
        "status": "example"
      }
    ]
  }
}
```

### List schedules

List a team's on-call schedules.

**Inputs**

- Team (`team`, text, required): The team.
- Search (`search`, text): Only schedules whose name contains this.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdAt": "example",
        "description": "example",
        "id": 1,
        "name": "example",
        "ownerID": "example",
        "ownerType": "example",
        "paused": true,
        "teamID": "example",
        "timeZone": "example",
        "updatedAt": "example"
      }
    ],
    "pageInfo": {
      "hasNext": true,
      "nextCursor": "example"
    }
  }
}
```

### List services

List a team's services with their escalation policy and maintenance status.

**Inputs**

- Team (`team`, text, required): The team.
- Name (`name`, text): Only the service with this name.

**Outputs**

- `data` (list): The response from Squadcast.

**Example output**

```json
{
  "data": [
    {
      "description": "example",
      "email": "example",
      "escalation_policy": {
        "id": "example",
        "name": "example"
      },
      "escalation_policy_id": "example",
      "id": "example",
      "name": "example",
      "on_maintenance": true,
      "owner": {
        "id": "example",
        "type": "example"
      },
      "slug": "example"
    }
  ]
}
```

### List squads

List a team's squads and their members.

**Inputs**

- Team (`team`, text, required): The team.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdAt": "example",
        "id": "example",
        "members": [
          {
            "role": "example",
            "user_id": "example"
          }
        ],
        "name": "example",
        "team_id": "example"
      }
    ],
    "pageInfo": {
      "hasNext": true,
      "nextCursor": "example"
    }
  }
}
```

### List team members

List a team's members and their roles.

**Inputs**

- Team (`team`, text, required): The team.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "role": "example",
        "role_ids": [
          "example"
        ],
        "user_id": "example"
      }
    ]
  }
}
```

### List teams

List the organization's teams and their members.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "description": "example",
        "id": "example",
        "members": [
          {
            "role": "example",
            "user_id": "example"
          }
        ],
        "name": "example",
        "slug": "example"
      }
    ]
  }
}
```

### List users

List the organization's users with their email, role and time zone.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "email": "example",
        "email_verified": true,
        "first_name": "example",
        "id": "example",
        "last_name": "example",
        "role": "example",
        "time_zone": "example",
        "title": "example",
        "username_for_display": "example"
      }
    ]
  }
}
```

### Reassign incident

Hand an incident to a user, an escalation policy or a squad. Choose one.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.
- User (`user`, text): The user to hand it to.
- Escalation policy (`escalation_policy_id`, text): The escalation policy to hand it to.
- Squad (`squad_id`, text): The squad to hand it to.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": "example"
  }
}
```

### Resolve incident

Resolve an incident, with a note on how it was fixed.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.
- Resolution note (`resolution`, text, required): How the incident was resolved.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": "example"
  }
}
```

### Resolve incident by event ID

Resolve the incidents raised on a service with an event ID, as Create incident returns.

**Inputs**

- Service (`service_id`, text, required): The service.
- Event ID (`event_id`, text, required): The event ID the incident was raised with.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "eventId": "example",
    "serviceId": "example"
  }
}
```

### Snooze incident notifications

Stop an incident's notifications for a number of minutes.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.
- Minutes (`minutes`, number, required): How many minutes to snooze for. At least 1.

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "incident_id": "example",
      "is_snoozed": true,
      "snooze_end_time": "example"
    }
  }
}
```

### Update incident priority

Change an incident's priority.

**Inputs**

- Incident (`incident_id`, text, required): The incident's ID.
- Priority (`priority`, text, required): The new priority. One of: `P1` (P1 (critical)), `P2` (P2 (high)), `P3` (P3 (moderate)), `P4` (P4 (low)), `P5` (P5 (informational)).

**Outputs**

- `data` (object): The response from Squadcast.

**Example output**

```json
{
  "data": {
    "data": {
      "incident_id": "example",
      "priority": "example"
    }
  }
}
```
