OpenAPI Specification
openapi: 3.0.3
info:
title: Site24x7 REST Alarms Tags API
description: The Site24x7 REST API (v2.0) enables programmatic access to all monitoring operations including creating and managing monitors for websites, servers, cloud resources, APIs, and databases; configuring alert thresholds, notification profiles, and on-call schedules; scheduling maintenance windows; retrieving availability, performance, and SLA reports; managing IT automation actions; and administering users, groups, and third-party integrations. Authentication uses OAuth 2.0 via the Zoho Developer Console.
version: '2.0'
contact:
name: Site24x7 Support
url: https://www.site24x7.com/contact.html
termsOfService: https://www.site24x7.com/terms.html
license:
name: Site24x7 Terms of Service
url: https://www.site24x7.com/terms.html
servers:
- url: https://www.site24x7.com/api
description: US data center
- url: https://www.site24x7.eu/api
description: EU data center
- url: https://www.site24x7.in/api
description: India data center
- url: https://www.site24x7.net.au/api
description: Australia data center
- url: https://app.site24x7.jp/api
description: Japan data center
- url: https://www.site24x7.ca/api
description: Canada data center
- url: https://app.site24x7.uk/api
description: UK data center
- url: https://app.site24x7.ae/api
description: UAE data center
- url: https://www.site24x7.sa/api
description: Saudi Arabia data center
security:
- ZohoOAuth: []
tags:
- name: Tags
description: Tag-based monitor organization
paths:
/tags:
get:
operationId: listTags
tags:
- Tags
summary: List all tags
description: Retrieve all tags configured in the account.
parameters:
- $ref: '#/components/parameters/ApiVersionHeader'
responses:
'200':
description: Tags returned successfully
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/TagListResponse'
'401':
$ref: '#/components/responses/Unauthorized'
post:
operationId: createTag
tags:
- Tags
summary: Create a tag
description: Create a new tag for organizing monitors.
parameters:
- $ref: '#/components/parameters/ApiVersionHeader'
requestBody:
required: true
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/TagCreate'
responses:
'200':
description: Tag created successfully
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/TagResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
/tags/{tag_id}:
get:
operationId: getTag
tags:
- Tags
summary: Get a tag
description: Retrieve details of a specific tag.
parameters:
- name: tag_id
in: path
required: true
schema:
type: string
description: Unique tag identifier
- $ref: '#/components/parameters/ApiVersionHeader'
responses:
'200':
description: Tag returned successfully
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/TagResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
put:
operationId: updateTag
tags:
- Tags
summary: Update a tag
description: Modify an existing tag.
parameters:
- name: tag_id
in: path
required: true
schema:
type: string
description: Unique tag identifier
- $ref: '#/components/parameters/ApiVersionHeader'
requestBody:
required: true
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/TagCreate'
responses:
'200':
description: Tag updated successfully
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/TagResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
delete:
operationId: deleteTag
tags:
- Tags
summary: Delete a tag
description: Remove a tag from the account.
parameters:
- name: tag_id
in: path
required: true
schema:
type: string
description: Unique tag identifier
- $ref: '#/components/parameters/ApiVersionHeader'
responses:
'200':
description: Tag deleted successfully
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/ApiResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
components:
responses:
Unauthorized:
description: Authentication failed or token is missing
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/ErrorResponse'
BadRequest:
description: Invalid request parameters or body
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/ErrorResponse'
NotFound:
description: The requested resource was not found
content:
application/json;version=2.0:
schema:
$ref: '#/components/schemas/ErrorResponse'
schemas:
ApiResponse:
type: object
properties:
code:
type: integer
description: Response code (0 = success)
example: 0
message:
type: string
description: Response message
example: success
required:
- code
- message
Tag:
type: object
properties:
tag_id:
type: string
description: Unique tag identifier
tag_name:
type: string
description: Tag name
tag_color:
type: string
description: Tag color in hex format
example: '#FF0000'
TagListResponse:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Tag'
TagCreate:
type: object
required:
- tag_name
properties:
tag_name:
type: string
description: Name for the tag
example: production
tag_color:
type: string
description: Color for the tag (hex)
example: '#4CAF50'
ErrorResponse:
type: object
properties:
code:
type: integer
description: Error code
message:
type: string
description: Error description
error_info:
type: string
description: Additional error details
TagResponse:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/Tag'
parameters:
ApiVersionHeader:
name: Accept
in: header
required: false
schema:
type: string
default: application/json; version=2.0
description: API version header. Defaults to version 2.0.
securitySchemes:
ZohoOAuth:
type: http
scheme: bearer
bearerFormat: Zoho-oauthtoken
description: 'OAuth 2.0 token obtained from the Zoho Developer Console. Pass as `Authorization: Zoho-oauthtoken {access_token}`.'
externalDocs:
description: Site24x7 API Documentation
url: https://www.site24x7.com/help/api/