Alert Context Tags

REST API operations for alert context tags

Overview

Use these API operations to interact with alert context tags in Panther.

To call the API, see the How to use the Panther REST APIarrow-up-right instructions—including directions for how to invoke it directly from this documentation pagearrow-up-right.

Required permissions

  • For GET operations, your API token must have the Read Alerts permission.

  • For POST, DELETE, and PATCH operations, your API token must have the Manage Alerts permission.

Operations

List all context tags

get

Returns all context tags, both managed (system-defined) and custom (user-defined)

Authorizations
X-API-KeystringRequired
Query parameters
cursorstringOptional

Pagination token from a previous request

limitinteger · int64 · min: 1 · max: 2000Optional

Maximum number of results to return

Default: 2000
managedbooleanOptional

Filter by tag type: true for managed tags only, false for custom tags only, omit for all tags

Responses
chevron-right
200

OK response.

application/json

Response for listing context tags

nextstringOptional

Pagination token for the next page of results

get
/alert-context-tags

Create a custom context tag

post

Creates a new custom context tag. Returns 409 Conflict if the tag already exists.

Authorizations
X-API-KeystringRequired
Body

Request to create a custom context tag

tagstring · min: 1 · max: 30Required

The tag value to create

Pattern: ^[a-z0-9_-]+$
Responses
post
/alert-context-tags

No content

Delete a custom context tag

delete

Deletes a custom context tag. Managed tags cannot be deleted.

Authorizations
X-API-KeystringRequired
Path parameters
tagstring · min: 1 · max: 30Required

The tag value to delete

Pattern: ^[a-z0-9_-]+$
Responses
delete
/alert-context-tags/{tag}

No content

Rename a custom context tag

patch

Atomically renames a custom context tag. Returns 404 if the tag doesn't exist, 409 if the target tag already exists.

Authorizations
X-API-KeystringRequired
Path parameters
tagstring · min: 1 · max: 30Required

The current tag value to rename

Pattern: ^[a-z0-9_-]+$
Body

Request to rename a custom context tag

tagstring · min: 1 · max: 30Required

The new tag value

Pattern: ^[a-z0-9_-]+$
Responses
patch
/alert-context-tags/{tag}

No content

Last updated

Was this helpful?