POST
/
plugins
curl --request POST \
  --url https://use.hoop.dev/api/plugins \
  --header 'Content-Type: application/json' \
  --data '{
  "config": {
    "envvars": {
      "SLACK_APP_TOKEN": "eC1hcHAtdG9rZW4=",
      "SLACK_BOT_TOKEN": "eG94Yi10b2tlbg=="
    }
  },
  "connections": [
    {
      "config": [
        "EMAIL_ADDRESS",
        "URL"
      ],
      "id": "B702C63C-E6EB-46BB-9D1E-90EA077E4582",
      "name": "pgdemo"
    }
  ],
  "name": "slack",
  "priority": 0,
  "source": "null"
}'
{
  "config": {
    "envvars": {
      "SLACK_APP_TOKEN": "eC1hcHAtdG9rZW4=",
      "SLACK_BOT_TOKEN": "eG94Yi10b2tlbg=="
    },
    "id": "D9A998B3-AA7B-49B0-8463-C9E36435FC0B"
  },
  "connections": [
    {
      "config": [
        "EMAIL_ADDRESS",
        "URL"
      ],
      "id": "B702C63C-E6EB-46BB-9D1E-90EA077E4582",
      "name": "pgdemo"
    }
  ],
  "id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
  "name": "slack",
  "priority": 0,
  "source": "null"
}

Body

application/json
connections
object[]
required

The list of connections configured for a specific plugin

name
enum<string>
required

The name of the plugin to enable

  • audit - Audit connections
  • access_control - Enable access control by groups
  • dlp - Enable Google Data Loss Prevention (requires further configuration)
  • indexer - Enable indexing session contents
  • review - Enable reviewing executions
  • runbooks - Enable configuring runbooks
  • slack - Enable reviewing execution through Slack
  • webhooks - Send events via webhooks
Available options:
audit,
access_control,
dlp,
indexer,
review,
runbooks,
slack,
webhooks
config
object

The top level plugin configuration. This value is immutable after creation

priority
integer
default:
0

DEPRECATED, should be always 0

source
string
default:
null

DEPRECATED, should be always null

Response

201 - application/json
connections
object[]
required

The list of connections configured for a specific plugin

name
enum<string>
required

The name of the plugin to enable

  • audit - Audit connections
  • access_control - Enable access control by groups
  • dlp - Enable Google Data Loss Prevention (requires further configuration)
  • indexer - Enable indexing session contents
  • review - Enable reviewing executions
  • runbooks - Enable configuring runbooks
  • slack - Enable reviewing execution through Slack
  • webhooks - Send events via webhooks
Available options:
audit,
access_control,
dlp,
indexer,
review,
runbooks,
slack,
webhooks
config
object

The top level plugin configuration. This value is immutable after creation

id
string

The resource identifier

priority
integer
default:
0

DEPRECATED, should be always 0

source
string
default:
null

DEPRECATED, should be always null