# BugSnag

> Report and manage BugSnag errors: fix, ignore, assign and comment on errors, read their events and releases, and manage projects and collaborators, with triggers for new errors, events and releases.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/bugsnag

## Actions

### Comment on error

Add a comment to an error.

**Inputs**

- Project (`project_id`, text, required): The project.
- Error (`error_id`, text, required): The error.
- Comment (`message`, text, required): The comment.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "id": "example",
    "message": "example"
  }
}
```

### Create project

Create a project in an organization.

**Inputs**

- Organization (`organization_id`, text, required): The organization.
- Name (`name`, text, required): The project's name.
- Platform (`type`, text, required): The platform or framework the project reports from. One of: `android`, `angular`, `asgi`, `aspnet` (ASP.NET), `aspnet_core` (ASP.NET Core), `backbone`, `bottle`, `cocos2dx`, `connect`, `django`, and 57 more.
- Ignore old browsers (`ignore_old_browsers`, true/false): For JavaScript projects: ignore events from old browsers.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "api_key": "example",
    "collaborators_count": 1,
    "created_at": "example",
    "discarded_app_versions": [
      "example"
    ],
    "discarded_errors": [
      "example"
    ],
    "for_review_error_count": 1,
    "html_url": "example",
    "id": "example",
    "ignore_old_browsers": true,
    "language": "example",
    "name": "example",
    "open_error_count": 1,
    "organization_id": "example",
    "release_stages": [
      "example"
    ],
    "resolve_on_deploy": true,
    "slug": "example",
    "type": "example",
    "updated_at": "example"
  }
}
```

### Delete comment

Delete a comment.

**Inputs**

- Comment ID (`comment_id`, text, required): The comment's ID, from List error comments or Comment on error.

**Outputs**

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

**Example output**

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

### Delete error

Delete an error and all its events.

**Inputs**

- Project (`project_id`, text, required): The project.
- Error (`error_id`, text, required): The error.

**Outputs**

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

**Example output**

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

### Delete event

Delete one event.

**Inputs**

- Project (`project_id`, text, required): The project.
- Event ID (`event_id`, text, required): The event's ID, from List error events.

**Outputs**

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

**Example output**

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

### Delete project

Delete a project and all its errors and events.

**Inputs**

- Project (`project_id`, text, required): The project.

**Outputs**

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

**Example output**

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

### Get error

Get an error's class, message, status, severity and counts.

**Inputs**

- Project (`project_id`, text, required): The project.
- Error (`error_id`, text, required): The error.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assigned_collaborator_id": "example",
    "comment_count": 1,
    "context": "example",
    "discarded": true,
    "error_class": "example",
    "events": 1,
    "first_seen": "example",
    "id": "example",
    "last_seen": "example",
    "message": "example",
    "original_severity": "example",
    "overridden_severity": "example",
    "project_id": "example",
    "release_stages": [
      "example"
    ],
    "severity": "example",
    "status": "example",
    "url": "example",
    "users": 1
  }
}
```

### Get event

Get one event in full: its stack trace, app, device, user, request and metadata.

**Inputs**

- Project (`project_id`, text, required): The project.
- Event ID (`event_id`, text, required): The event's ID, from List error events.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "app": {},
    "context": "example",
    "device": {},
    "error_id": "example",
    "exceptions": [
      {
        "errorClass": "example",
        "message": "example"
      }
    ],
    "id": "example",
    "metaData": {},
    "received_at": "example",
    "request": {},
    "severity": "example",
    "unhandled": true,
    "url": "example",
    "user": {}
  }
}
```

### Get latest event

Get the most recent event of an error, in full.

**Inputs**

