# support: REST routes and abilities

Read from support at v1.1.1.

## REST routes

### GET /wp-json/mmwp/v1/report

Site report

Permission: Set by the resource default (not overridden on this operation).

| Argument | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| format | string |  | 'text' | Output format. |

Source: https://github.com/mammothwp/support/blob/v1.1.1/src/Kit/Support_Resource.php#L1

### GET /wp-json/mmwp/v1/plugins

Registered plugins

Permission: Set by the resource default (not overridden on this operation).

Source: https://github.com/mammothwp/support/blob/v1.1.1/src/Kit/Support_Resource.php#L1

### POST /wp-json/mmwp/v1/send

Send a support request

Permission: Set by the resource default (not overridden on this operation).

| Argument | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| plugin | string | yes |  | Slug of a registered plugin. |
| subject | string |  |  | Subject. |
| message | string | yes |  | Message. |
| reply_to | string |  |  | Reply-To address (default: current user). |
| name | string |  |  | Sender name. |
| include_report | boolean |  | false | Include the site report (default false). |
| include_log | boolean |  | false | Include the last debug.log lines (default false). |
| dry_run | boolean |  | false | Print the email instead of sending it. |

Source: https://github.com/mammothwp/support/blob/v1.1.1/src/Kit/Support_Resource.php#L1

## Abilities

### mmwp/support-report

Site report: Returns the redacted site report. Nothing is sent anywhere.

Source: https://github.com/mammothwp/support/blob/v1.1.1/src/Kit/Support_Resource.php#L1

### mmwp/support-plugins

Registered plugins: Plugins registered with the Support screen.

Source: https://github.com/mammothwp/support/blob/v1.1.1/src/Kit/Support_Resource.php#L1

### mmwp/support-send

Send a support request: Sends one email to the plugin's support address. The site report is included only with include_report.

Source: https://github.com/mammothwp/support/blob/v1.1.1/src/Kit/Support_Resource.php#L1
