Creating your first Action

Admins can create a new Action by navigating to the Settings > Manage Actions page and clicking on the New Action button.

Once pressed, you can choose to get started using one of our Action Templates or build your own from scratch.

This guide will outline how to start from scratch and provide you with more context about how each element of the Action configuration is used. To learn more about how to use the templates, check out their guide here.

Basic Details

An Action's basic details provides context to users about who manages the action and how it should be used.

NameThe name of the action. Users will see this when invoking the action
OwnerThe team is responsible for maintaining this action. Users invoking an action will be directed to this team in case of error.
DescriptionAdditional information about what this action does or how it works. Users will see this information before invoking the action.

Action Rules

This section allows the administrator to define the context required by an action and the webhook that will be sent when the action is executed successfully.

Configuring the context available to the action

If you configure an action to apply to services, the action's webhook will automatically have access to service details. When an action applies to services, they can be scoped to only be available to a subset of the services in your OpsLevel account. For example, an action to provision infrastructure could be set to only apply to services with a tag of prod_enabled: true_._

You can also prompt users who are triggering the action for additional context by adding a form to the action.

The Action Rules section is where all of this configuration is managed.

Does this action apply to services?If yes, the action will automatically have access to service context and be available on the Service page.
Service FilterOnly visible if Does this action apply to services? is true. When set, this action will only be available to services that match the filter. Actions will be available to all services by default. To learn more about filters, go here .
Does this action require form submission?Enables the Form Details field allowing you define the action’s user input fields. Default: false
Form DetailsDefine the input fields that will be presented to the user. These allow users to provide contextual information to the action being triggered. Inputs are defined using YAML markup, see Configuring Manual Inputs for more information.

Configuring the webhook

An Action's rules also define the HTTP Request that is sent when the action is triggered. You are able to define the URL where the request will be sent and any information included in the payload or headers.

See the end-to-end example for a sample of Action Rules, including parameterizing a URL with Liquid.

HTTP methodThe HTTP method that will be used when the action is invoked. Supported values: GET, POST (Default), PATCH, PUT and DELETE.
Webhook URL*The destination of the HTTP request.
Headers*A list of key-value pairs. Note: JSON representation should be used when working with actions via the API.
Payload*The body of the HTTP request.
*These fields can dynamically insert information from the action’s context via liquid templating. See the Action Context Schema for the list of fields available and this example for how to use them.

Response Details

An Action’s response details control what message is displayed to the invoking user after it has finished.

Response MessageThe message displayed to the invoking user after the HTTP request for the action has completed. The message can be conditionally changed based on the fields in the response via liquid templating.

This field can also dynamically insert information from the action’s context into the message body.

See the Action Context Schema for the list of fields available and this example of how to use them. |

Action Privileges

While many actions can be taken by anyone in your organization, there are times where an action should be limited to a subset of your teams. This section allows you to control who is allowed to trigger the action.

Who can trigger the action?Control who has access to this action. Possible values are: Admin, Admin + Service owners, and Everyone. See below for more details on each option.
Allow additional teams to trigger the actionOnly available if everyone is not already able to trigger the action. When enabled, you can add a specific list of teams whose members can also trigger the action.
Who can trigger the action?Description
AdminOnly users with the Admin role can trigger the action. *
Admin + Service OwnersOnly members of the team who own the service or users with the Admin role can trigger the action. * Note: This action is only available if the action applies to a service.
EveryoneAll OpsLevel users may trigger the action.
*When this setting is used, the admin can also configure additional explicit teams that can trigger the action.


During development of the action, you can keep the action in a draft state so that only Admin users will be able to see and trigger it.

Once you've tested the action, come back to edit the action and set the Publish action toggle to true to make the action visible to all users and available to be triggered by the users outlined by your configured Action Privileges.

Note: Publishing an action is not a one-way transaction. If you decide to unpublish the action and give it additional development time, just turn the Publish action flag back to off.

What's Next?

Try creating an action from one of our templates or build out our end-to-end example from scratch.