- Project (`project_id`, text, required): The project.
- Error (`error_id`, text, required): The error.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "app": {},
    "context": "example",
    "device": {},
    "error_id": "example",
    "exceptions": [
      {
        "errorClass": "example",
        "message": "example"
      }
    ],
    "id": "example",
    "metaData": {},
    "received_at": "example",
    "request": {},
    "severity": "example",
    "unhandled": true,
    "url": "example",
    "user": {}
  }
}
```

### Get project

Get a project's settings, notifier API key and error counts.

**Inputs**

- Project (`project_id`, text, required): The project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "api_key": "example",
    "collaborators_count": 1,
    "created_at": "example",
    "discarded_app_versions": [
      "example"
    ],
    "discarded_errors": [
      "example"
    ],
    "for_review_error_count": 1,
    "html_url": "example",
    "id": "example",
    "ignore_old_browsers": true,
    "language": "example",
    "name": "example",
    "open_error_count": 1,
    "organization_id": "example",
    "release_stages": [
      "example"
    ],
    "resolve_on_deploy": true,
    "slug": "example",
    "type": "example",
    "updated_at": "example"
  }
}
```

### Get release

Get a release's version, source control details, errors and stability.

**Inputs**

- Project (`project_id`, text, required): The project.
- Release (`release_id`, text, required): The release.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "app_version": "example",
    "build_label": "example",
    "builder_name": "example",
    "errors_introduced_count": 1,
    "errors_seen_count": 1,
    "id": "example",
    "project_id": "example",
    "release_group_id": "example",
    "release_source": "example",
    "release_stage": {
      "name": "example"
    },
    "release_time": "example",
    "total_sessions_count": 1,
    "unhandled_sessions_count": 1
  }
}
```

### Invite collaborator

Invite someone to an organization by email, to some projects or as an administrator.

**Inputs**

- Organization (`organization_id`, text, required): The organization.
- Email (`email`, text, required): Their email address.
- Projects (`project_ids`, list): The projects they can see. Administrators see every project.
- Administrator (`admin`, true/false): Make them an administrator of the organization.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "id": "example",
    "name": "example"
  }
}
```

### List collaborators

List the people in an organization.

**Inputs**

- Organization (`organization_id`, text, required): The organization.
- How many (`per_page`, number): How many to return, up to 100. Leave empty for BugSnag's default. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "email": "example",
      "id": "example",
      "name": "example"
    }
  ]
}
```

### List error comments

List the comments on an error.

**Inputs**

- Project (`project_id`, text, required): The project.
- Error (`error_id`, text, required): The error.
- Direction (`direction`, text): The direction to sort in. Leave empty for descending. One of: `desc` (Descending), `asc` (Ascending).
- How many (`per_page`, number): How many to return, up to 100. Leave empty for BugSnag's default. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "id": "example",
      "message": "example"
    }
  ]
}
```

### List error events

List each occurrence (event) of an error, newest first.

**Inputs**

- Project (`project_id`, text, required): The project.
- Error (`error_id`, text, required): The error.
- Full details (`full_reports`, true/false): Return every event in full, with its stack trace and metadata.
- Direction (`direction`, text): The direction to sort in. Leave empty for descending. One of: `desc` (Descending), `asc` (Ascending).
- How many (`per_page`, number): How many to return, up to 100. Leave empty for BugSnag's default. From 1 to 100.
- Before (`before`, date and time): Only records from before this time, for reading further back.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "app": {},
      "context": "example",
      "device": {},
      "error_id": "example",
      "exceptions": [
        {
          "errorClass": "example",
          "message": "example"
        }
      ],
      "id": "example",
      "metaData": {},
      "received_at": "example",
      "request": {},
      "severity": "example",
      "unhandled": true,
      "url": "example",
      "user": {}
    }
  ]
}
```

### List errors

List a project's errors, optionally by status, severity, release stage or since a time.

**Inputs**

- Project (`project_id`, text, required): The project.
- Status (`status`, text): Only errors with this status. One of: `open`, `in progress`, `for_review` (For review), `fixed`, `snoozed`, `ignored`.
- Severity (`severity`, text): Only errors of this severity. One of: `error`, `warning`, `info`.
- Release stage (`release_stage`, text): Only errors seen in this release stage, such as production.
- Seen since (`since`, date and time): Only errors with events since this time.
- Sort by (`sort`, text): How to sort. Leave empty for last seen. One of: `last_seen` (Last seen), `first_seen` (First seen), `users` (Users affected), `events`.
- Direction (`direction`, text): The direction to sort in. Leave empty for descending. One of: `desc` (Descending), `asc` (Ascending).
- How many (`per_page`, number): How many to return, up to 100. Leave empty for BugSnag's default. From 1 to 100.
- Before (`before`, date and time): Only records from before this time, for reading further back.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "assigned_collaborator_id": "example",
      "comment_count": 1,
      "context": "example",
      "discarded": true,
      "error_class": "example",
      "events": 1,
      "first_seen": "example",
      "id": "example",
      "last_seen": "example",
      "message": "example",
      "original_severity": "example",
      "overridden_severity": "example",
      "project_id": "example",
      "release_stages": [
        "example"
      ],
      "severity": "example",
      "status": "example",
      "url": "example",
      "users": 1
    }
  ]
}
```

