---
updatedAt: 2026-05-11T06:52:59.000Z
agentTools:
  projectIndex: https://platform.simpplr.com/llms.txt
---

# Add a page to a site

This API allows us to add a page to a site

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.0.0",
    "title": "Simpplr B2B API Documentation",
    "description": "API documentation for Simpplr B2B integration services",
    "contact": {
      "name": "Simpplr Support"
    }
  },
  "x-proxy-enabled": true,
  "tags": [
    {
      "name": "Content",
      "description": "Everything about Content"
    },
    {
      "name": "Feed",
      "description": "Everything about Feed"
    },
    {
      "name": "Files",
      "description": "Everything about Files"
    }
  ],
  "servers": [
    {
      "url": "https://{endpoint}/v1",
      "variables": {
        "env": {
          "default": "app"
        },
        "endpoint": {
          "default": "platform.app.simpplr.com"
        }
      }
    }
  ],
  "paths": {
    "/b2b/content/sites/{siteId}/page": {
      "post": {
        "operationId": "addPageB2b",
        "tags": [
          "Content"
        ],
        "summary": "Add a page to a site",
        "description": "This API allows us to add a page to a site",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "eb4a3545-05f7-46e8-b17d-107339b6aae6"
            },
            "description": "The ID of the site to add a page to"
          },
          {
            "name": "action",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "example": "publish",
              "enum": [
                "publish",
                "saveDraft"
              ]
            },
            "description": "The action to perform on the page"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "contentSubType": {
                    "type": "string",
                    "enum": [
                      "news",
                      "knowledge"
                    ],
                    "description": "Type of content being created"
                  },
                  "listOfFiles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/paths/~1b2b~1content~1files/post/requestBody/content/application~1json/schema/properties/file_id/items"
                    },
                    "description": "Array of file attachments"
                  },
                  "publishAt": {
                    "type": "string",
                    "format": "date-time",
                    "example": "2025-04-09T18:30:00.000Z",
                    "description": "Date and time when the content should be published (required when publishingStatus is 'schedule'). Must be in ISO 8601 UTC format (e.g. 2025-04-09T18:30:00.000Z)"
                  },
                  "publishTo": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true,
                    "example": "2025-12-31T23:59:59.000Z",
                    "description": "Date and time when the content should expire/unpublish. Must be in ISO 8601 UTC format"
                  },
                  "bodyHtml": {
                    "type": "string",
                    "description": "Main content of the page in HTML format"
                  },
                  "publishingStatus": {
                    "type": "string",
                    "enum": [
                      "immediate",
                      "schedule"
                    ],
                    "description": "Publishing status of the content"
                  },
                  "imgLayout": {
                    "type": "string",
                    "enum": [
                      "small",
                      "fullscreen",
                      "hidden",
                      "wide"
                    ],
                    "description": "Layout style for the featured image"
                  },
                  "imgCaption": {
                    "type": "string",
                    "nullable": true,
                    "maxLength": 255,
                    "description": "Caption for the featured image"
                  },
                  "imgLandscapeFile": {
                    "type": "string",
                    "format": "uuid",
                    "nullable": true,
                    "description": "UUID of the landscape image file"
                  },
                  "imgFile": {
                    "type": "string",
                    "format": "uuid",
                    "nullable": true,
                    "description": "UUID of the main image file"
                  },
                  "imgOriginalFile": {
                    "type": "string",
                    "format": "uuid",
                    "nullable": true,
                    "description": "UUID of the original image file"
                  },
                  "imgLandscape": {
                    "type": "string",
                    "nullable": true,
                    "description": "URL of the landscape image"
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 255,
                    "description": "Title of the page"
                  },
                  "isMaximumWidth": {
                    "type": "boolean",
                    "description": "Whether to use maximum width layout"
                  },
                  "isFeedEnabled": {
                    "type": "boolean",
                    "description": "Whether the page appears in feeds"
                  },
                  "isQuestionAnswerEnabled": {
                    "type": "boolean",
                    "description": "Whether question and answer feature is enabled"
                  },
                  "isAiSummaryEnabled": {
                    "type": "boolean",
                    "description": "Whether pointwise AI summary is enabled for this page"
                  },
                  "listOfTopics": {
                    "type": "array",
                    "nullable": true,
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "nullable": true
                        },
                        "name": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "description": "Array of topics associated with the page"
                  },
                  "category": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name"
                    ],
                    "description": "Category information for the page"
                  },
                  "summary": {
                    "type": "string",
                    "nullable": true,
                    "maxLength": 10000,
                    "description": "Summary of the page content"
                  },
                  "language": {
                    "type": "string",
                    "description": "Language of the content"
                  },
                  "manualTransEnabled": {
                    "type": "boolean",
                    "description": "Whether manual translation is enabled"
                  },
                  "createdBy": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the user creating the page"
                  },
                  "isRestricted": {
                    "type": "boolean",
                    "description": "Whether the content is restricted to specific audiences"
                  },
                  "targetAudience": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "description": "List of UUIDs identifying the target audiences"
                  }
                },
                "required": [
                  "contentSubType",
                  "bodyHtml",
                  "publishingStatus",
                  "title",
                  "category",
                  "createdBy"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "description": "Contains the ID of the newly created page",
                      "properties": {
                        "contentId": {
                          "type": "string",
                          "example": "49502e9f-a6e6-4773-a0b4-64be9388b7b1",
                          "description": "Unique identifier of the newly created page"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "example": "Page created successfully",
                      "description": "Descriptive message about the operation result"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "errors": {
                      "type": "array",
                      "description": "List of validation or processing errors",
                      "items": {
                        "type": "object",
                        "properties": {
                          "seq_id": {
                            "type": "integer",
                            "example": 0,
                            "description": "Sequence identifier for the error"
                          },
                          "field_name": {
                            "type": "string",
                            "example": "siteId",
                            "description": "Name of the field that caused the error"
                          },
                          "error_code": {
                            "type": "integer",
                            "example": 1001,
                            "description": "Numeric code identifying the type of error"
                          },
                          "message": {
                            "type": "string",
                            "example": "The 'siteId' field is required and must not be empty",
                            "description": "Human-readable error message"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/403"
          }
        }
      }
    },
    "/b2b/content/files": {
      "post": {
        "operationId": "addFilesB2B",
        "tags": [
          "Files"
        ],
        "summary": "Add files",
        "description": "This API lets you add files to a site.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "parent_dir": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the parent directory",
                    "example": "123e4567-e89b-12d3-a456-426614174000"
                  },
                  "file_id": {
                    "type": "array",
                    "items": {
                      "title": "Files",
                      "type": "object",
                      "description": "File object with provider-specific properties",
                      "properties": {
                        "file_id": {
                          "type": "string",
                          "description": "File identifier"
                        },
                        "provider": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string",
                          "nullable": true,
                          "description": "File name"
                        },
                        "type": {
                          "type": "string",
                          "nullable": true,
                          "description": "File type/MIME type"
                        },
                        "size": {
                          "type": "integer",
                          "minimum": 0,
                          "nullable": true,
                          "description": "File size in bytes"
                        },
                        "version": {
                          "type": "integer",
                          "minimum": 1,
                          "nullable": true,
                          "description": "File version number"
                        }
                      },
                      "required": [
                        "file_id",
                        "provider"
                      ],
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "type": "object",
                              "title": "Intranet File",
                              "description": "File stored in intranet with UUID file_id",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "intranet"
                                  ]
                                },
                                "file_id": {
                                  "type": "string",
                                  "format": "uuid"
                                }
                              },
                              "required": [
                                "provider",
                                "file_id"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "Google Drive File",
                              "description": "File stored in Google Drive with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "googledrive"
                                  ]
                                },
                                "file_id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                },
                                "version": {
                                  "type": "integer",
                                  "minimum": 1
                                }
                              },
                              "required": [
                                "provider",
                                "file_id",
                                "name",
                                "size",
                                "type",
                                "version"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "Box File",
                              "description": "File stored in Box with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "box"
                                  ]
                                },
                                "file_id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                }
                              },
                              "required": [
                                "provider",
                                "file_id",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "OneDrive File",
                              "description": "File stored in OneDrive with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "onedrive"
                                  ]
                                },
                                "file_id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                }
                              },
                              "required": [
                                "provider",
                                "file_id",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "SharePoint File",
                              "description": "File stored in SharePoint with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "sharepoint"
                                  ]
                                },
                                "file_id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                }
                              },
                              "required": [
                                "provider",
                                "file_id",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "title": "Dropbox File",
                              "description": "File stored in Dropbox with required metadata",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "dropbox"
                                  ]
                                },
                                "file_id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "type": {
                                  "type": "string",
                                  "nullable": true
                                }
                              },
                              "required": [
                                "provider",
                                "file_id",
                                "name",
                                "size",
                                "type"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      ]
                    },
                    "description": "Array of files to be added"
                  },
                  "site_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the site",
                    "example": "123e4567-e89b-12d3-a456-426614174000"
                  },
                  "createdBy": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the user who created the files",
                    "example": "123e4567-e89b-12d3-a456-426614174000"
                  }
                },
                "required": [
                  "file_id",
                  "site_id",
                  "createdBy"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "listOfFiles": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "example": "PNG"
                              },
                              "title": {
                                "type": "string",
                                "example": "Screenshot 2025-10-14 at 1.05.47 AM.png"
                              },
                              "provider": {
                                "type": "string",
                                "example": "intranet"
                              },
                              "driveType": {
                                "type": "string",
                                "nullable": true,
                                "example": null
                              },
                              "owner": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "example": "Ajay Tanwar"
                                  },
                                  "id": {
                                    "type": "string",
                                    "example": "e5149282-2b89-4588-8b70-590ea3218e83"
                                  }
                                }
                              },
                              "onlyPDFDownload": {
                                "type": "boolean",
                                "example": false
                              },
                              "modifiedAtDateTime": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-11-18T07:17:14.244Z"
                              },
                              "modifiedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-11-18T07:17:14.244Z"
                              },
                              "filepk": {
                                "type": "string",
                                "example": "1186775"
                              },
                              "listOfSite": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                },
                                "example": []
                              },
                              "isDownloadableOniOS": {
                                "type": "boolean",
                                "example": true
                              },
                              "id": {
                                "type": "string",
                                "example": "f5f4a9db-462d-4a15-8d27-4845ce3b82cc"
                              },
                              "isExternal": {
                                "type": "boolean",
                                "example": false
                              },
                              "isRestricted": {
                                "type": "boolean",
                                "example": false
                              },
                              "canMarkRestricted": {
                                "type": "boolean",
                                "example": false
                              },
                              "canMarkUnrestricted": {
                                "type": "boolean",
                                "example": false
                              },
                              "fileExtension": {
                                "type": "string",
                                "example": "png"
                              },
                              "isImage": {
                                "type": "boolean",
                                "example": true
                              },
                              "isAudio": {
                                "type": "boolean",
                                "example": false
                              },
                              "thumbnailImg": {
                                "type": "string",
                                "example": "https://zeta-qna.dev.simpplr.xyz/content/r/f5f4a9db-462d-4a15-8d27-4845ce3b82cc?site_id=YzVhZWVjNjItNTZmZC00NTJmLWJiNDMtMDU0ZGVmOTQ1OGYy"
                              },
                              "downloadUrl": {
                                "type": "string",
                                "example": "https://zeta-qna.dev.simpplr.xyz/content/r/f5f4a9db-462d-4a15-8d27-4845ce3b82cc?site_id=YzVhZWVjNjItNTZmZC00NTJmLWJiNDMtMDU0ZGVmOTQ1OGYy"
                              },
                              "fileId": {
                                "type": "string",
                                "example": "f5f4a9db-462d-4a15-8d27-4845ce3b82cc"
                              },
                              "size": {
                                "type": "string",
                                "example": "354007"
                              },
                              "version": {
                                "type": "integer",
                                "example": 1
                              },
                              "description": {
                                "type": "string",
                                "example": ""
                              },
                              "canFavorite": {
                                "type": "boolean",
                                "example": true
                              },
                              "canLike": {
                                "type": "boolean",
                                "example": true
                              },
                              "isLiked": {
                                "type": "boolean",
                                "example": false
                              },
                              "isFavorited": {
                                "type": "boolean",
                                "example": false
                              },
                              "canEditDescription": {
                                "type": "boolean",
                                "example": true
                              },
                              "canDelete": {
                                "type": "boolean",
                                "example": true
                              },
                              "canCreateNewVersion": {
                                "type": "boolean",
                                "example": true
                              },
                              "canDownload": {
                                "type": "boolean",
                                "example": true
                              },
                              "altText": {
                                "type": "string",
                                "example": ""
                              },
                              "canCreatePublicShareLink": {
                                "type": "boolean",
                                "example": false
                              },
                              "canRemove": {
                                "type": "boolean",
                                "example": true
                              },
                              "canMove": {
                                "type": "boolean",
                                "example": true
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to add files"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "seq_id": {
                            "type": "integer",
                            "example": 0
                          },
                          "field_name": {
                            "type": "string",
                            "example": "site"
                          },
                          "error_code": {
                            "type": "integer",
                            "example": 1001
                          },
                          "message": {
                            "type": "string",
                            "example": "The site is deactivated"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/b2b/rfeed/feeds": {
      "get": {
        "operationId": "getFeedsUser",
        "tags": [
          "Feed"
        ],
        "summary": "Get feeds",
        "description": "This API allows you to retrieve all feeds",
        "parameters": [
          {
            "name": "nextPageToken",
            "in": "query",
            "required": true,
            "description": "Token for pagination. \n- For initial request, send empty string \"\"\n- For subsequent requests, use the nextPageToken returned as integer from previous response\n",
            "schema": {
              "type": "string",
              "example": "1759911721822"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": true,
            "description": "The number of feeds to return per page",
            "schema": {
              "type": "string",
              "example": "16"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "lastActivityAt"
              ],
              "default": "createdAt"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all"
              ],
              "default": "all"
            },
            "description": "The filter to apply to the feeds"
          },
          {
            "name": "feedContext",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "home",
                "site",
                "content"
              ],
              "default": "home"
            },
            "description": "The context of the feeds. \n- When set to \"site\", siteId parameter is required\n- When set to \"content\", both siteId and contentId parameters are required\n"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "post",
                "question"
              ],
              "example": "post",
              "description": "The type of feed to return"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the site. \nRequired when feedContext is \"site\" or \"content\"\n"
          },
          {
            "name": "contentId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the content.\nRequired when feedContext is \"content\"\n"
          },
          {
            "name": "feedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to return (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "exemptFeedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to exempt from the search (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "isSearchForMarkDuplicate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": false
            },
            "description": "Whether to search for mark duplicate feeds(questions)"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "nextPageToken": {
                          "type": "integer",
                          "example": 1759911721822
                        },
                        "size": {
                          "type": "integer",
                          "example": 10
                        },
                        "total": {
                          "type": "integer",
                          "example": 11
                        },
                        "listOfItems": {
                          "type": "array",
                          "items": {
                            "$ref": "#/paths/~1b2b~1rfeed~1feeds~1{feedId}/get/responses/200/content/application~1json/schema/properties/result"
                          }
                        },
                        "sortBy": {
                          "type": "string",
                          "example": "lastActivityAt"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to get feeds"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "INVALID_INPUT"
                          },
                          "message": {
                            "type": "string",
                            "example": "An error occurred while processing the request"
                          },
                          "cause": {
                            "type": "string",
                            "example": "size is required"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authorize error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Missing/Invalid authentication token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "integer",
                      "example": 2001
                    },
                    "message": {
                      "type": "string",
                      "example": "Something went wrong, please try again"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2ClientCredentials": {
        "type": "oauth2",
        "description": "This API uses OAuth 2 with the implicit grant flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://platform.{env}.simpplr.xyz/v1/identity/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2ClientCredentials": []
    }
  ]
}
```