Skip to content

Create tag

POST
/tags
curl --request POST \
--url https://example.com/api/tags \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "monitors": [ 1 ], "name": "production", "team_id": 1 }'

Creates a tag and adds it to the listed monitors (monitors, or its alias sites).

Token abilities: tags:write.

Media typeapplication/json
object
monitors
Array<integer>
name
required
string
<= 255 characters
sites
Array<integer>
team_id
required
integer
Allowed values: 1

Example

{
"monitors": [
1
],
"name": "production",
"team_id": 1
}

TagResource

Media typeapplication/json
TagResource
object
created_at
required

UTC, Y-m-d H:i:s.

string | null
id
required
integer
name
required
string
sites
required

Accessible site IDs only.

Array<integer>
slug
required
string
team_id
required
integer
Allowed value: 1
team_name
required
string
updated_at
required

UTC, Y-m-d H:i:s.

string | null

Example

{
"created_at": "2026-10-01 07:25:00",
"id": 600,
"name": "production",
"sites": [
1
],
"slug": "production",
"team_id": 1,
"team_name": "Heptapod",
"updated_at": "2026-10-01 07:25:00"
}
X-RateLimit-Limit
integer

Requests per minute allowed by the limit this response counts against.

X-RateLimit-Remaining
integer

Requests left in the current minute.

Missing, invalid, expired or session-only credentials, or a disabled user.

Media typeapplication/json
Unauthenticated
object
error
required
string

Examples

ExampleUnauthenticated

Missing or invalid token

{
"error": "Unauthenticated."
}

The token lacks a required ability, or the user’s role or client access does not allow this action.

Media typeapplication/json
ErrorMessage
object
message
required
string

Examples

ExampleForbidden

The token lacks the ability

{
"message": "Invalid ability provided."
}

Domain error.

  • busy_try_again: A change of sites, clients or access was being saved for longer than this write waits for it; retry after Retry-After.
Media typeapplication/json
object
code
required
string
details
required

Code-specific details; may be empty.

object
error
required
string
code
required
string
Allowed values: busy_try_again

Example

{
"code": "busy_try_again"
}
Retry-After
integer

Seconds to wait before retrying.

Invalid input.

Media typeapplication/json
ValidationError
object
errors
required

Field name => messages.

object
key
additional properties
Array<string>
message
required
string

Examples

ExampleValidationFailed

Invalid input

{
"errors": {
"starts_at": [
"The starts at field must match the format Y-m-d H:i."
]
},
"message": "The starts at field must match the format Y-m-d H:i."
}

Rate limited: 60 requests per minute per source IP before authentication, and 60 per minute per user and per token. See Retry-After.

Media typeapplication/json
TooManyRequests
object
error
required
string

Examples

ExampleTooManyRequests

Rate limited

{
"error": "Too Many Attempts."
}
Retry-After
integer

Seconds to wait before retrying.

X-RateLimit-Reset
integer

Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.