### List organizations

List the BugSnag organizations you belong to.

**Inputs**

- Admin only (`admin`, true/false): Only organizations you're an administrator of.
- How many (`per_page`, number): How many to return, up to 100. Leave empty for BugSnag's default. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "auto_upgrade": true,
      "billing_emails": [
        "example"
      ],
      "created_at": "example",
      "id": "example",
      "name": "example",
      "slug": "example",
      "updated_at": "example"
    }
  ]
}
```

### List project events

List the events of every error in a project, newest first.

**Inputs**

- Project (`project_id`, text, required): The project.
- Full details (`full_reports`, true/false): Return every event in full, with its stack trace and metadata.
- Direction (`direction`, text): The direction to sort in. Leave empty for descending. One of: `desc` (Descending), `asc` (Ascending).
- How many (`per_page`, number): How many to return, up to 100. Leave empty for BugSnag's default. From 1 to 100.
- Before (`before`, date and time): Only records from before this time, for reading further back.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "app": {},
      "context": "example",
      "device": {},
      "error_id": "example",
      "exceptions": [
        {
          "errorClass": "example",
          "message": "example"
        }
      ],
      "id": "example",
      "metaData": {},
      "received_at": "example",
      "request": {},
      "severity": "example",
      "unhandled": true,
      "url": "example",
      "user": {}
    }
  ]
}
```

### List projects

List an organization's projects with their open error counts.

**Inputs**

- Organization (`organization_id`, text, required): The organization.
- Name contains (`q`, text): Only projects whose name contains this text.
- Sort by (`sort`, text): How to sort. One of: `created_at` (Created).
- Direction (`direction`, text): The direction to sort in. Leave empty for descending. One of: `desc` (Descending), `asc` (Ascending).
- How many (`per_page`, number): How many to return, up to 100. Leave empty for BugSnag's default. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "api_key": "example",
      "collaborators_count": 1,
      "created_at": "example",
      "discarded_app_versions": [
        "example"
      ],
      "discarded_errors": [
        "example"
      ],
      "for_review_error_count": 1,
      "html_url": "example",
      "id": "example",
      "ignore_old_browsers": true,
      "language": "example",
      "name": "example",
      "open_error_count": 1,
      "organization_id": "example",
      "release_stages": [
        "example"
      ],
      "resolve_on_deploy": true,
      "slug": "example",
      "type": "example",
      "updated_at": "example"
    }
  ]
}
```

### List releases

List a project's releases with the errors each introduced and its session counts.

**Inputs**

- Project (`project_id`, text, required): The project.
- Release stage (`release_stage`, text): Only releases in this release stage, such as production.
- Sort by (`sort`, text): How to sort. Leave empty for release time. One of: `timestamp` (Release time), `percent_of_sessions` (Share of sessions).
- How many (`per_page`, number): How many to return, up to 100. Leave empty for BugSnag's default. From 1 to 100.
- Before (`before`, date and time): Only records from before this time, for reading further back.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "app_version": "example",
      "build_label": "example",
      "builder_name": "example",
      "errors_introduced_count": 1,
      "errors_seen_count": 1,
      "id": "example",
      "project_id": "example",
      "release_group_id": "example",
      "release_source": "example",
      "release_stage": {
        "name": "example"
      },
      "release_time": "example",
      "total_sessions_count": 1,
      "unhandled_sessions_count": 1
    }
  ]
}
```

### Remove collaborator

Remove someone from an organization.

**Inputs**

- Organization (`organization_id`, text, required): The organization.
- Collaborator (`collaborator_id`, text, required): The collaborator.

