{
 "openapi": "3.1.0",
 "info": {
  "title": "Releasebird API",
  "version": "1.0.0",
  "description": "The Releasebird API lets you read and change the content of a workspace: ideas, feedback, the roadmap, release notes, the knowledge base, conversations, people, email campaigns, banners, forms and more. It is the API behind the Releasebird CLI and the Zapier and Make integrations.\n\n## Base URL\n\nAll requests go to `https://api.releasebird.com`. Request and response bodies are JSON in UTF-8.\n\n## Authentication\n\nCreate an API key in the app under **Settings → API Keys** and send it as a bearer token:\n\n```\nAuthorization: Bearer rb_live_...\n```\n\nA key belongs to one workspace and acts as the user who created it. To check a key, call `GET /cli/v1/account`.\n\n## Scopes\n\nEach key carries the scopes you select when creating it, and every endpoint lists the scopes it needs. Actions that reach customers have a scope of their own, so a key can be allowed to prepare something without being allowed to send it: `chat:send`, `releasenotes:publish`, `email-campaigns:activate`, `banners:publish` and `forms:publish`.\n\n## Errors\n\nErrors use the usual HTTP status codes and a JSON body of type `application/problem+json` with `status`, `title` and `detail`.\n\n| Status | Meaning |\n| --- | --- |\n| 400 | The request is incomplete or invalid. `detail` names the problem. |\n| 401 | The API key is missing, invalid or revoked. |\n| 403 | The key lacks a scope the endpoint needs, or its owner no longer has access to the workspace. |\n| 404 | The entry does not exist in this workspace. |\n\n## Pagination\n\nList endpoints that return many entries take `page` (starting at 0) and `size`. The response then contains the entries of that page and the total count.\n\n## Languages\n\nContent such as titles and texts is stored per language, as a map from language code to value, for example `{\"en\": \"Dark mode\", \"de\": \"Dunkler Modus\"}`. `GET /cli/v1/languages` returns the languages of the workspace.\n\n## Webhooks\n\nWebhooks notify your server when something happens in a workspace. Create one with `POST /cli/v1/webhooks`, giving an https `url` and the `events` to subscribe to.\n\nEach event is sent as a `POST` with a JSON body:\n\n```\n{\n  \"id\": \"evt_1a2b3c\",\n  \"type\": \"idea.created\",\n  \"createdAt\": \"2026-07-01T10:00:00.123Z\",\n  \"data\": { \"id\": \"idea_123\", \"title\": \"Dark mode\" }\n}\n```\n\nThe request carries these headers:\n\n| Header | Content |\n| --- | --- |\n| `Releasebird-Event-Id` | Id of the event. The same event keeps its id across retries, so use it to ignore duplicates. |\n| `Releasebird-Event-Type` | The event type, for example `idea.created`. |\n| `Releasebird-Delivery-Id` | Id of this delivery. |\n| `Releasebird-Signature` | `t=<unix seconds>,v1=<signature>` |\n\nTo verify a request, compute the HMAC-SHA256 of `<t>.<raw request body>` with the signing secret of the webhook and compare the hex result with `v1`. Reject requests whose timestamp is too old.\n\nAnswer with a 2xx status within 10 seconds. Any other answer counts as a failure and is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours. A webhook that fails 15 times in a row is switched off. Past deliveries can be listed and sent again.\n",
  "termsOfService": "https://www.releasebird.com/terms-conditions",
  "contact": {
   "name": "Releasebird",
   "url": "https://www.releasebird.com/contact"
  }
 },
 "servers": [
  {
   "url": "https://api.releasebird.com"
  }
 ],
 "tags": [
  {
   "name": "Account",
   "description": "The workspace an API key belongs to. Use it to check a key."
  },
  {
   "name": "Ideas",
   "description": "Feature requests collected from customers and the team."
  },
  {
   "name": "Feedback",
   "description": "Feedback entries with a sentiment and an importance."
  },
  {
   "name": "Roadmap",
   "description": "The roadmap board, its columns and its items."
  },
  {
   "name": "Release notes",
   "description": "Release notes in one or more languages, as drafts, scheduled or published."
  },
  {
   "name": "Knowledge base",
   "description": "Help center articles and the collections they are grouped in."
  },
  {
   "name": "Conversations",
   "description": "Support conversations from the widget, email and other channels."
  },
  {
   "name": "People",
   "description": "Contacts known to the workspace."
  },
  {
   "name": "Email campaigns",
   "description": "Multi-step email campaigns and the contacts enrolled in them."
  },
  {
   "name": "Banners",
   "description": "Banners shown to visitors on your site or in your app."
  },
  {
   "name": "Forms",
   "description": "Forms and the submissions they collect."
  },
  {
   "name": "Categories",
   "description": "Categories for ideas, roadmap items, release notes and articles."
  },
  {
   "name": "Labels",
   "description": "Labels for conversations."
  },
  {
   "name": "Snippets",
   "description": "Saved replies for the support inbox."
  },
  {
   "name": "Properties",
   "description": "Custom properties defined for people and companies."
  },
  {
   "name": "Languages",
   "description": "The languages a workspace publishes content in."
  },
  {
   "name": "Integrations",
   "description": "Integrations that can be switched on for a workspace."
  },
  {
   "name": "Webhooks",
   "description": "Webhook subscriptions and their delivery log."
  },
  {
   "name": "Error tracking",
   "description": "Errors reported by the SDK, grouped by cause."
  },
  {
   "name": "Source maps",
   "description": "Source maps used to resolve minified stack traces in error tracking."
  }
 ],
 "paths": {
  "/cli/v1/account": {
   "get": {
    "operationId": "AccountAccount",
    "tags": [
     "Account"
    ],
    "summary": "Get the workspace of an API key",
    "security": [
     {
      "apiKey": []
     }
    ],
    "x-scopes": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CliAccountDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns the workspace, company and user an API key belongs to. Any valid key may call this, whatever its scopes."
   }
  },
  "/cli/v1/banners": {
   "get": {
    "operationId": "BannerList",
    "tags": [
     "Banners"
    ],
    "summary": "List banners",
    "security": [
     {
      "apiKey": [
       "banners"
      ]
     }
    ],
    "x-scopes": [
     "banners"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/BannerDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "description": "Only return entries with this status.",
      "schema": {
       "$ref": "#/components/schemas/BannerStatus"
      }
     }
    ]
   },
   "post": {
    "operationId": "BannerCreate",
    "tags": [
     "Banners"
    ],
    "summary": "Create a banner",
    "security": [
     {
      "apiKey": [
       "banners"
      ]
     }
    ],
    "x-scopes": [
     "banners"
    ],
    "responses": {
     "201": {
      "description": "Created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BannerDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BannerDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/banners/{id}": {
   "get": {
    "operationId": "BannerGet",
    "tags": [
     "Banners"
    ],
    "summary": "Get a banner",
    "security": [
     {
      "apiKey": [
       "banners"
      ]
     }
    ],
    "x-scopes": [
     "banners"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BannerDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the banner.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "put": {
    "operationId": "BannerUpdate",
    "tags": [
     "Banners"
    ],
    "summary": "Update a banner",
    "security": [
     {
      "apiKey": [
       "banners"
      ]
     }
    ],
    "x-scopes": [
     "banners"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BannerDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the banner.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BannerDTO"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "BannerDelete",
    "tags": [
     "Banners"
    ],
    "summary": "Delete a banner",
    "security": [
     {
      "apiKey": [
       "banners"
      ]
     }
    ],
    "x-scopes": [
     "banners"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the banner.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/banners/{id}/publish": {
   "post": {
    "operationId": "BannerPublish",
    "tags": [
     "Banners"
    ],
    "summary": "Publish a banner",
    "security": [
     {
      "apiKey": [
       "banners",
       "banners:publish"
      ]
     }
    ],
    "x-scopes": [
     "banners",
     "banners:publish"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BannerDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The banner goes live for visitors. Needs the `banners:publish` scope.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the banner.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/banners/{id}/unpublish": {
   "post": {
    "operationId": "BannerUnpublish",
    "tags": [
     "Banners"
    ],
    "summary": "Take a banner offline",
    "security": [
     {
      "apiKey": [
       "banners"
      ]
     }
    ],
    "x-scopes": [
     "banners"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BannerDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the banner.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/banners/{id}/archive": {
   "post": {
    "operationId": "BannerArchive",
    "tags": [
     "Banners"
    ],
    "summary": "Archive a banner",
    "security": [
     {
      "apiKey": [
       "banners"
      ]
     }
    ],
    "x-scopes": [
     "banners"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BannerDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the banner.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/categories": {
   "get": {
    "operationId": "CategoryList",
    "tags": [
     "Categories"
    ],
    "summary": "List categories",
    "security": [
     {
      "apiKey": [
       "categories"
      ]
     }
    ],
    "x-scopes": [
     "categories"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/CategoryDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "CategoryCreate",
    "tags": [
     "Categories"
    ],
    "summary": "Create a category",
    "security": [
     {
      "apiKey": [
       "categories"
      ]
     }
    ],
    "x-scopes": [
     "categories"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CategoryDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CategoryDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/categories/{id}": {
   "get": {
    "operationId": "CategoryGet",
    "tags": [
     "Categories"
    ],
    "summary": "Get a category",
    "security": [
     {
      "apiKey": [
       "categories"
      ]
     }
    ],
    "x-scopes": [
     "categories"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CategoryDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the category.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "put": {
    "operationId": "CategoryUpdate",
    "tags": [
     "Categories"
    ],
    "summary": "Update a category",
    "security": [
     {
      "apiKey": [
       "categories"
      ]
     }
    ],
    "x-scopes": [
     "categories"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CategoryDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the category.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CategoryDTO"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "CategoryDelete",
    "tags": [
     "Categories"
    ],
    "summary": "Delete a category",
    "security": [
     {
      "apiKey": [
       "categories"
      ]
     }
    ],
    "x-scopes": [
     "categories"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the category.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/chats": {
   "get": {
    "operationId": "ChatListOpen",
    "tags": [
     "Conversations"
    ],
    "summary": "List open conversations",
    "security": [
     {
      "apiKey": [
       "chat"
      ]
     }
    ],
    "x-scopes": [
     "chat"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ChatDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/cli/v1/chats/count": {
   "get": {
    "operationId": "ChatCount",
    "tags": [
     "Conversations"
    ],
    "summary": "Count conversations",
    "security": [
     {
      "apiKey": [
       "chat"
      ]
     }
    ],
    "x-scopes": [
     "chat"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChatCountDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns the number of open and unread conversations."
   }
  },
  "/cli/v1/chats/{id}": {
   "get": {
    "operationId": "ChatGet",
    "tags": [
     "Conversations"
    ],
    "summary": "Get a conversation",
    "security": [
     {
      "apiKey": [
       "chat"
      ]
     }
    ],
    "x-scopes": [
     "chat"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChatDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns the conversation with its messages and marks it as read.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the conversation.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/chats/{id}/reply": {
   "post": {
    "operationId": "ChatReply",
    "tags": [
     "Conversations"
    ],
    "summary": "Reply to the customer",
    "security": [
     {
      "apiKey": [
       "chat:send"
      ]
     }
    ],
    "x-scopes": [
     "chat:send"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChatDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Sends a message to the customer. Needs the `chat:send` scope.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the conversation.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MessageDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/chats/{id}/note": {
   "post": {
    "operationId": "ChatNote",
    "tags": [
     "Conversations"
    ],
    "summary": "Add an internal note",
    "security": [
     {
      "apiKey": [
       "chat"
      ]
     }
    ],
    "x-scopes": [
     "chat"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChatDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The note is visible to the team only.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the conversation.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MessageDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/chats/{id}/draft": {
   "post": {
    "operationId": "ChatDraft",
    "tags": [
     "Conversations"
    ],
    "summary": "Save a reply as a draft",
    "security": [
     {
      "apiKey": [
       "chat"
      ]
     }
    ],
    "x-scopes": [
     "chat"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChatDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The draft is visible to the team only and is not sent.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the conversation.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MessageDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/chats/{id}/draft/{messageId}/confirm": {
   "post": {
    "operationId": "ChatConfirmDraft",
    "tags": [
     "Conversations"
    ],
    "summary": "Send a draft",
    "security": [
     {
      "apiKey": [
       "chat:send"
      ]
     }
    ],
    "x-scopes": [
     "chat:send"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChatDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Sends a saved draft to the customer. Needs the `chat:send` scope.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the conversation.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "messageId",
      "in": "path",
      "required": true,
      "description": "Id of the draft message.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/chats/{id}/close": {
   "put": {
    "operationId": "ChatClose",
    "tags": [
     "Conversations"
    ],
    "summary": "Close a conversation",
    "security": [
     {
      "apiKey": [
       "chat"
      ]
     }
    ],
    "x-scopes": [
     "chat"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the conversation.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/email-campaigns": {
   "get": {
    "operationId": "EmailCampaignList",
    "tags": [
     "Email campaigns"
    ],
    "summary": "List email campaigns",
    "security": [
     {
      "apiKey": [
       "email-campaigns"
      ]
     }
    ],
    "x-scopes": [
     "email-campaigns"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/EmailCampaign"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "EmailCampaignCreate",
    "tags": [
     "Email campaigns"
    ],
    "summary": "Create an email campaign",
    "security": [
     {
      "apiKey": [
       "email-campaigns"
      ]
     }
    ],
    "x-scopes": [
     "email-campaigns"
    ],
    "responses": {
     "201": {
      "description": "Created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EmailCampaign"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EmailCampaign"
       }
      }
     }
    }
   }
  },
  "/cli/v1/email-campaigns/{id}": {
   "get": {
    "operationId": "EmailCampaignGet",
    "tags": [
     "Email campaigns"
    ],
    "summary": "Get an email campaign",
    "security": [
     {
      "apiKey": [
       "email-campaigns"
      ]
     }
    ],
    "x-scopes": [
     "email-campaigns"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EmailCampaign"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the email campaign.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "put": {
    "operationId": "EmailCampaignUpdate",
    "tags": [
     "Email campaigns"
    ],
    "summary": "Update an email campaign",
    "security": [
     {
      "apiKey": [
       "email-campaigns"
      ]
     }
    ],
    "x-scopes": [
     "email-campaigns"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EmailCampaign"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the email campaign.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EmailCampaign"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "EmailCampaignDelete",
    "tags": [
     "Email campaigns"
    ],
    "summary": "Delete an email campaign",
    "security": [
     {
      "apiKey": [
       "email-campaigns"
      ]
     }
    ],
    "x-scopes": [
     "email-campaigns"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the email campaign.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/email-campaigns/{id}/status": {
   "put": {
    "operationId": "EmailCampaignUpdateStatus",
    "tags": [
     "Email campaigns"
    ],
    "summary": "Change the status of an email campaign",
    "security": [
     {
      "apiKey": [
       "email-campaigns",
       "email-campaigns:activate"
      ]
     }
    ],
    "x-scopes": [
     "email-campaigns",
     "email-campaigns:activate"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EmailCampaign"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Body: `{\"status\": \"ACTIVE\"}`. Activating a campaign sends real emails and needs the `email-campaigns:activate` scope.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the email campaign.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "additionalProperties": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/cli/v1/email-campaigns/{id}/enrollments": {
   "get": {
    "operationId": "EmailCampaignEnrollments",
    "tags": [
     "Email campaigns"
    ],
    "summary": "List the contacts enrolled in a campaign",
    "security": [
     {
      "apiKey": [
       "email-campaigns"
      ]
     }
    ],
    "x-scopes": [
     "email-campaigns"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/EmailCampaignEnrollment"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the email campaign.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/email-campaigns/{id}/enroll": {
   "post": {
    "operationId": "EmailCampaignEnroll",
    "tags": [
     "Email campaigns"
    ],
    "summary": "Enroll a contact in a campaign",
    "security": [
     {
      "apiKey": [
       "email-campaigns"
      ]
     }
    ],
    "x-scopes": [
     "email-campaigns"
    ],
    "responses": {
     "201": {
      "description": "Created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EmailCampaignEnrollment"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request: email is required.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "`email` is required. A contact already enrolled is not enrolled twice.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the email campaign.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EmailCampaignEnrollmentDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/errors": {
   "get": {
    "operationId": "ErrorList",
    "tags": [
     "Error tracking"
    ],
    "summary": "List errors",
    "security": [
     {
      "apiKey": [
       "errors"
      ]
     }
    ],
    "x-scopes": [
     "errors"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {}
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns error groups page by page. Filter by status, environment, release, age in days or a search text.",
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "description": "Only return entries with this status.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "environment",
      "in": "query",
      "required": false,
      "description": "Only return errors from this environment.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "release",
      "in": "query",
      "required": false,
      "description": "The release, as reported by the SDK.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "Only return errors seen in the last n days.",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "search",
      "in": "query",
      "required": false,
      "description": "Search text.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "Sort order.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "description": "Page number, starting at 0.",
      "schema": {
       "type": "integer",
       "default": 0
      }
     },
     {
      "name": "size",
      "in": "query",
      "required": false,
      "description": "Entries per page.",
      "schema": {
       "type": "integer",
       "default": 25
      }
     }
    ]
   }
  },
  "/cli/v1/errors/{id}": {
   "get": {
    "operationId": "ErrorDetail",
    "tags": [
     "Error tracking"
    ],
    "summary": "Get an error",
    "security": [
     {
      "apiKey": [
       "errors"
      ]
     }
    ],
    "x-scopes": [
     "errors"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {}
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the error.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "patch": {
    "operationId": "ErrorUpdate",
    "tags": [
     "Error tracking"
    ],
    "summary": "Change the status of an error",
    "security": [
     {
      "apiKey": [
       "errors"
      ]
     }
    ],
    "x-scopes": [
     "errors"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {}
        }
       }
      }
     },
     "400": {
      "description": "Invalid request: status required.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Body: `{\"status\": \"RESOLVED\"}`. `status` is `OPEN`, `RESOLVED` or `IGNORED`; with `RESOLVED` you may add `resolvedInRelease`.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the error.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "additionalProperties": {}
       }
      }
     }
    }
   }
  },
  "/cli/v1/errors/{id}/events": {
   "get": {
    "operationId": "ErrorEvents",
    "tags": [
     "Error tracking"
    ],
    "summary": "List the occurrences of an error",
    "security": [
     {
      "apiKey": [
       "errors"
      ]
     }
    ],
    "x-scopes": [
     "errors"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {}
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Single occurrences, newest first, with stack trace, the steps before the error and extra data.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the error.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "description": "Page number, starting at 0.",
      "schema": {
       "type": "integer",
       "default": 0
      }
     },
     {
      "name": "size",
      "in": "query",
      "required": false,
      "description": "Entries per page.",
      "schema": {
       "type": "integer",
       "default": 1
      }
     }
    ]
   }
  },
  "/cli/v1/feedback": {
   "get": {
    "operationId": "FeedbackList",
    "tags": [
     "Feedback"
    ],
    "summary": "List feedback",
    "security": [
     {
      "apiKey": [
       "feedback"
      ]
     }
    ],
    "x-scopes": [
     "feedback"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FeedbackResultDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns feedback entries page by page, newest first.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "required": false,
      "description": "Page number, starting at 0.",
      "schema": {
       "type": "integer",
       "default": 0
      }
     },
     {
      "name": "size",
      "in": "query",
      "required": false,
      "description": "Entries per page.",
      "schema": {
       "type": "integer",
       "default": 20
      }
     }
    ]
   },
   "post": {
    "operationId": "FeedbackCreate",
    "tags": [
     "Feedback"
    ],
    "summary": "Create a feedback entry",
    "security": [
     {
      "apiKey": [
       "feedback"
      ]
     }
    ],
    "x-scopes": [
     "feedback"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FeedbackDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Emits the `feedback.created` webhook event.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FeedbackDTO"
       }
      }
     }
    }
   },
   "put": {
    "operationId": "FeedbackUpdate",
    "tags": [
     "Feedback"
    ],
    "summary": "Update a feedback entry",
    "security": [
     {
      "apiKey": [
       "feedback"
      ]
     }
    ],
    "x-scopes": [
     "feedback"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FeedbackDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The entry is identified by the `id` in the body.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FeedbackDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/feedback/{id}": {
   "get": {
    "operationId": "FeedbackGet",
    "tags": [
     "Feedback"
    ],
    "summary": "Get a feedback entry",
    "security": [
     {
      "apiKey": [
       "feedback"
      ]
     }
    ],
    "x-scopes": [
     "feedback"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FeedbackDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the feedback entry.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "delete": {
    "operationId": "FeedbackDelete",
    "tags": [
     "Feedback"
    ],
    "summary": "Delete a feedback entry",
    "security": [
     {
      "apiKey": [
       "feedback"
      ]
     }
    ],
    "x-scopes": [
     "feedback"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the feedback entry.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/forms": {
   "get": {
    "operationId": "FormList",
    "tags": [
     "Forms"
    ],
    "summary": "List forms",
    "security": [
     {
      "apiKey": [
       "forms"
      ]
     }
    ],
    "x-scopes": [
     "forms"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/FormDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "description": "Only return entries with this status.",
      "schema": {
       "$ref": "#/components/schemas/FormStatus"
      }
     }
    ]
   },
   "post": {
    "operationId": "FormCreate",
    "tags": [
     "Forms"
    ],
    "summary": "Create a form",
    "security": [
     {
      "apiKey": [
       "forms"
      ]
     }
    ],
    "x-scopes": [
     "forms"
    ],
    "responses": {
     "201": {
      "description": "Created",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FormDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FormDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/forms/{id}": {
   "get": {
    "operationId": "FormGet",
    "tags": [
     "Forms"
    ],
    "summary": "Get a form",
    "security": [
     {
      "apiKey": [
       "forms"
      ]
     }
    ],
    "x-scopes": [
     "forms"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FormDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the form.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "put": {
    "operationId": "FormUpdate",
    "tags": [
     "Forms"
    ],
    "summary": "Update a form",
    "security": [
     {
      "apiKey": [
       "forms"
      ]
     }
    ],
    "x-scopes": [
     "forms"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FormDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the form.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FormDTO"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "FormDelete",
    "tags": [
     "Forms"
    ],
    "summary": "Delete a form",
    "security": [
     {
      "apiKey": [
       "forms"
      ]
     }
    ],
    "x-scopes": [
     "forms"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the form.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/forms/{id}/publish": {
   "post": {
    "operationId": "FormPublish",
    "tags": [
     "Forms"
    ],
    "summary": "Publish a form",
    "security": [
     {
      "apiKey": [
       "forms",
       "forms:publish"
      ]
     }
    ],
    "x-scopes": [
     "forms",
     "forms:publish"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FormDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The form goes live. Needs the `forms:publish` scope.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the form.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/forms/{id}/unpublish": {
   "post": {
    "operationId": "FormUnpublish",
    "tags": [
     "Forms"
    ],
    "summary": "Take a form offline",
    "security": [
     {
      "apiKey": [
       "forms"
      ]
     }
    ],
    "x-scopes": [
     "forms"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FormDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the form.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/forms/{id}/archive": {
   "post": {
    "operationId": "FormArchive",
    "tags": [
     "Forms"
    ],
    "summary": "Archive a form",
    "security": [
     {
      "apiKey": [
       "forms"
      ]
     }
    ],
    "x-scopes": [
     "forms"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FormDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the form.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/forms/{id}/submissions": {
   "get": {
    "operationId": "FormSubmissions",
    "tags": [
     "Forms"
    ],
    "summary": "List the submissions of a form",
    "security": [
     {
      "apiKey": [
       "forms"
      ]
     }
    ],
    "x-scopes": [
     "forms"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/FormSubmissionDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the form.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/ideas/{id}/notify": {
   "post": {
    "operationId": "IdeaNotifyDonor",
    "tags": [
     "Ideas"
    ],
    "summary": "Message the person who submitted an idea",
    "security": [
     {
      "apiKey": [
       "ideas",
       "chat",
       "chat:send"
      ]
     }
    ],
    "x-scopes": [
     "ideas",
     "chat",
     "chat:send"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {}
        }
       }
      }
     },
     "400": {
      "description": "Invalid request: Message missing; Idea has no contact.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Writes to the contact who submitted the idea, in their most recent open conversation or in a new one. With `draft=true` the message is stored as an internal draft and needs the `chat` scope; otherwise it is sent to the contact and needs `chat:send`.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the idea.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "draft",
      "in": "query",
      "required": false,
      "description": "Store the message as an internal draft instead of sending it.",
      "schema": {
       "type": "boolean",
       "default": false
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MessageDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/ideas": {
   "get": {
    "operationId": "IdeaList",
    "tags": [
     "Ideas"
    ],
    "summary": "List ideas",
    "security": [
     {
      "apiKey": [
       "ideas"
      ]
     }
    ],
    "x-scopes": [
     "ideas"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IdeaResultDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns ideas page by page, newest first.",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "required": false,
      "description": "Page number, starting at 0.",
      "schema": {
       "type": "integer",
       "default": 0
      }
     },
     {
      "name": "size",
      "in": "query",
      "required": false,
      "description": "Entries per page.",
      "schema": {
       "type": "integer",
       "default": 20
      }
     }
    ]
   },
   "post": {
    "operationId": "IdeaCreate",
    "tags": [
     "Ideas"
    ],
    "summary": "Create an idea",
    "security": [
     {
      "apiKey": [
       "ideas"
      ]
     }
    ],
    "x-scopes": [
     "ideas"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IdeaDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Emits the `idea.created` webhook event.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/IdeaDTO"
       }
      }
     }
    }
   },
   "put": {
    "operationId": "IdeaUpdate",
    "tags": [
     "Ideas"
    ],
    "summary": "Update an idea",
    "security": [
     {
      "apiKey": [
       "ideas"
      ]
     }
    ],
    "x-scopes": [
     "ideas"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IdeaDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The idea is identified by the `id` in the body. Changing `status` emits the `idea.status_changed` webhook event.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/IdeaDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/ideas/{id}": {
   "get": {
    "operationId": "IdeaGet",
    "tags": [
     "Ideas"
    ],
    "summary": "Get an idea",
    "security": [
     {
      "apiKey": [
       "ideas"
      ]
     }
    ],
    "x-scopes": [
     "ideas"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IdeaDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the idea.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "delete": {
    "operationId": "IdeaDelete",
    "tags": [
     "Ideas"
    ],
    "summary": "Delete an idea",
    "security": [
     {
      "apiKey": [
       "ideas"
      ]
     }
    ],
    "x-scopes": [
     "ideas"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the idea.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/integrations": {
   "get": {
    "operationId": "IntegrationList",
    "tags": [
     "Integrations"
    ],
    "summary": "List integrations",
    "security": [
     {
      "apiKey": [
       "integrations"
      ]
     }
    ],
    "x-scopes": [
     "integrations"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/IntegrationWithStatusDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/cli/v1/integrations/{slug}": {
   "get": {
    "operationId": "IntegrationGet",
    "tags": [
     "Integrations"
    ],
    "summary": "Get an integration",
    "security": [
     {
      "apiKey": [
       "integrations"
      ]
     }
    ],
    "x-scopes": [
     "integrations"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IntegrationWithStatusDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "description": "Short name of the integration, for example `slack`.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/integrations/{slug}/status": {
   "get": {
    "operationId": "IntegrationStatus",
    "tags": [
     "Integrations"
    ],
    "summary": "Check whether an integration is active",
    "security": [
     {
      "apiKey": [
       "integrations"
      ]
     }
    ],
    "x-scopes": [
     "integrations"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {
          "type": "boolean"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "description": "Short name of the integration, for example `slack`.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/integrations/{slug}/activate": {
   "post": {
    "operationId": "IntegrationActivate",
    "tags": [
     "Integrations"
    ],
    "summary": "Activate an integration",
    "security": [
     {
      "apiKey": [
       "integrations"
      ]
     }
    ],
    "x-scopes": [
     "integrations"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IntegrationWithStatusDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request: Could not activate integration.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "description": "Short name of the integration, for example `slack`.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/integrations/{slug}/deactivate": {
   "post": {
    "operationId": "IntegrationDeactivate",
    "tags": [
     "Integrations"
    ],
    "summary": "Deactivate an integration",
    "security": [
     {
      "apiKey": [
       "integrations"
      ]
     }
    ],
    "x-scopes": [
     "integrations"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "description": "Short name of the integration, for example `slack`.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/knowledgebase": {
   "get": {
    "operationId": "KnowledgebaseGetKnowledgebase",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Get the knowledge base",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KnowledgebaseDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns the knowledge base with its collections."
   }
  },
  "/cli/v1/knowledgebase/articles": {
   "get": {
    "operationId": "KnowledgebaseListArticles",
    "tags": [
     "Knowledge base"
    ],
    "summary": "List articles",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ArticleSummaryDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/cli/v1/knowledgebase/article/{id}": {
   "get": {
    "operationId": "KnowledgebaseGetArticle",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Get an article",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ArticleDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the article.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "delete": {
    "operationId": "KnowledgebaseDeleteArticle",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Delete an article",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the article.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/knowledgebase/article": {
   "post": {
    "operationId": "KnowledgebaseCreateArticle",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Create an article",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {
          "type": "string"
         }
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "New articles are drafts. Returns the id of the article.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ArticleDTO"
       }
      }
     }
    }
   },
   "put": {
    "operationId": "KnowledgebaseUpdateArticle",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Update an article",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The article is identified by the `id` in the body.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ArticleDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/knowledgebase/article/{id}/publish": {
   "post": {
    "operationId": "KnowledgebasePublishArticle",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Publish an article",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the article.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/knowledgebase/article/{id}/draft": {
   "post": {
    "operationId": "KnowledgebaseDraftArticle",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Turn an article back into a draft",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the article.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/knowledgebase/collection": {
   "post": {
    "operationId": "KnowledgebaseCreateCollection",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Create a collection",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {
          "type": "string"
         }
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns the id of the collection.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CollectionDTO"
       }
      }
     }
    }
   },
   "put": {
    "operationId": "KnowledgebaseUpdateCollection",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Update a collection",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The collection is identified by the `id` in the body. Only the language given is changed.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CollectionDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/knowledgebase/collection/{id}": {
   "delete": {
    "operationId": "KnowledgebaseDeleteCollection",
    "tags": [
     "Knowledge base"
    ],
    "summary": "Delete a collection",
    "security": [
     {
      "apiKey": [
       "knowledgebase"
      ]
     }
    ],
    "x-scopes": [
     "knowledgebase"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the article.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/labels": {
   "get": {
    "operationId": "LabelList",
    "tags": [
     "Labels"
    ],
    "summary": "List labels",
    "security": [
     {
      "apiKey": [
       "labels"
      ]
     }
    ],
    "x-scopes": [
     "labels"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/LabelDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "LabelCreate",
    "tags": [
     "Labels"
    ],
    "summary": "Create a label",
    "security": [
     {
      "apiKey": [
       "labels"
      ]
     }
    ],
    "x-scopes": [
     "labels"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LabelDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/labels/{id}": {
   "get": {
    "operationId": "LabelGet",
    "tags": [
     "Labels"
    ],
    "summary": "Get a label",
    "security": [
     {
      "apiKey": [
       "labels"
      ]
     }
    ],
    "x-scopes": [
     "labels"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LabelDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the label.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "put": {
    "operationId": "LabelUpdate",
    "tags": [
     "Labels"
    ],
    "summary": "Update a label",
    "security": [
     {
      "apiKey": [
       "labels"
      ]
     }
    ],
    "x-scopes": [
     "labels"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the label.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LabelDTO"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "LabelDelete",
    "tags": [
     "Labels"
    ],
    "summary": "Delete a label",
    "security": [
     {
      "apiKey": [
       "labels"
      ]
     }
    ],
    "x-scopes": [
     "labels"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the label.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/languages": {
   "get": {
    "operationId": "LanguageList",
    "tags": [
     "Languages"
    ],
    "summary": "List the languages of the workspace",
    "security": [
     {
      "apiKey": []
     }
    ],
    "x-scopes": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/LanguageDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Active languages with their code and display name, the default language first. Any valid key may call this."
   }
  },
  "/cli/v1/languages/add": {
   "post": {
    "operationId": "LanguageAdd",
    "tags": [
     "Languages"
    ],
    "summary": "Add a language",
    "security": [
     {
      "apiKey": [
       "languages"
      ]
     }
    ],
    "x-scopes": [
     "languages"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LanguageSettingsDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LanguageDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/languages/remove": {
   "post": {
    "operationId": "LanguageRemove",
    "tags": [
     "Languages"
    ],
    "summary": "Remove a language",
    "security": [
     {
      "apiKey": [
       "languages"
      ]
     }
    ],
    "x-scopes": [
     "languages"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LanguageSettingsDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LanguageDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/languages/default": {
   "post": {
    "operationId": "LanguageMakeDefault",
    "tags": [
     "Languages"
    ],
    "summary": "Set the default language",
    "security": [
     {
      "apiKey": [
       "languages"
      ]
     }
    ],
    "x-scopes": [
     "languages"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LanguageSettingsDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LanguageDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/people": {
   "post": {
    "operationId": "PeopleUpsert",
    "tags": [
     "People"
    ],
    "summary": "Create or update a person",
    "security": [
     {
      "apiKey": [
       "people"
      ]
     }
    ],
    "x-scopes": [
     "people"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PeopleDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Matches an existing person by `externalUserId`, then by `email`, and updates it; otherwise a new person is created.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CliPeopleUpsertDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/properties/{entityType}": {
   "get": {
    "operationId": "PropertyList",
    "tags": [
     "Properties"
    ],
    "summary": "List the custom properties of an entity type",
    "security": [
     {
      "apiKey": [
       "properties"
      ]
     }
    ],
    "x-scopes": [
     "properties"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/DynamicPropertyDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "entityType",
      "in": "path",
      "required": true,
      "description": "The entity type the properties belong to.",
      "schema": {
       "$ref": "#/components/schemas/DynamicPropertyEntityType"
      }
     }
    ]
   }
  },
  "/cli/v1/releasenotes": {
   "get": {
    "operationId": "ReleaseNoteList",
    "tags": [
     "Release notes"
    ],
    "summary": "List release notes",
    "security": [
     {
      "apiKey": [
       "releasenotes"
      ]
     }
    ],
    "x-scopes": [
     "releasenotes"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/SelectOptionDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "A light list of all release notes with id and title, whatever their status."
   },
   "post": {
    "operationId": "ReleaseNoteCreate",
    "tags": [
     "Release notes"
    ],
    "summary": "Create a release note",
    "security": [
     {
      "apiKey": [
       "releasenotes"
      ]
     }
    ],
    "x-scopes": [
     "releasenotes"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReleaseNoteDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Creates a draft. Setting the status to `PUBLISHED` or `SCHEDULED` also needs the `releasenotes:publish` scope. Publishing emits the `releasenote.published` webhook event.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReleaseNoteDTO"
       }
      }
     }
    }
   },
   "put": {
    "operationId": "ReleaseNoteUpdate",
    "tags": [
     "Release notes"
    ],
    "summary": "Update a release note",
    "security": [
     {
      "apiKey": [
       "releasenotes",
       "releasenotes:publish"
      ]
     }
    ],
    "x-scopes": [
     "releasenotes",
     "releasenotes:publish"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReleaseNoteDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The release note is identified by the `id` in the body. Changing the status or the publication time needs the `releasenotes:publish` scope; corrections to the content of a published note do not.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReleaseNoteDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/releasenotes/{id}": {
   "get": {
    "operationId": "ReleaseNoteGet",
    "tags": [
     "Release notes"
    ],
    "summary": "Get a release note",
    "security": [
     {
      "apiKey": [
       "releasenotes"
      ]
     }
    ],
    "x-scopes": [
     "releasenotes"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReleaseNoteDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the release note.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "delete": {
    "operationId": "ReleaseNoteDelete",
    "tags": [
     "Release notes"
    ],
    "summary": "Delete a release note",
    "security": [
     {
      "apiKey": [
       "releasenotes"
      ]
     }
    ],
    "x-scopes": [
     "releasenotes"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the release note.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/releasenotes/{id}/image": {
   "post": {
    "operationId": "ReleaseNoteGenerateImage",
    "tags": [
     "Release notes"
    ],
    "summary": "Generate a cover image",
    "security": [
     {
      "apiKey": [
       "releasenotes"
      ]
     }
    ],
    "x-scopes": [
     "releasenotes"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ImageDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request: prompt is required.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Creates a cover image with AI from a prompt and attaches it to the release note, replacing an existing one. This uses the AI tokens of the workspace. `size` is optional and defaults to a 16:9 image.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the release note.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GenerateImageRequest"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "ReleaseNoteDeleteImage",
    "tags": [
     "Release notes"
    ],
    "summary": "Remove the cover image",
    "security": [
     {
      "apiKey": [
       "releasenotes"
      ]
     }
    ],
    "x-scopes": [
     "releasenotes"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the release note.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/roadmap": {
   "get": {
    "operationId": "RoadmapBoard",
    "tags": [
     "Roadmap"
    ],
    "summary": "Get the roadmap board",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RoadmapDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns the columns of the board with their items."
   }
  },
  "/cli/v1/roadmap/columns": {
   "post": {
    "operationId": "RoadmapAddColumn",
    "tags": [
     "Roadmap"
    ],
    "summary": "Add a column",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RoadmapColumnDTO"
       }
      }
     }
    }
   },
   "put": {
    "operationId": "RoadmapUpdateColumn",
    "tags": [
     "Roadmap"
    ],
    "summary": "Update a column",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The column is identified by the `id` in the body.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RoadmapColumnDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/roadmap/columns/{id}": {
   "delete": {
    "operationId": "RoadmapDeleteColumn",
    "tags": [
     "Roadmap"
    ],
    "summary": "Delete a column",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/roadmap/items": {
   "get": {
    "operationId": "RoadmapListItems",
    "tags": [
     "Roadmap"
    ],
    "summary": "List roadmap items",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/RoadmapItemDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "RoadmapCreateItem",
    "tags": [
     "Roadmap"
    ],
    "summary": "Create a roadmap item",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RoadmapItemDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "New items are placed in the first column.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AddRoadmapItemRequestDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/roadmap/items/dropdown": {
   "get": {
    "operationId": "RoadmapItemsDropdown",
    "tags": [
     "Roadmap"
    ],
    "summary": "List roadmap items as id and title",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/SelectOptionDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "A light list for pickers."
   }
  },
  "/cli/v1/roadmap/items/{id}": {
   "get": {
    "operationId": "RoadmapGetItem",
    "tags": [
     "Roadmap"
    ],
    "summary": "Get a roadmap item",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RoadmapItemDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "put": {
    "operationId": "RoadmapUpdateItem",
    "tags": [
     "Roadmap"
    ],
    "summary": "Update a roadmap item",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RoadmapItemDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RoadmapItemDTO"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "RoadmapDeleteItem",
    "tags": [
     "Roadmap"
    ],
    "summary": "Delete a roadmap item",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/roadmap/items/{id}/move": {
   "put": {
    "operationId": "RoadmapMoveItem",
    "tags": [
     "Roadmap"
    ],
    "summary": "Move a roadmap item to a column",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "400": {
      "description": "Invalid request: columnId is required.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Body: `{\"columnId\": \"...\", \"top\": false}`. `top` puts the item at the top of the column. Emits the `roadmap.item_moved` webhook event.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "additionalProperties": {}
       }
      }
     }
    }
   }
  },
  "/cli/v1/roadmap/items/{id}/archive": {
   "put": {
    "operationId": "RoadmapArchiveItem",
    "tags": [
     "Roadmap"
    ],
    "summary": "Archive a roadmap item",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/roadmap/items/{id}/unarchive": {
   "put": {
    "operationId": "RoadmapUnarchiveItem",
    "tags": [
     "Roadmap"
    ],
    "summary": "Restore an archived roadmap item",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/roadmap/items/{id}/ideas/{ideaId}/link": {
   "post": {
    "operationId": "RoadmapLinkIdea",
    "tags": [
     "Roadmap"
    ],
    "summary": "Link an idea to a roadmap item",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RoadmapItemDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ideaId",
      "in": "path",
      "required": true,
      "description": "Id of the idea.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/roadmap/items/{id}/ideas/{ideaId}/unlink": {
   "post": {
    "operationId": "RoadmapUnlinkIdea",
    "tags": [
     "Roadmap"
    ],
    "summary": "Remove the link between an idea and a roadmap item",
    "security": [
     {
      "apiKey": [
       "roadmap"
      ]
     }
    ],
    "x-scopes": [
     "roadmap"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RoadmapItemDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the roadmap item.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ideaId",
      "in": "path",
      "required": true,
      "description": "Id of the idea.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/snippets": {
   "get": {
    "operationId": "SnippetList",
    "tags": [
     "Snippets"
    ],
    "summary": "List snippets",
    "security": [
     {
      "apiKey": [
       "snippets"
      ]
     }
    ],
    "x-scopes": [
     "snippets"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/SnippetDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "SnippetCreate",
    "tags": [
     "Snippets"
    ],
    "summary": "Create a snippet",
    "security": [
     {
      "apiKey": [
       "snippets"
      ]
     }
    ],
    "x-scopes": [
     "snippets"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SnippetDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SnippetDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/snippets/{id}": {
   "put": {
    "operationId": "SnippetUpdate",
    "tags": [
     "Snippets"
    ],
    "summary": "Update a snippet",
    "security": [
     {
      "apiKey": [
       "snippets"
      ]
     }
    ],
    "x-scopes": [
     "snippets"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SnippetDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the snippet.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SnippetDTO"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "SnippetDelete",
    "tags": [
     "Snippets"
    ],
    "summary": "Delete a snippet",
    "security": [
     {
      "apiKey": [
       "snippets"
      ]
     }
    ],
    "x-scopes": [
     "snippets"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the snippet.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/sourcemaps": {
   "get": {
    "operationId": "SourceMapList",
    "tags": [
     "Source maps"
    ],
    "summary": "List uploaded source maps",
    "security": [
     {
      "apiKey": [
       "sourcemaps"
      ]
     }
    ],
    "x-scopes": [
     "sourcemaps"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "object",
          "additionalProperties": {}
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "put": {
    "operationId": "SourceMapUpload",
    "tags": [
     "Source maps"
    ],
    "summary": "Upload a source map",
    "security": [
     {
      "apiKey": [
       "sourcemaps"
      ]
     }
    ],
    "x-scopes": [
     "sourcemaps"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {}
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The request body is the source map file. `release` is the version the SDK reports, `file` the path of the JavaScript file the map belongs to.",
    "parameters": [
     {
      "name": "release",
      "in": "query",
      "required": true,
      "description": "The release, as reported by the SDK.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "file",
      "in": "query",
      "required": true,
      "description": "Path of the JavaScript file the source map belongs to.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/octet-stream": {
       "schema": {
        "type": "string",
        "format": "binary"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "SourceMapDelete",
    "tags": [
     "Source maps"
    ],
    "summary": "Delete the source maps of a release",
    "security": [
     {
      "apiKey": [
       "sourcemaps"
      ]
     }
    ],
    "x-scopes": [
     "sourcemaps"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "release",
      "in": "query",
      "required": true,
      "description": "The release, as reported by the SDK.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/webhooks/events": {
   "get": {
    "operationId": "WebhookEvents",
    "tags": [
     "Webhooks"
    ],
    "summary": "List the event types",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns every event type a webhook can subscribe to."
   }
  },
  "/cli/v1/webhooks": {
   "get": {
    "operationId": "WebhookList",
    "tags": [
     "Webhooks"
    ],
    "summary": "List webhooks",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/WebhookDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "WebhookCreate",
    "tags": [
     "Webhooks"
    ],
    "summary": "Create a webhook",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "`url` must be an absolute https URL and `events` must name at least one event type. The response contains the signing secret; it is shown only here and after a rotation.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDTO"
       }
      }
     }
    }
   }
  },
  "/cli/v1/webhooks/{id}": {
   "get": {
    "operationId": "WebhookGet",
    "tags": [
     "Webhooks"
    ],
    "summary": "Get a webhook",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the webhook.",
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "put": {
    "operationId": "WebhookUpdate",
    "tags": [
     "Webhooks"
    ],
    "summary": "Update a webhook",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookDTO"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the webhook.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDTO"
       }
      }
     }
    }
   },
   "delete": {
    "operationId": "WebhookDelete",
    "tags": [
     "Webhooks"
    ],
    "summary": "Delete a webhook",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "204": {
      "description": "Done, no content"
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the webhook.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/webhooks/{id}/rotate-secret": {
   "post": {
    "operationId": "WebhookRotateSecret",
    "tags": [
     "Webhooks"
    ],
    "summary": "Rotate the signing secret",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "Returns the webhook with its new secret. The old secret stops working at once.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the webhook.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/webhooks/{id}/deliveries": {
   "get": {
    "operationId": "WebhookDeliveries",
    "tags": [
     "Webhooks"
    ],
    "summary": "List the deliveries of a webhook",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/WebhookDeliveryDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "description": "The delivery log with status, attempts and the response received.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Id of the webhook.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/cli/v1/webhooks/deliveries/{deliveryId}/redeliver": {
   "post": {
    "operationId": "WebhookRedeliver",
    "tags": [
     "Webhooks"
    ],
    "summary": "Send a delivery again",
    "security": [
     {
      "apiKey": [
       "webhooks"
      ]
     }
    ],
    "x-scopes": [
     "webhooks"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookDeliveryDTO"
        }
       }
      }
     },
     "401": {
      "description": "The API key is missing, invalid or revoked.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "The API key lacks a required scope.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Not found in this workspace.",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "deliveryId",
      "in": "path",
      "required": true,
      "description": "Id of the delivery.",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  }
 },
 "webhooks": {
  "releasenote.published": {
   "post": {
    "operationId": "eventReleasenotePublished",
    "summary": "A release note was published.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "releasenote.published",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {
         "id": "rn_123",
         "status": "PUBLISHED",
         "title": "Version 2.1",
         "summary": "Faster search and a new roadmap view.",
         "publishAt": "2026-07-01T10:00:00Z",
         "languages": [
          "en"
         ]
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "releasenote.updated": {
   "post": {
    "operationId": "eventReleasenoteUpdated",
    "summary": "A published release note was changed.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "releasenote.updated",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {
         "id": "rn_123",
         "status": "PUBLISHED",
         "title": "Version 2.1",
         "languages": [
          "en"
         ]
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "feedback.created": {
   "post": {
    "operationId": "eventFeedbackCreated",
    "summary": "A feedback entry was created.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "feedback.created",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {
         "id": "fb_123",
         "feedbackType": "POSITIVE",
         "importance": "MEDIUM",
         "description": "The new editor is great."
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "idea.created": {
   "post": {
    "operationId": "eventIdeaCreated",
    "summary": "An idea was created.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "idea.created",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {
         "id": "idea_123",
         "title": "Dark mode",
         "description": "Please add a dark theme.",
         "status": "REQUESTED",
         "importance": "MEDIUM",
         "visibility": "PRIVATE",
         "voteCount": 0,
         "languages": [
          "en"
         ]
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "idea.status_changed": {
   "post": {
    "operationId": "eventIdeaStatusChanged",
    "summary": "The status of an idea changed.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "idea.status_changed",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {
         "id": "idea_123",
         "title": "Dark mode",
         "status": "IN_DEVELOPMENT",
         "importance": "MEDIUM",
         "visibility": "PUBLIC",
         "voteCount": 12,
         "languages": [
          "en"
         ]
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "roadmap.item_moved": {
   "post": {
    "operationId": "eventRoadmapItemMoved",
    "summary": "A roadmap item was moved to another column.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "roadmap.item_moved",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {}
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "chat.created": {
   "post": {
    "operationId": "eventChatCreated",
    "summary": "A new conversation was started.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "chat.created",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {}
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "chat.message_created": {
   "post": {
    "operationId": "eventChatMessageCreated",
    "summary": "A customer wrote a message.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "chat.message_created",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {
         "id": "msg_123",
         "chatId": "chat_1",
         "messageId": "msg_123",
         "channel": "CHAT",
         "peopleId": "people_1",
         "peopleName": "Jane Doe",
         "newChat": true,
         "message": "Hi, how do I export my data?",
         "attachments": []
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "booking.created": {
   "post": {
    "operationId": "eventBookingCreated",
    "summary": "A meeting was booked.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "booking.created",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {}
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "people.identified": {
   "post": {
    "operationId": "eventPeopleIdentified",
    "summary": "A visitor was identified as a known person.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "people.identified",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {}
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "error.created": {
   "post": {
    "operationId": "eventErrorCreated",
    "summary": "Error tracking found a new error.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "error.created",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {}
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "error.regressed": {
   "post": {
    "operationId": "eventErrorRegressed",
    "summary": "An error marked as resolved occurred again.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "error.regressed",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {}
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  },
  "error.spike": {
   "post": {
    "operationId": "eventErrorSpike",
    "summary": "An error occurs much more often than usual.",
    "security": [],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEvent"
       },
       "example": {
        "id": "evt_1a2b3c",
        "type": "error.spike",
        "createdAt": "2026-07-01T10:00:00.123Z",
        "data": {}
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Answer with any 2xx status to confirm the delivery."
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "apiKey": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "rb_live_...",
    "description": "API key from Settings → API Keys."
   }
  },
  "schemas": {
   "AddRoadmapItemRequestDTO": {
    "type": "object",
    "properties": {
     "header": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "categories": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   },
   "ArticleDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "title": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "content": {
      "type": "object",
      "additionalProperties": {}
     },
     "html": {
      "type": "object",
      "additionalProperties": {}
     },
     "collection": {
      "type": "string"
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "order": {
      "type": "integer"
     },
     "status": {
      "$ref": "#/components/schemas/KnowledgebaseStatus"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "ArticleSummaryDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "title": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "collectionId": {
      "type": "string"
     },
     "collectionName": {
      "type": "string"
     }
    }
   },
   "AttachmentDTO": {
    "type": "object",
    "properties": {
     "attachmentUrl": {
      "type": "string"
     },
     "filename": {
      "type": "string"
     },
     "fileType": {
      "type": "string"
     }
    }
   },
   "AudienceFilterDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "type": {
      "$ref": "#/components/schemas/FilterType"
     },
     "property": {
      "type": "string"
     },
     "operator": {
      "$ref": "#/components/schemas/FilterOperator"
     },
     "value": {
      "type": "string"
     }
    }
   },
   "AudienceType": {
    "type": "string",
    "enum": [
     "DYNAMIC",
     "ONE_OFF"
    ]
   },
   "BannerDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "titleMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "title": {
      "type": "string"
     },
     "messageMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "message": {
      "type": "string"
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "type": {
      "$ref": "#/components/schemas/BannerType"
     },
     "backgroundColor": {
      "type": "string"
     },
     "textColor": {
      "type": "string"
     },
     "showCloseButton": {
      "type": "boolean"
     },
     "hasButton": {
      "type": "boolean"
     },
     "buttonTextMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "buttonText": {
      "type": "string"
     },
     "buttonLink": {
      "type": "string"
     },
     "buttonColor": {
      "type": "string"
     },
     "buttonTextColor": {
      "type": "string"
     },
     "position": {
      "$ref": "#/components/schemas/BannerPosition"
     },
     "targeting": {
      "$ref": "#/components/schemas/TargetingConfigDTO"
     },
     "displayFor": {
      "$ref": "#/components/schemas/DisplayFor"
     },
     "status": {
      "$ref": "#/components/schemas/BannerStatus"
     },
     "companyId": {
      "type": "string"
     },
     "active": {
      "type": "boolean"
     },
     "createdDate": {
      "type": "string",
      "format": "date-time"
     },
     "lastModifiedDate": {
      "type": "string",
      "format": "date-time"
     },
     "createdBy": {
      "type": "string"
     },
     "lastModifiedBy": {
      "type": "string"
     }
    }
   },
   "BannerPosition": {
    "type": "string",
    "enum": [
     "TOP",
     "BOTTOM",
     "TOP_LEFT",
     "TOP_RIGHT",
     "BOTTOM_LEFT",
     "BOTTOM_RIGHT"
    ]
   },
   "BannerStatus": {
    "type": "string",
    "enum": [
     "DRAFT",
     "PUBLISHED",
     "ARCHIVED"
    ]
   },
   "BannerType": {
    "type": "string",
    "enum": [
     "INLINE",
     "FLOATING"
    ]
   },
   "CategoryDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "color": {
      "type": "string"
     },
     "order": {
      "type": "integer"
     }
    }
   },
   "ChatChannel": {
    "type": "string",
    "enum": [
     "EMAIL",
     "CHAT",
     "FORM"
    ]
   },
   "ChatCountDTO": {
    "type": "object",
    "properties": {
     "all": {
      "type": "integer"
     },
     "allUnread": {
      "type": "integer"
     },
     "my": {
      "type": "integer"
     },
     "myUnread": {
      "type": "integer"
     },
     "mentions": {
      "type": "integer"
     },
     "mentionsUnread": {
      "type": "integer"
     },
     "unassigned": {
      "type": "integer"
     },
     "unassignedUnread": {
      "type": "integer"
     },
     "userCount": {
      "type": "object",
      "additionalProperties": {
       "type": "integer"
      }
     }
    }
   },
   "ChatDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "people": {
      "$ref": "#/components/schemas/PeopleDTO"
     },
     "labels": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LabelDTO"
      }
     },
     "companies": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PeopleCompanyDTO"
      }
     },
     "deviceInfos": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "user": {
      "$ref": "#/components/schemas/UserDTO"
     },
     "unreadByAgent": {
      "type": "boolean"
     },
     "unreadByPeople": {
      "type": "boolean"
     },
     "verified": {
      "type": "boolean"
     },
     "includesIssue": {
      "type": "boolean"
     },
     "priority": {
      "type": "boolean"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "snoozed": {
      "type": "boolean"
     },
     "snoozedUntil": {
      "type": "string",
      "format": "date-time"
     },
     "deleted": {
      "type": "boolean"
     },
     "closed": {
      "type": "boolean"
     },
     "closedAt": {
      "type": "string",
      "format": "date-time"
     },
     "snoozedAt": {
      "type": "string",
      "format": "date-time"
     },
     "messages": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MessageDTO"
      }
     },
     "lastMessageShortSummary": {
      "type": "string"
     },
     "lastMessageDate": {
      "type": "string",
      "format": "date-time"
     },
     "lastUpdatedAt": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "ChatEventDTO": {
    "type": "object",
    "properties": {
     "eventType": {
      "$ref": "#/components/schemas/ChatEventType"
     },
     "assignedTo": {
      "$ref": "#/components/schemas/UserDTO"
     },
     "snoozedUntil": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "ChatEventType": {
    "type": "string",
    "enum": [
     "CLOSED",
     "SNOOZED",
     "REOPEN",
     "ASSIGN",
     "PRIORITY_ADD",
     "PRIORITY_REMOVE",
     "EMAIL_REMINDER_SENT"
    ]
   },
   "ChatStatus": {
    "type": "string",
    "enum": [
     "AVAILABLE",
     "AWAY"
    ]
   },
   "ChatSummaryDTO": {
    "type": "object",
    "properties": {
     "summary": {
      "type": "string"
     },
     "topics": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "fullText": {
      "type": "string"
     },
     "tone": {
      "type": "string"
     },
     "critical": {
      "type": "string"
     }
    }
   },
   "CliAccountDTO": {
    "type": "object",
    "properties": {
     "companyId": {
      "type": "string"
     },
     "companyName": {
      "type": "string"
     },
     "pageId": {
      "type": "string"
     },
     "userEmail": {
      "type": "string"
     }
    }
   },
   "CliPeopleUpsertDTO": {
    "type": "object",
    "properties": {
     "externalUserId": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "firstname": {
      "type": "string"
     },
     "lastname": {
      "type": "string"
     },
     "properties": {
      "type": "object",
      "additionalProperties": {}
     }
    }
   },
   "CollectionDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "order": {
      "type": "integer"
     },
     "name": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "articles": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ArticleDTO"
      }
     },
     "status": {
      "$ref": "#/components/schemas/KnowledgebaseStatus"
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   },
   "ConditionalRuleDTO": {
    "type": "object",
    "properties": {
     "sourceFieldId": {
      "type": "string"
     },
     "condition": {
      "type": "string"
     },
     "value": {
      "type": "string"
     },
     "action": {
      "type": "string"
     }
    }
   },
   "DisplayFor": {
    "type": "string",
    "enum": [
     "USERS",
     "VISITORS",
     "BOTH"
    ]
   },
   "DynamicPropertyDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "names": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "descriptions": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "system": {
      "type": "boolean"
     },
     "key": {
      "type": "string"
     },
     "favorite": {
      "type": "boolean"
     },
     "visible": {
      "type": "boolean"
     },
     "editable": {
      "type": "boolean"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "group": {
      "type": "string"
     },
     "dynamicPropertyType": {
      "$ref": "#/components/schemas/DynamicPropertyType"
     },
     "dynamicPropertyEntityType": {
      "$ref": "#/components/schemas/DynamicPropertyEntityType"
     }
    }
   },
   "DynamicPropertyEntityType": {
    "type": "string",
    "enum": [
     "PEOPLE",
     "COMPANIES"
    ]
   },
   "DynamicPropertyType": {
    "type": "string",
    "enum": [
     "TEXT",
     "NUMBER",
     "DATE",
     "DATE_TIME",
     "PEOPLE_TYPE",
     "BOOLEAN",
     "USER"
    ]
   },
   "EmailCampaign": {
    "type": "object",
    "properties": {
     "companyId": {
      "type": "string"
     },
     "pageId": {
      "type": "string"
     },
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "steps": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/EmailCampaignStep"
      }
     },
     "status": {
      "$ref": "#/components/schemas/EmailCampaignStatus"
     }
    }
   },
   "EmailCampaignEnrollment": {
    "type": "object",
    "properties": {
     "companyId": {
      "type": "string"
     },
     "pageId": {
      "type": "string"
     },
     "id": {
      "type": "string"
     },
     "campaignId": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "firstName": {
      "type": "string"
     },
     "companyName": {
      "type": "string"
     },
     "language": {
      "type": "string"
     },
     "properties": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "enrolledAt": {
      "type": "string",
      "format": "date-time"
     },
     "sentStepIndices": {
      "type": "array",
      "items": {
       "type": "integer"
      }
     },
     "unsubscribed": {
      "type": "boolean"
     }
    }
   },
   "EmailCampaignEnrollmentDTO": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string"
     },
     "firstName": {
      "type": "string"
     },
     "companyName": {
      "type": "string"
     },
     "language": {
      "type": "string"
     },
     "properties": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     }
    }
   },
   "EmailCampaignStatus": {
    "type": "string",
    "enum": [
     "DRAFT",
     "ACTIVE",
     "PAUSED"
    ]
   },
   "EmailCampaignStep": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "delayDays": {
      "type": "integer"
     },
     "subject": {
      "type": "string"
     },
     "bodyHtml": {
      "type": "string"
     },
     "onlyIfInactive": {
      "type": "boolean"
     }
    }
   },
   "FeedbackDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "internalNote": {
      "type": "string"
     },
     "feedbackDonor": {
      "type": "string"
     },
     "feedbackDonorName": {
      "type": "string"
     },
     "associated": {
      "$ref": "#/components/schemas/Types"
     },
     "createdDate": {
      "type": "string",
      "format": "date"
     },
     "refId": {
      "type": "string"
     },
     "feedbackType": {
      "$ref": "#/components/schemas/FeedbackType"
     },
     "importance": {
      "$ref": "#/components/schemas/Importance"
     },
     "seen": {
      "type": "boolean"
     }
    }
   },
   "FeedbackResultDTO": {
    "type": "object",
    "properties": {
     "result": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FeedbackDTO"
      }
     },
     "total": {
      "type": "integer"
     }
    }
   },
   "FeedbackType": {
    "type": "string",
    "enum": [
     "POSITIVE",
     "NEUTRAL",
     "NEGATIVE"
    ]
   },
   "FilterOperator": {
    "type": "string",
    "enum": [
     "EQUALS",
     "NOT_EQUALS",
     "CONTAINS",
     "NOT_CONTAINS",
     "GREATER_THAN",
     "LESS_THAN",
     "EXISTS",
     "NOT_EXISTS"
    ]
   },
   "FilterType": {
    "type": "string",
    "enum": [
     "PEOPLE",
     "COMPANY",
     "CUSTOM_PROPERTY",
     "EVENT",
     "USER_PROPERTY"
    ]
   },
   "FormDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "titleMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "title": {
      "type": "string"
     },
     "descriptionMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "string"
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "fields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FormFieldDTO"
      }
     },
     "status": {
      "$ref": "#/components/schemas/FormStatus"
     },
     "active": {
      "type": "boolean"
     },
     "successMessageMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "successMessage": {
      "type": "string"
     },
     "submitButtonTextMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "submitButtonText": {
      "type": "string"
     },
     "theme": {
      "$ref": "#/components/schemas/FormThemeDTO"
     },
     "createdDate": {
      "type": "string",
      "format": "date-time"
     },
     "lastModifiedDate": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "FormFieldDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "type": {
      "$ref": "#/components/schemas/FormFieldType"
     },
     "labelMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "label": {
      "type": "string"
     },
     "placeholderMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "placeholder": {
      "type": "string"
     },
     "required": {
      "type": "boolean"
     },
     "options": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "order": {
      "type": "integer"
     },
     "helpTextMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "helpText": {
      "type": "string"
     },
     "conditionalRules": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ConditionalRuleDTO"
      }
     }
    }
   },
   "FormFieldType": {
    "type": "string",
    "enum": [
     "TEXT",
     "EMAIL",
     "PHONE",
     "TEXTAREA",
     "NUMBER",
     "CHECKBOX",
     "RADIO",
     "DROPDOWN",
     "DATE",
     "FILE"
    ]
   },
   "FormStatus": {
    "type": "string",
    "enum": [
     "DRAFT",
     "PUBLISHED",
     "ARCHIVED"
    ]
   },
   "FormSubmissionDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "formId": {
      "type": "string"
     },
     "data": {
      "type": "object",
      "additionalProperties": {}
     },
     "submittedAt": {
      "type": "string",
      "format": "date-time"
     },
     "userEmail": {
      "type": "string"
     },
     "userName": {
      "type": "string"
     },
     "sessionId": {
      "type": "string"
     },
     "formTitle": {
      "type": "string"
     }
    }
   },
   "FormThemeDTO": {
    "type": "object",
    "properties": {
     "primaryColor": {
      "type": "string"
     },
     "backgroundColor": {
      "type": "string"
     },
     "buttonColor": {
      "type": "string"
     },
     "buttonTextColor": {
      "type": "string"
     },
     "fontFamily": {
      "type": "string"
     },
     "borderRadius": {
      "type": "string"
     },
     "inputBorderColor": {
      "type": "string"
     },
     "titleFontSize": {
      "type": "string"
     },
     "descriptionFontSize": {
      "type": "string"
     },
     "labelFontSize": {
      "type": "string"
     }
    }
   },
   "Frequency": {
    "type": "string",
    "enum": [
     "ONCE",
     "EVERY_TIME"
    ]
   },
   "GenerateImageRequest": {
    "type": "object",
    "properties": {
     "prompt": {
      "type": "string"
     },
     "model": {
      "type": "string"
     },
     "quality": {
      "type": "string"
     },
     "response_format": {
      "type": "string"
     },
     "size": {
      "type": "string"
     },
     "n": {
      "type": "integer"
     }
    }
   },
   "IdeaDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "titleMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "descriptionMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "title": {
      "type": "string"
     },
     "status": {
      "$ref": "#/components/schemas/IdeaStatus"
     },
     "description": {
      "type": "string"
     },
     "internalNote": {
      "type": "string"
     },
     "voteCount": {
      "type": "integer"
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "importance": {
      "$ref": "#/components/schemas/Importance"
     },
     "ideaDonor": {
      "type": "string"
     },
     "ideaDonorName": {
      "type": "string"
     },
     "categories": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/CategoryDTO"
      }
     },
     "visibility": {
      "$ref": "#/components/schemas/Visibility"
     },
     "created_date": {
      "type": "string",
      "format": "date"
     },
     "seen": {
      "type": "boolean"
     }
    }
   },
   "IdeaResultDTO": {
    "type": "object",
    "properties": {
     "result": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/IdeaDTO"
      }
     },
     "total": {
      "type": "integer"
     }
    }
   },
   "IdeaStatus": {
    "type": "string",
    "enum": [
     "REQUESTED",
     "APPROVED",
     "DECLINED",
     "ARCHIVED",
     "IN_DEVELOPMENT",
     "DONE"
    ]
   },
   "ImageDTO": {
    "type": "object",
    "properties": {
     "imageUrl": {
      "type": "string"
     },
     "filename": {
      "type": "string"
     }
    }
   },
   "Importance": {
    "type": "string",
    "enum": [
     "HIGH",
     "MEDIUM",
     "LOW"
    ]
   },
   "IntegrationWithStatusDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "name": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "icon": {
      "type": "string"
     },
     "category": {
      "type": "string"
     },
     "free": {
      "type": "boolean"
     },
     "monthlyPrice": {
      "type": "number"
     },
     "includedInPackages": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PackageType"
      }
     },
     "features": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "configurable": {
      "type": "boolean"
     },
     "configPagePath": {
      "type": "string"
     },
     "sortOrder": {
      "type": "integer"
     },
     "enabled": {
      "type": "boolean"
     },
     "activatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "activatedBy": {
      "type": "string"
     },
     "availableForPlan": {
      "type": "boolean"
     }
    }
   },
   "KnowledgebaseDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "articles": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ArticleDTO"
      }
     },
     "collections": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/CollectionDTO"
      }
     }
    }
   },
   "KnowledgebaseStatus": {
    "type": "string",
    "enum": [
     "DRAFT",
     "PUBLIC"
    ]
   },
   "LabelDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "color": {
      "type": "string"
     },
     "order": {
      "type": "integer"
     }
    }
   },
   "LanguageDTO": {
    "type": "object",
    "properties": {
     "identifier": {
      "type": "string"
     },
     "defaultLanguage": {
      "type": "boolean"
     },
     "name": {
      "type": "string"
     }
    }
   },
   "LanguageSettingsDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "activeLanguages": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LanguageDTO"
      }
     },
     "mainLanguage": {
      "type": "string"
     }
    }
   },
   "MessageDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "message": {
      "type": "string"
     },
     "plainMessage": {
      "type": "string"
     },
     "aiBot": {
      "type": "boolean"
     },
     "chatSummary": {
      "$ref": "#/components/schemas/ChatSummaryDTO"
     },
     "htmlMessage": {
      "type": "string"
     },
     "event": {
      "$ref": "#/components/schemas/ChatEventDTO"
     },
     "includesIssue": {
      "type": "boolean"
     },
     "sendByEmailFromCustomer": {
      "type": "boolean"
     },
     "originalEmailText": {
      "type": "string"
     },
     "originalEmailTextHtml": {
      "type": "string"
     },
     "messageType": {
      "$ref": "#/components/schemas/MessageType"
     },
     "verified": {
      "type": "boolean"
     },
     "channel": {
      "$ref": "#/components/schemas/ChatChannel"
     },
     "date": {
      "type": "string",
      "format": "date-time"
     },
     "people": {
      "$ref": "#/components/schemas/PeopleDTO"
     },
     "images": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ImageDTO"
      }
     },
     "attachments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AttachmentDTO"
      }
     },
     "video": {
      "$ref": "#/components/schemas/AttachmentDTO"
     },
     "audio": {
      "$ref": "#/components/schemas/AttachmentDTO"
     },
     "user": {
      "$ref": "#/components/schemas/UserDTO"
     },
     "deleted": {
      "type": "boolean"
     },
     "draft": {
      "type": "boolean"
     },
     "customObject": {},
     "readByPeople": {
      "type": "boolean"
     },
     "appointmentTypeId": {
      "type": "string"
     },
     "appointmentTypeName": {
      "type": "string"
     }
    }
   },
   "MessageType": {
    "type": "string",
    "enum": [
     "REPLY",
     "NOTE",
     "DATEROW",
     "EVENT",
     "IMAGE",
     "ATTACHMENT",
     "IMAGE_NOTE",
     "ATTACHMENT_NOTE",
     "VIDEO",
     "VIDEO_NOTE",
     "AUDIO",
     "AUDIO_NOTE",
     "OPERATING_HOURS",
     "FORM_SUBMISSION",
     "FORM_REQUEST",
     "BOOKING_REQUEST"
    ]
   },
   "PackageType": {
    "type": "string",
    "enum": [
     "BASIC",
     "PROFESSIONAL",
     "PREMIUM",
     "ENTERPRISE",
     "STARTUP"
    ]
   },
   "PeopleCompanyDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "properties": {
      "type": "object",
      "additionalProperties": {}
     },
     "people": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PeopleDTO"
      }
     }
    }
   },
   "PeopleDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "companies": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PeopleCompanyDTO"
      }
     },
     "locale": {
      "type": "string"
     },
     "timezone": {
      "type": "string"
     },
     "identifier": {
      "type": "string"
     },
     "properties": {
      "type": "object",
      "additionalProperties": {}
     }
    }
   },
   "ReleaseNoteDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "headerMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "contentMap": {
      "type": "object",
      "additionalProperties": {}
     },
     "shortSummary": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "content": {},
     "header": {
      "type": "string"
     },
     "status": {
      "$ref": "#/components/schemas/ReleaseNoteStatus"
     },
     "lastModifiedAt": {
      "type": "string",
      "format": "date-time"
     },
     "publishAt": {
      "type": "string",
      "format": "date-time"
     },
     "publishedAt": {
      "type": "string",
      "format": "date-time"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "headerImage": {
      "$ref": "#/components/schemas/ImageDTO"
     },
     "user": {
      "$ref": "#/components/schemas/UserDTO"
     },
     "roadmapItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/RoadmapItemDTO"
      }
     },
     "categories": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/CategoryDTO"
      }
     }
    }
   },
   "ReleaseNoteStatus": {
    "type": "string",
    "enum": [
     "DRAFT",
     "PUBLISHED",
     "ARCHIVED",
     "SCHEDULED"
    ]
   },
   "RoadmapCardDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "roadmapItem": {
      "type": "string"
     },
     "cardImage": {
      "$ref": "#/components/schemas/ImageDTO"
     },
     "visibility": {
      "$ref": "#/components/schemas/Visibility"
     },
     "order": {
      "type": "integer"
     },
     "categories": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/CategoryDTO"
      }
     }
    }
   },
   "RoadmapColumnDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "title": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "columnColor": {
      "type": "string"
     },
     "invisible": {
      "type": "boolean"
     },
     "order": {
      "type": "integer"
     },
     "cards": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/RoadmapCardDTO"
      }
     }
    }
   },
   "RoadmapDTO": {
    "type": "object",
    "properties": {
     "title": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "description": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "enabled": {
      "type": "boolean"
     },
     "columns": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/RoadmapColumnDTO"
      }
     }
    }
   },
   "RoadmapItemDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "headerMap": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "contentMap": {
      "type": "object",
      "additionalProperties": {}
     },
     "content": {},
     "archivedAt": {
      "type": "string",
      "format": "date"
     },
     "archived": {
      "type": "boolean"
     },
     "header": {
      "type": "string"
     },
     "headerImage": {
      "$ref": "#/components/schemas/ImageDTO"
     },
     "cardImage": {
      "$ref": "#/components/schemas/ImageDTO"
     },
     "visibility": {
      "$ref": "#/components/schemas/Visibility"
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "categories": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/CategoryDTO"
      }
     },
     "linkedIdeaIds": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "linkedIdeas": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/IdeaDTO"
      }
     }
    }
   },
   "SelectOptionDTO": {
    "type": "object",
    "properties": {
     "label": {
      "type": "string"
     },
     "id": {
      "type": "string"
     },
     "groupBy": {
      "type": "string"
     }
    }
   },
   "SnippetDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "text": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "title": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "notes": {
      "type": "string"
     },
     "folder": {
      "type": "string"
     },
     "images": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SnippetImageDTO"
      }
     },
     "used": {
      "type": "integer"
     },
     "createdBy": {
      "$ref": "#/components/schemas/UserDTO"
     },
     "updatedBy": {
      "$ref": "#/components/schemas/UserDTO"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "SnippetImageDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "url": {
      "type": "string"
     },
     "fileName": {
      "type": "string"
     },
     "fileType": {
      "type": "string"
     },
     "length": {
      "type": "integer"
     }
    }
   },
   "TargetingConfigDTO": {
    "type": "object",
    "properties": {
     "triggerType": {
      "$ref": "#/components/schemas/TriggerType"
     },
     "triggerEvent": {
      "type": "string"
     },
     "triggerProperty": {
      "type": "string"
     },
     "audienceType": {
      "$ref": "#/components/schemas/AudienceType"
     },
     "frequency": {
      "$ref": "#/components/schemas/Frequency"
     },
     "audienceFilters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AudienceFilterDTO"
      }
     }
    }
   },
   "TriggerType": {
    "type": "string",
    "enum": [
     "ALWAYS",
     "USER_PROPERTY",
     "MANUAL"
    ]
   },
   "Types": {
    "type": "string",
    "enum": [
     "IDEA",
     "ROADMAP_ITEM",
     "RELEASE_NOTE"
    ]
   },
   "UserDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "chatStatus": {
      "$ref": "#/components/schemas/ChatStatus"
     },
     "dateFormat": {
      "type": "string"
     },
     "timeFormat": {
      "type": "string"
     },
     "dateTimeFormat": {
      "type": "string"
     },
     "firstname": {
      "type": "string"
     },
     "lastname": {
      "type": "string"
     },
     "language": {
      "type": "string"
     },
     "timezone": {
      "type": "string"
     },
     "owner": {
      "type": "boolean"
     },
     "admin": {
      "type": "boolean"
     },
     "profilePicture": {
      "$ref": "#/components/schemas/ImageDTO"
     },
     "webPushIds": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "accessiblePageIds": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "state": {
      "type": "string"
     },
     "releasebirdHash": {
      "type": "string"
     }
    }
   },
   "Visibility": {
    "type": "string",
    "enum": [
     "PRIVATE",
     "PUBLIC"
    ]
   },
   "WebhookDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "url": {
      "type": "string"
     },
     "events": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "enabled": {
      "type": "boolean"
     },
     "description": {
      "type": "string"
     },
     "consecutiveFailures": {
      "type": "integer"
     },
     "disabledReason": {
      "type": "string"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "secret": {
      "type": "string"
     }
    }
   },
   "WebhookDeliveryDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "webhookId": {
      "type": "string"
     },
     "eventId": {
      "type": "string"
     },
     "eventType": {
      "type": "string"
     },
     "requestBody": {
      "type": "string"
     },
     "responseStatus": {
      "type": "integer"
     },
     "responseBodySnippet": {
      "type": "string"
     },
     "attempt": {
      "type": "integer"
     },
     "status": {
      "type": "string"
     },
     "nextRetryAt": {
      "type": "string",
      "format": "date-time"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "completedAt": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "WebhookEvent": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "Id of the event."
     },
     "type": {
      "type": "string",
      "enum": [
       "releasenote.published",
       "releasenote.updated",
       "feedback.created",
       "idea.created",
       "idea.status_changed",
       "roadmap.item_moved",
       "chat.created",
       "chat.message_created",
       "booking.created",
       "people.identified",
       "error.created",
       "error.regressed",
       "error.spike"
      ]
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "data": {
      "type": "object",
      "description": "The entry the event is about. Its fields depend on the event type.",
      "additionalProperties": {}
     }
    }
   },
   "Problem": {
    "type": "object",
    "properties": {
     "status": {
      "type": "integer"
     },
     "title": {
      "type": "string"
     },
     "detail": {
      "type": "string"
     },
     "path": {
      "type": "string"
     }
    }
   }
  }
 }
}
