Create a Monitor
POST /api/0/organizations/{organization_id_or_slug}/monitors/
Create a new monitor.
Path Parameters
- organization_id_or_slug(string)REQUIRED
- The ID or slug of the organization the resource belongs to. 
Body Parameters
- project(string)REQUIRED
- The project slug to associate the monitor to. 
- name(string)REQUIRED
- Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name. 
- configREQUIRED
- The configuration for the monitor. 
- slug(string)
- Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls. 
- status(string)
- Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota. - active
- disabled
 
- owner(string)
- The ID of the team or user that owns the monitor. (eg. user:51 or team:6) 
- is_muted(boolean)
- Disable creation of monitor incidents 
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:- alerts:write
- org:admin
- org:read
- org:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/monitors/ \ -H 'Authorization: Bearer <auth_token>' \ -H 'Content-Type: application/json' \ -d '{}'
RESPONSESCHEMA
Copied.
Was this helpful?