**Outputs**

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

**Example output**

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

### Report error

Send an error to a BugSnag project, as an app's notifier would, with the project's notifier API key.

**Inputs**

- Project (`project_id`, text, required): The project.
- Error class (`error_class`, text, required): The error's class or kind, such as PaymentFailed.
- Message (`message`, text, required): What went wrong.
- Severity (`severity`, text): How serious it is. Leave empty for error. One of: `error`, `warning`, `info`.
- Release stage (`release_stage`, text): The release stage, such as staging. Leave empty for production.
- App version (`app_version`, text): The version of your app.
- Context (`context`, text): What was happening, such as a page or job name.
- User ID (`affected_user_id`, text): The ID of the user it happened to.
- User email (`affected_user_email`, text): The email of the user it happened to.
- Metadata (`metadata`, object): Extra details to show with the error, in its Custom tab.
- Grouping hash (`grouping_hash`, text): Errors with the same grouping hash are grouped into one error.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "project_id": "example",
    "sent": true
  }
}
```

### Update collaborator

Change which projects a collaborator can see, or whether they're an administrator.

**Inputs**

- Organization (`organization_id`, text, required): The organization.
- Collaborator (`collaborator_id`, text, required): The collaborator.
- Projects (`project_ids`, list): The projects they can see. Replaces their current projects.
- Administrator (`admin`, true/false): Make them an administrator of the organization.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "id": "example",
    "name": "example"
  }
}
```

### Update error

Change an error: mark it fixed, reopen or ignore it, change its severity, assign it, link or create an issue, or discard its new events.

**Inputs**

- Project (`project_id`, text, required): The project.
- Error (`error_id`, text, required): The error.
- Change (`operation`, text, required): What to do. One of: `fix` (Mark fixed), `open`, `ignore`, `override_severity` (Change severity), `assign` (Assign to a collaborator), `link_issue` (Link an issue), `unlink_issue` (Unlink its issue), `create_issue` (Create an issue in the issue tracker), `discard` (Discard new events), `undiscard` (Keep new events again).
- Severity (`severity`, text): For Change severity: the new severity. One of: `error`, `warning`, `info`.
- Assignee (`assigned_collaborator_id`, text): For Assign: who to assign it to. Leave empty to unassign.
- Organization (`organization_id`, text): For Assign: the organization whose collaborators to choose from.
- Issue URL (`issue_url`, text): For Link an issue: the issue's address.
- Issue title (`issue_title`, text): For Create an issue: the issue's title.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assigned_collaborator_id": "example",
    "comment_count": 1,
    "context": "example",
    "discarded": true,
    "error_class": "example",
    "events": 1,
    "first_seen": "example",
    "id": "example",
    "last_seen": "example",
    "message": "example",
    "original_severity": "example",
    "overridden_severity": "example",
    "project_id": "example",
    "release_stages": [
      "example"
    ],
    "severity": "example",
    "status": "example",
    "url": "example",
    "users": 1
  }
}
```

### Update project

Rename a project or change its settings. Only the fields filled in change.

**Inputs**

- Project (`project_id`, text, required): The project.
- Name (`name`, text): The project's new name.
- Fix errors on deploy (`resolve_on_deploy`, true/false): Mark every error fixed when a new production deploy is reported.
- Ignore old browsers (`ignore_old_browsers`, true/false): For JavaScript projects: ignore events from old browsers.
- Discarded app versions (`discarded_app_versions`, list): App versions whose events are discarded. Replaces the current list.
- Discarded error classes (`discarded_errors`, list): Error classes whose events are discarded. Replaces the current list.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "api_key": "example",
    "collaborators_count": 1,
    "created_at": "example",
    "discarded_app_versions": [
      "example"
    ],
    "discarded_errors": [
      "example"
    ],
    "for_review_error_count": 1,
    "html_url": "example",
    "id": "example",
    "ignore_old_browsers": true,
    "language": "example",
    "name": "example",
    "open_error_count": 1,
    "organization_id": "example",
    "release_stages": [
      "example"
    ],
    "resolve_on_deploy": true,
    "slug": "example",
    "type": "example",
    "updated_at": "example"
  }
}
```
