---
updatedAt: 2026-10-30T08:48:32.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Create Custom Segment (Available in Pro/Business plan)

Retained legacy exception: Persist a saved segment; V3 reads/evaluation do not create one.

Create Custom Segment (Available in Pro/Business plan). POST /{tenantId}/api/v1/createCustomSegment.

Filter conditions can use `filterType: 0` for contact attributes, `1` for profile signals, or `3` for Shopify events. For Shopify events, supply a supported `eventType`; use a numeric operator code when comparing an event parameter. `eventPresence` is `done` (default) or `not_done`, and `timeWindowDays` limits events to the last N days. An event-only condition can omit the parameter path and comparison value. Operator `104` (Between) requires `value` and `secondValue`. Shopify event availability and matching depend on account configuration and event data; successful creation does not guarantee that any contacts match.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body. Allowed roles: `DEVELOPER`, `ADMINISTRATOR`, `EXTERNAL_ADMINISTRATOR`, `PARTNER_ADMINISTRATOR`, `AI_OPERATOR`, or `API_TOKEN`. `FLEXI_TRIAL` and `FLEXI_PAID` are denied. Billing-related restrictions can also block access.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Other (v1)",
      "description": "Additional v1 endpoints — operators, teams, segments, etc."
    }
  ],
  "paths": {
    "/{tenantId}/api/v1/createCustomSegment": {
      "post": {
        "tags": [
          "Other (v1)"
        ],
        "summary": "Create Custom Segment (Available in Pro/Business plan)",
        "operationId": "CreateCustomSegment",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your WATI workspace (tenant) ID. This required path segment identifies the WATI account for legacy v1 and v2 API requests."
          }
        ],
        "requestBody": {
          "description": "<u>\n  <b>CreateSegmentRequest</b>\n</u>\n\n\n\n\n<b>RefreshType:</b>\n\n allowed values: <b>1 = Static</b>, <b>2 = Dynamic</b>\n\nShopify event conditions use filterType 3, eventType, optional attributePath, dataType (0 string, 1 number, 2 boolean, 3 datetime), numeric operator code, value, optional secondValue for Between, eventPresence, and timeWindowDays. Set groups[].rulesOperator to or for OR; other values default to and.",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "refreshType": {
                    "$ref": "#/components/schemas/CdpSegmentRefreshType"
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "conditions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "attribute": {
                                "type": "string",
                                "nullable": true
                              },
                              "operator": {
                                "type": "string",
                                "nullable": true,
                                "description": "For Shopify event parameter comparisons, a supported numeric OperatorType code as a string; 104 means Between."
                              },
                              "value": {
                                "type": "string",
                                "nullable": true
                              },
                              "filterType": {
                                "type": "integer",
                                "format": "int32",
                                "enum": [
                                  0,
                                  1,
                                  3
                                ],
                                "description": "0 contact attribute; 1 profile signal; 3 Shopify event."
                              },
                              "valueType": {
                                "type": "string",
                                "nullable": true
                              },
                              "values": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "nullable": true
                              },
                              "unit": {
                                "type": "string",
                                "nullable": true
                              },
                              "eventType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "enum": [
                                  10,
                                  11,
                                  12,
                                  13,
                                  14,
                                  15,
                                  18,
                                  19,
                                  20
                                ],
                                "description": "Required for filterType 3. 10 abandoned checkout, 11 order confirmation, 12 order fulfilled, 13 order shipment, 14 order returned, 15 add to cart, 18 customer created, 19 product viewed, 20 page viewed."
                              },
                              "attributePath": {
                                "type": "string",
                                "nullable": true,
                                "description": "Event parameter dot path. Omit for an event-only condition."
                              },
                              "dataType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "description": "Event parameter data type: 0 string, 1 number, 2 boolean, 3 datetime."
                              },
                              "secondValue": {
                                "type": "string",
                                "nullable": true,
                                "description": "Required upper bound when Shopify operator 104 (Between) is used."
                              },
                              "eventPresence": {
                                "type": "string",
                                "nullable": true,
                                "enum": [
                                  "done",
                                  "not_done"
                                ],
                                "description": "Whether the event happened; defaults to done."
                              },
                              "timeWindowDays": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "minimum": 0,
                                "description": "Look back N days; null or zero means any time."
                              }
                            },
                            "additionalProperties": false,
                            "description": "Data model with fields: attribute, operator, value, filterType, valueType...."
                          },
                          "nullable": true
                        },
                        "rulesOperator": {
                          "type": "string",
                          "nullable": true,
                          "description": "Use or to combine conditions with OR; other values default to and."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Data model with fields: conditions."
                    },
                    "nullable": true
                  },
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "useUploadedContact": {
                    "type": "boolean"
                  },
                  "createFrom": {
                    "type": "string",
                    "nullable": true
                  }
                },
                "additionalProperties": false,
                "description": "Data model with fields: name, refreshType, description, groups, contactIds...."
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "refreshType": {
                    "$ref": "#/components/schemas/CdpSegmentRefreshType"
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "conditions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "attribute": {
                                "type": "string",
                                "nullable": true
                              },
                              "operator": {
                                "type": "string",
                                "nullable": true,
                                "description": "For Shopify event parameter comparisons, a supported numeric OperatorType code as a string; 104 means Between."
                              },
                              "value": {
                                "type": "string",
                                "nullable": true
                              },
                              "filterType": {
                                "type": "integer",
                                "format": "int32",
                                "enum": [
                                  0,
                                  1,
                                  3
                                ],
                                "description": "0 contact attribute; 1 profile signal; 3 Shopify event."
                              },
                              "valueType": {
                                "type": "string",
                                "nullable": true
                              },
                              "values": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "nullable": true
                              },
                              "unit": {
                                "type": "string",
                                "nullable": true
                              },
                              "eventType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "enum": [
                                  10,
                                  11,
                                  12,
                                  13,
                                  14,
                                  15,
                                  18,
                                  19,
                                  20
                                ],
                                "description": "Required for filterType 3. 10 abandoned checkout, 11 order confirmation, 12 order fulfilled, 13 order shipment, 14 order returned, 15 add to cart, 18 customer created, 19 product viewed, 20 page viewed."
                              },
                              "attributePath": {
                                "type": "string",
                                "nullable": true,
                                "description": "Event parameter dot path. Omit for an event-only condition."
                              },
                              "dataType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "description": "Event parameter data type: 0 string, 1 number, 2 boolean, 3 datetime."
                              },
                              "secondValue": {
                                "type": "string",
                                "nullable": true,
                                "description": "Required upper bound when Shopify operator 104 (Between) is used."
                              },
                              "eventPresence": {
                                "type": "string",
                                "nullable": true,
                                "enum": [
                                  "done",
                                  "not_done"
                                ],
                                "description": "Whether the event happened; defaults to done."
                              },
                              "timeWindowDays": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "minimum": 0,
                                "description": "Look back N days; null or zero means any time."
                              }
                            },
                            "additionalProperties": false,
                            "description": "Data model with fields: attribute, operator, value, filterType, valueType...."
                          },
                          "nullable": true
                        },
                        "rulesOperator": {
                          "type": "string",
                          "nullable": true,
                          "description": "Use or to combine conditions with OR; other values default to and."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Data model with fields: conditions."
                    },
                    "nullable": true
                  },
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "useUploadedContact": {
                    "type": "boolean"
                  },
                  "createFrom": {
                    "type": "string",
                    "nullable": true
                  }
                },
                "additionalProperties": false,
                "description": "Data model with fields: name, refreshType, description, groups, contactIds...."
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "refreshType": {
                    "$ref": "#/components/schemas/CdpSegmentRefreshType"
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "conditions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "attribute": {
                                "type": "string",
                                "nullable": true
                              },
                              "operator": {
                                "type": "string",
                                "nullable": true,
                                "description": "For Shopify event parameter comparisons, a supported numeric OperatorType code as a string; 104 means Between."
                              },
                              "value": {
                                "type": "string",
                                "nullable": true
                              },
                              "filterType": {
                                "type": "integer",
                                "format": "int32",
                                "enum": [
                                  0,
                                  1,
                                  3
                                ],
                                "description": "0 contact attribute; 1 profile signal; 3 Shopify event."
                              },
                              "valueType": {
                                "type": "string",
                                "nullable": true
                              },
                              "values": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "nullable": true
                              },
                              "unit": {
                                "type": "string",
                                "nullable": true
                              },
                              "eventType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "enum": [
                                  10,
                                  11,
                                  12,
                                  13,
                                  14,
                                  15,
                                  18,
                                  19,
                                  20
                                ],
                                "description": "Required for filterType 3. 10 abandoned checkout, 11 order confirmation, 12 order fulfilled, 13 order shipment, 14 order returned, 15 add to cart, 18 customer created, 19 product viewed, 20 page viewed."
                              },
                              "attributePath": {
                                "type": "string",
                                "nullable": true,
                                "description": "Event parameter dot path. Omit for an event-only condition."
                              },
                              "dataType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "description": "Event parameter data type: 0 string, 1 number, 2 boolean, 3 datetime."
                              },
                              "secondValue": {
                                "type": "string",
                                "nullable": true,
                                "description": "Required upper bound when Shopify operator 104 (Between) is used."
                              },
                              "eventPresence": {
                                "type": "string",
                                "nullable": true,
                                "enum": [
                                  "done",
                                  "not_done"
                                ],
                                "description": "Whether the event happened; defaults to done."
                              },
                              "timeWindowDays": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "minimum": 0,
                                "description": "Look back N days; null or zero means any time."
                              }
                            },
                            "additionalProperties": false,
                            "description": "Data model with fields: attribute, operator, value, filterType, valueType...."
                          },
                          "nullable": true
                        },
                        "rulesOperator": {
                          "type": "string",
                          "nullable": true,
                          "description": "Use or to combine conditions with OR; other values default to and."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Data model with fields: conditions."
                    },
                    "nullable": true
                  },
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "useUploadedContact": {
                    "type": "boolean"
                  },
                  "createFrom": {
                    "type": "string",
                    "nullable": true
                  }
                },
                "additionalProperties": false,
                "description": "Data model with fields: name, refreshType, description, groups, contactIds...."
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "refreshType": {
                    "$ref": "#/components/schemas/CdpSegmentRefreshType"
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "conditions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "attribute": {
                                "type": "string",
                                "nullable": true
                              },
                              "operator": {
                                "type": "string",
                                "nullable": true,
                                "description": "For Shopify event parameter comparisons, a supported numeric OperatorType code as a string; 104 means Between."
                              },
                              "value": {
                                "type": "string",
                                "nullable": true
                              },
                              "filterType": {
                                "type": "integer",
                                "format": "int32",
                                "enum": [
                                  0,
                                  1,
                                  3
                                ],
                                "description": "0 contact attribute; 1 profile signal; 3 Shopify event."
                              },
                              "valueType": {
                                "type": "string",
                                "nullable": true
                              },
                              "values": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "nullable": true
                              },
                              "unit": {
                                "type": "string",
                                "nullable": true
                              },
                              "eventType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "enum": [
                                  10,
                                  11,
                                  12,
                                  13,
                                  14,
                                  15,
                                  18,
                                  19,
                                  20
                                ],
                                "description": "Required for filterType 3. 10 abandoned checkout, 11 order confirmation, 12 order fulfilled, 13 order shipment, 14 order returned, 15 add to cart, 18 customer created, 19 product viewed, 20 page viewed."
                              },
                              "attributePath": {
                                "type": "string",
                                "nullable": true,
                                "description": "Event parameter dot path. Omit for an event-only condition."
                              },
                              "dataType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "description": "Event parameter data type: 0 string, 1 number, 2 boolean, 3 datetime."
                              },
                              "secondValue": {
                                "type": "string",
                                "nullable": true,
                                "description": "Required upper bound when Shopify operator 104 (Between) is used."
                              },
                              "eventPresence": {
                                "type": "string",
                                "nullable": true,
                                "enum": [
                                  "done",
                                  "not_done"
                                ],
                                "description": "Whether the event happened; defaults to done."
                              },
                              "timeWindowDays": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "minimum": 0,
                                "description": "Look back N days; null or zero means any time."
                              }
                            },
                            "additionalProperties": false,
                            "description": "Data model with fields: attribute, operator, value, filterType, valueType...."
                          },
                          "nullable": true
                        },
                        "rulesOperator": {
                          "type": "string",
                          "nullable": true,
                          "description": "Use or to combine conditions with OR; other values default to and."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Data model with fields: conditions."
                    },
                    "nullable": true
                  },
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "useUploadedContact": {
                    "type": "boolean"
                  },
                  "createFrom": {
                    "type": "string",
                    "nullable": true
                  }
                },
                "additionalProperties": false,
                "description": "Data model with fields: name, refreshType, description, groups, contactIds...."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCustomSegmentV1Response"
                },
                "example": {
                  "result": true,
                  "info": {
                    "id": "507f1f77bcf86cd799439014",
                    "name": "VIP Customers",
                    "created": "2024-01-15T10:33:00Z"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCustomSegmentV1Response"
                },
                "example": {
                  "result": true,
                  "info": {
                    "id": "507f1f77bcf86cd799439014",
                    "name": "VIP Customers",
                    "created": "2024-01-15T10:33:00Z"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCustomSegmentV1Response"
                },
                "example": {
                  "result": true,
                  "info": {
                    "id": "507f1f77bcf86cd799439014",
                    "name": "VIP Customers",
                    "created": "2024-01-15T10:33:00Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid segment input, maximum active segments reached, or a CDP segment business-rule error. The info field describes the error. This status also covers disabled custom segments or a plan below Pro.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "info"
                  ],
                  "properties": {
                    "result": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "info": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "result": false,
                  "info": "Name is required."
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope."
          },
          "429": {
            "description": "The custom-segment per-user request limit was reached. Retry after a minute. The configured default is 60 requests per UTC minute; a nonpositive configured limit or an absent user identity disables this specific limiter.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "info"
                  ],
                  "properties": {
                    "result": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "info": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "result": false,
                  "info": "Too many Custom Segment API requests. Please retry after a minute."
                }
              }
            }
          },
          "500": {
            "description": "The controller could not create the segment or caught an unexpected exception during creation. The examples show its explicit error branches; failures outside those branches can use a different error response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "info"
                  ],
                  "properties": {
                    "result": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "info": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "creationReturnedNull": {
                    "value": {
                      "result": false,
                      "info": "Failed to create segment."
                    }
                  },
                  "unexpectedCreationFailure": {
                    "value": {
                      "result": false,
                      "info": "Failed to create custom segment."
                    }
                  }
                }
              }
            }
          }
        },
        "description": "Retained legacy exception: Persist a saved segment; V3 reads/evaluation do not create one.\n\nCreate Custom Segment (Available in Pro/Business plan). POST /{tenantId}/api/v1/createCustomSegment.\n\nFilter conditions can use `filterType: 0` for contact attributes, `1` for profile signals, or `3` for Shopify events. For Shopify events, supply a supported `eventType`; use a numeric operator code when comparing an event parameter. `eventPresence` is `done` (default) or `not_done`, and `timeWindowDays` limits events to the last N days. An event-only condition can omit the parameter path and comparison value. Operator `104` (Between) requires `value` and `secondValue`. Shopify event availability and matching depend on account configuration and event data; successful creation does not guarantee that any contacts match.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body. Allowed roles: `DEVELOPER`, `ADMINISTRATOR`, `EXTERNAL_ADMINISTRATOR`, `PARTNER_ADMINISTRATOR`, `AI_OPERATOR`, or `API_TOKEN`. `FLEXI_TRIAL` and `FLEXI_PAID` are denied. Billing-related restrictions can also block access.",
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "wati_integration:write"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "f7d7bef54fc6591851b145b7bdf12ed2c3a2534f"
        },
        "x-wati-documentation": {
          "discovery": "legacy-exception",
          "reason": "Persist a saved segment; V3 reads/evaluation do not create one."
        },
        "x-internal": false
      }
    }
  },
  "components": {
    "schemas": {
      "CdpSegmentRefreshType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "CreateCustomSegmentV1Response": {
        "type": "object",
        "properties": {
          "result": {
            "type": "boolean"
          },
          "info": {
            "description": "The created segment object.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /api/v1/createCustomSegment."
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```