{
  "openapi": "3.0.3",
  "info": {
    "title": "mPaaS Core APIs",
    "version": "1.0.8",
    "description": "The Telegent mPaaS (Mobile Platform as a Service) API gives you full programmatic control over mobile phone numbers, messaging, voice routing, subscribers, and account management. Use these APIs to provision MVNO and IoT numbers, send and receive SMS/MMS, configure intelligent call routing, manage subscriber accounts, and apply AI Guardian controls. All requests require a Bearer token obtained from the Authentication endpoint. For support, visit https://support.telegent.com/support/home",
    "contact": {
      "name": "Support",
      "email": "support@telegent.com"
    },
    "termsOfService": "https://telegent.com/terms",
    "license": {
      "name": "Use under LICX",
      "url": "https://telegent.com/license"
    }
  },
  "servers": [
    {
      "url": "https://api.telegent.com"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/v1.0/OAuth2/tokens": {
      "post": {
        "tags": [
          "OAuth2"
        ],
        "summary": "Generate API Token",
        "description": "Authenticates your account credentials and returns a Bearer token required for all subsequent API requests. Include this token in the `Authorization: Bearer <token>` header on every call. Tokens expire and must be refreshed. Use the optional `ApiEndpoint` field to scope a token to a specific endpoint URL for tighter security.\n\n**What this does:** Returns a `token` string and `tokenExpiry` timestamp. Include the token as `Authorization: Bearer <token>` on every subsequent request. The optional `ApiEndpoint` field scopes the token to a single endpoint URL — a token scoped to `/v1.0/numbers/provision` will be rejected by any other endpoint. Re-authenticate from scratch when a token expires; there is no refresh mechanism.\n\n**Next steps:**\n- Use the token on any other endpoint — `POST /v1.0/numbers/provision`, `POST /v1.0/message/outbound`, etc.",
        "security": [],
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"AccountKey\": \"DID-1234567ab-1a2b-3cd4-...-...........\",\n  \"AccountSecret\": \"abcdeABCdef...\",\n  \"ApiEndpoint\": \"https://api.telegent.com/v1.0/numbers/provision\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/oauth2/tokens \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"AccountKey\": \"DID-1234567ab-1a2b-3cd4-...-...........\",\n    \"AccountSecret\": \"abcdeABCdef...\",\n    \"ApiEndpoint\": \"https://api.telegent.com/v1.0/numbers/provision\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the Bearer token and expiry timestamp",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "token": "abcdeghijklmnopqrstuvwxyz...................",
                      "successful": true,
                      "tokenExpiry": "05/02/2025 06:36:13 PM"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "AccountKey",
                  "AccountSecret"
                ],
                "properties": {
                  "AccountKey": {
                    "type": "string",
                    "description": "Your account key (e.g., DID-1234567ab-1a2b-3cd4-...-...........)",
                    "example": "DID-1234567ab-1a2b-3cd4-...-..........."
                  },
                  "AccountSecret": {
                    "type": "string",
                    "description": "Your account secret key",
                    "example": "abcdeABCdef..."
                  },
                  "ApiEndpoint": {
                    "type": "string",
                    "format": "uri",
                    "description": "The specific API endpoint URL this token will be scoped to. Each token is scoped to a single endpoint for security.",
                    "example": "https://api.telegent.com/v1.0/numbers/provision"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/availability": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Search Available Numbers",
        "description": "Search for available phone numbers before provisioning. Filter by area code or zip code, required capabilities (voice, SMS/MMS), and message type. Returns a paginated list of matching numbers. Run this step first to confirm number availability in your target area before calling the Number Provision endpoint.\n\n**What this does:** Returns a paginated list of available area code and zip code combinations that have numbers matching your criteria. This tells you which area codes have available inventory before you commit to a provision call. Each result includes an NGP code and area code to use in `POST /v1.0/numbers/provision`.\n\n**Next steps:**\n- Provision a number from the results — `POST /v1.0/numbers/provision`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"NumberType\": \"mobile\",\n  \"MessageType\": \"p2p\",\n  \"MessageEnabled\": true,\n  \"VoiceEnabled\": true,\n  \"PageNumber\": 1,\n  \"AreaCode\": \"201\",\n  \"ZipCode\": \"\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/availability \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"NumberType\": \"mobile\",\n    \"MessageType\": \"p2p\",\n    \"MessageEnabled\": true,\n    \"VoiceEnabled\": true,\n    \"PageNumber\": 1,\n    \"AreaCode\": \"201\",\n    \"ZipCode\": \"\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns a paginated list of available phone numbers matching your criteria",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "RequestId": "T-04139",
                      "RequestDate": "2025-05-14T18:37:18.2408767Z",
                      "NumberType": "mobile",
                      "VoiceEnabled": true,
                      "MessageEnabled": true,
                      "AreaCode": "201",
                      "ZipCode": "",
                      "PageNumber": 1,
                      "ResultsTotal": 7700,
                      "AvailableNumberAreas": [
                        {
                          "NGP": "SAG",
                          "AreaCode": 993,
                          "Zipcode": "00601"
                        },
                        {
                          "NGP": "AGP",
                          "AreaCode": 787,
                          "Zipcode": "00601"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "NumberType",
                  "MessageEnabled",
                  "VoiceEnabled"
                ],
                "properties": {
                  "NumberType": {
                    "type": "string",
                    "enum": [
                      "mobile"
                    ],
                    "description": "Type of number to search for",
                    "example": "mobile"
                  },
                  "MessageType": {
                    "type": "string",
                    "enum": [
                      "a2p",
                      "p2p"
                    ],
                    "description": "Message type: a2p (Application-to-Person) or p2p (Person-to-Person)",
                    "example": "p2p"
                  },
                  "MessageEnabled": {
                    "type": "boolean",
                    "description": "Filter for numbers with SMS capability. Applies to SMS only; MMS is a separate capability.",
                    "example": true
                  },
                  "VoiceEnabled": {
                    "type": "boolean",
                    "description": "Enable voice call capabilities",
                    "example": true
                  },
                  "PageNumber": {
                    "type": "integer",
                    "description": "Page number for pagination (10,000 results per page)",
                    "example": 1,
                    "default": 1
                  },
                  "AreaCode": {
                    "type": "string",
                    "description": "3-digit area code to search (leave empty for all area codes)",
                    "example": "201"
                  },
                  "ZipCode": {
                    "type": "string",
                    "description": "Zip code to search if area code is unavailable",
                    "example": ""
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/provision": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Number Provision (Purchase/Order)",
        "description": "> **Rate limit:** This endpoint is limited to **1 request per second**, separate from the API-wide 120 requests/minute limit. Exceeding it returns HTTP `429 Too Many Requests`.\n\n**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Required:** Message Route ID (MRID) — `POST /v1.0/message/routes`\n- **Optional:** Voice Route ID (CRID) — `POST /v1.0/voice/routes` *(only needed if `VoiceEnabled: true`)*\n- **Optional:** Subscriber ID (TSUID) — `POST /v1.0/subscribers/create` *(to assign the number at provision time)*\n\n---\n\nPurchase and activate a phone number on your account. Before provisioning, ensure you have already created a Message Route (MRID) and Voice Route (CRID) — numbers provisioned without routes will have no call or message handling. Specify the number classification (`mvno` for full messaging and voice, `iot` for data and p2p messaging only), and required capabilities. Returns an OrderId for status tracking.\n\n**What this does:** Purchases and activates the number, returning an `OrderId`, the assigned phone number in E.164 format, a `PhoneNumberId` (`NID-`), and an eSIM QR code (if applicable). The `OrderId` can be used to track provisioning status.\n\n**Next steps:**\n- Check order status — `GET /v1.0/numbers/order`\n- Send a test message — `POST /v1.0/message/outbound`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"NumberType\": \"iot\",\n  \"MessageType\": \"p2p\",\n  \"MessageEnabled\": true,\n  \"VoiceEnabled\": false,\n  \"DataEnabled\": true,\n  \"MessageRouteId\": \"MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a\",\n  \"VoiceRouteId\": \"CRID-4dec6beb-3985-444b-8c06-8baa70dc145\",\n  \"AreaCode\": \"201\",\n  \"ZipCode\": \"84043\",\n  \"ICCID\": \"8901240397190195850\",\n  \"ProductType\": \"Sms+Data\",\n  \"AssignedSubscriberId\": \"TSUID-1234567999\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/provision \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"NumberType\": \"iot\",\n    \"MessageType\": \"p2p\",\n    \"MessageEnabled\": true,\n    \"VoiceEnabled\": false,\n    \"DataEnabled\": true,\n    \"MessageRouteId\": \"MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a\",\n    \"VoiceRouteId\": \"CRID-4dec6beb-3985-444b-8c06-8baa70dc145\",\n    \"AreaCode\": \"201\",\n    \"ZipCode\": \"84043\",\n    \"ICCID\": \"8901240397190195850\",\n    \"ProductType\": \"Sms+Data\",\n    \"AssignedSubscriberId\": \"TSUID-1234567999\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the order ID, assigned phone number, and provisioning status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "OrderDate": "2025-10-29T12:36:19.338438+00:00",
                      "OrderId": "JNUOID-76ba71a8-d7a6-4489-b695-1ad363b8d596",
                      "OrderStatus": "Complete",
                      "PhoneNumberAssigned": "+18016025346",
                      "PhoneNumberId": "NID-8bdf915a-ef65-46c9-8c66-96c98d42d9ca",
                      "QRCode": "https://quickchart.io/qr?text=LPA:1$T-MOBILE.IDEMIA.IO$LX9G1-Q12VI-CIIWA-WAQIN&centerImageUrl=https://joonto.com/wp-content/uploads/2022/07/cropped-Joonto-2022-Square-Icon-Black-Background.png&ecLevel=H&format=png&centerImageSizeRatio=.3",
                      "ZipCode": "84603",
                      "ICCID": "12345678900987654321",
                      "ErrorMessage": null,
                      "SubscriberId": "TSUID-ac59a1f8-36b6-42cc-b124-c2aa29f7e3d2"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "NumberType",
                  "MessageType",
                  "MessageEnabled",
                  "VoiceEnabled",
                  "ProductType"
                ],
                "properties": {
                  "NumberType": {
                    "type": "string",
                    "enum": [
                      "mvno",
                      "iot"
                    ],
                    "description": "Number classification: 'mvno' (supports both a2p and p2p), 'iot' (p2p only - cannot be provisioned as a2p; use mvno NumberType for a2p MessageType)",
                    "example": "iot"
                  },
                  "MessageType": {
                    "type": "string",
                    "enum": [
                      "a2p",
                      "p2p"
                    ],
                    "description": "Message type: a2p (Application-to-Person) or p2p (Person-to-Person)",
                    "example": "p2p"
                  },
                  "MessageEnabled": {
                    "type": "boolean",
                    "description": "Enable SMS on the number. Independent of MMS — set the `MmsMessageEnabled` field to control MMS.",
                    "example": true
                  },
                  "MmsMessageEnabled": {
                    "type": "boolean",
                    "description": "Optional. Enable MMS on the number. Independent of `MessageEnabled` (SMS). MMS can also be changed later via `POST /v1.0/numbers/mms/update`.",
                    "example": true
                  },
                  "VoiceEnabled": {
                    "type": "boolean",
                    "description": "Enable voice call capabilities",
                    "example": false
                  },
                  "DataEnabled": {
                    "type": "boolean",
                    "description": "Enable data capabilities (for IoT numbers)",
                    "example": true
                  },
                  "MessageRouteId": {
                    "type": "string",
                    "description": "MRID for message routing configuration",
                    "example": "MRID-81dr9t90-....-....-....-.........."
                  },
                  "VoiceRouteId": {
                    "type": "string",
                    "description": "CRID for voice routing configuration",
                    "example": "CRID-5nov0yuy-....-....-....-........."
                  },
                  "AreaCode": {
                    "type": "string",
                    "description": "Preferred 3-digit area code. Lookup searches AreaCode first before ZipCode. If both AreaCode and ZipCode are left blank or null, a randomized set of results will be returned",
                    "example": "201"
                  },
                  "ZipCode": {
                    "type": "string",
                    "description": "5-digit zip code. Used as fallback if AreaCode is unavailable. You may provide both AreaCode and ZipCode, or just one; AreaCode takes priority if included. Please note that zip codes must be valid and within the United States.",
                    "example": "84043"
                  },
                  "ICCID": {
                    "type": "string",
                    "description": "Integrated Circuit Card Identifier. Optional field, but required when provisioning a physical SIM (pSIM)",
                    "example": "8901240397190195850"
                  },
                  "ProductType": {
                    "type": "string",
                    "enum": [
                      "Sms-Only",
                      "Data-Only",
                      "Sms+Data",
                      "Sms+Data+Voice"
                    ],
                    "description": "Product type for the provisioned number. Options: Sms-Only, Data-Only, Sms+Data, Sms+Data+Voice",
                    "example": "Sms+Data"
                  },
                  "AssignedSubscriberId": {
                    "type": "string",
                    "description": "Optional subscriber-id to be assigned to the new number",
                    "example": "TSUID-1234567999"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID (AID) to provision the number under. Required when a distributor account has more than one sub-account.",
                    "example": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/e911address": {
      "get": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Get E911 Address",
        "description": "Retrieve the E911 emergency address registered to a specific phone number. Returns the street address on file that will be dispatched to emergency services when a 911 call is placed from this number.\n\n**What this does:** Looks up the E911 address associated with the given phone number on your account.\n\n**Next steps:**\n- Update an E911 address — `POST /v1.0/numbers/e911address/update`",
        "parameters": [
          {
            "name": "PhoneNumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The E.164-formatted phone number to look up (e.g. +12345678901)"
          },
          {
            "name": "AccountId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Account identifier (e.g. AID-xxxx). Required for Distributors managing multiple accounts."
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/numbers/e911address?PhoneNumber=%2B12345678901&AccountId=AID-xxxx' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "E911 address retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+13852217924",
                      "AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
                      "E911Address": {
                        "Street1": "2701 N THANKSGIVING WAY",
                        "Street2": null,
                        "City": "LEHI",
                        "State": "UT",
                        "Zip": "84048-6330"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "example": {
                  "StatusCode": 400,
                  "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "example": {
                  "StatusCode": 401,
                  "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "example": {
                  "StatusCode": 403,
                  "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "example": {
                  "StatusCode": 404,
                  "Message": "Not found: the requested resource does not exist or belongs to a different account."
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "example": {
                  "StatusCode": 405,
                  "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "example": {
                  "StatusCode": 408,
                  "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "example": {
                  "StatusCode": 429,
                  "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "example": {
                  "StatusCode": 500,
                  "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "example": {
                  "StatusCode": 503,
                  "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "example": {
                  "StatusCode": 504,
                  "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/e911address/update": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Update E911 Address",
        "description": "Register or update the E911 emergency address for a phone number. This address is provided to emergency services when a 911 call is placed from the specified number. Ensure the address is accurate and matches a valid MSAG (Master Street Address Guide) location.\n\n**What this does:** Sets or updates the E911 service address associated with the given phone number.\n\n**Next steps:**\n- Verify the updated address — `GET /v1.0/numbers/e911address`",
        "requestBody": {
          "description": "E911 address update request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumber",
                  "Street1",
                  "City",
                  "State",
                  "Zip"
                ],
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "E.164-formatted phone number (e.g. +12345678901)"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account identifier. Required for Distributors managing multiple accounts."
                  },
                  "Street1": {
                    "type": "string",
                    "description": "Primary street address line"
                  },
                  "Street2": {
                    "type": "string",
                    "description": "Secondary address line (suite, unit, etc.). Optional."
                  },
                  "City": {
                    "type": "string",
                    "description": "City name"
                  },
                  "State": {
                    "type": "string",
                    "description": "Two-letter US state abbreviation (e.g. UT)"
                  },
                  "Zip": {
                    "type": "string",
                    "description": "ZIP or ZIP+4 postal code"
                  }
                }
              },
              "example": {
                "PhoneNumber": "+12345678901",
                "AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
                "Street1": "Street 1",
                "Street2": "",
                "City": "Lehi",
                "State": "UT",
                "Zip": "84041"
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+12345678901\",\n  \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n  \"Street1\": \"Street 1\",\n  \"Street2\": \"\",\n  \"City\": \"Lehi\",\n  \"State\": \"UT\",\n  \"Zip\": \"84041\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/e911address/update \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"PhoneNumber\": \"+12345678901\",\n    \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n    \"Street1\": \"Street 1\",\n    \"Street2\": \"\",\n    \"City\": \"Lehi\",\n    \"State\": \"UT\",\n    \"Zip\": \"84041\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "E911 address updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+12345678901",
                      "Status": "Success",
                      "StatusMessage": ""
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "example": {
                  "StatusCode": 400,
                  "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "example": {
                  "StatusCode": 401,
                  "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "example": {
                  "StatusCode": 403,
                  "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "example": {
                  "StatusCode": 404,
                  "Message": "Not found: the requested resource does not exist or belongs to a different account."
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "example": {
                  "StatusCode": 405,
                  "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "example": {
                  "StatusCode": 408,
                  "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "example": {
                  "StatusCode": 429,
                  "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "example": {
                  "StatusCode": 500,
                  "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "example": {
                  "StatusCode": 503,
                  "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "example": {
                  "StatusCode": 504,
                  "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/portin": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Port In",
        "description": "> **Rate limit:** This endpoint is limited to **1 request per second**, separate from the API-wide 120 requests/minute limit. Exceeding it returns HTTP `429 Too Many Requests`.\n\n**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Recommended:** Confirm the number is portable first — `POST /v1.0/numbers/portin/eligibility`\n- **Required:** Losing carrier name, account number, account password, and subscriber billing address\n\n---\n\nTransfer an existing phone number from another carrier into your Telegent account. Before submitting a port-in, run the Port-In Eligibility check to confirm the number can be ported. You will need the losing carrier name, account number, account password, and the subscriber's billing address for LNP (Local Number Portability) compliance.\n\n**What this does:** Submits the port request to the carrier and returns an `OrderId` with an initial status of `Pending`. Monitor the order using the `OrderId`. Port requests typically take 1-5 business days to complete.\n\n**Next steps:**\n- Track the port order status — `GET /v1.0/numbers/order`\n- Cancel if needed — `POST /v1.0/numbers/portin/cancel`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PortInNumber\": \"+15555551234\",\n  \"ICCID\": \"8901240397190195850\",\n  \"CurrentCarrierName\": \"Telegent\",\n  \"CurrentAccountNumber\": \"46512222\",\n  \"CurrentAccountPassword\": \"0000\",\n  \"TargetPortinClassification\": \"mvno\",\n  \"SubscriberName\": \"Telegent\",\n  \"CurrentBillingAddress\": {\n    \"Street1\": \"2701 N Thanksgiving Way\",\n    \"Street2\": \"Suite 202\",\n    \"City\": \"Lehi\",\n    \"State\": \"UT\",\n    \"Zip\": \"84043\"\n  },\n  \"MessageEnabled\": true,\n  \"MmsMessageEnabled\": true,\n  \"MessageType\": \"p2p\",\n  \"MessageRouteId\": \"MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee\",\n  \"VoiceEnabled\": true,\n  \"VoiceRouteId\": \"CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe\",\n  \"DataEnabled\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/portin \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PortInNumber\": \"+15555551234\",\n    \"ICCID\": \"8901240397190195850\",\n    \"CurrentCarrierName\": \"Telegent\",\n    \"CurrentAccountNumber\": \"46512222\",\n    \"CurrentAccountPassword\": \"0000\",\n    \"TargetPortinClassification\": \"mvno\",\n    \"SubscriberName\": \"Telegent\",\n    \"CurrentBillingAddress\": {\"Street1\": \"2701 N Thanksgiving Way\", \"Street2\": \"Suite 202\", \"City\": \"Lehi\", \"State\": \"UT\", \"Zip\": \"84043\"},\n    \"MessageEnabled\": true,\n    \"MmsMessageEnabled\": true,\n    \"MessageType\": \"p2p\",\n    \"MessageRouteId\": \"MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee\",\n    \"VoiceEnabled\": true,\n    \"VoiceRouteId\": \"CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe\",\n    \"DataEnabled\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the port-in order ID and initial status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "OrderId": "JNOID-aabbde7a-....-....-....-............",
                      "OrderDate": "2025-05-14T18:00:00.0000000+00:00",
                      "Status": "Pending",
                      "PhoneNumber": "+11234567890",
                      "ICCID": "12345678900987654321"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PortInNumber",
                  "CurrentCarrierName",
                  "CurrentAccountNumber",
                  "CurrentBillingAddress"
                ],
                "properties": {
                  "PortInNumber": {
                    "type": "string",
                    "description": "Phone number to port in (E.164 format)",
                    "example": "+11234567890"
                  },
                  "CurrentCarrierName": {
                    "type": "string",
                    "description": "Name of the losing carrier",
                    "example": "Company LLC"
                  },
                  "CurrentAccountNumber": {
                    "type": "string",
                    "description": "Account number with current carrier",
                    "example": "4651234567"
                  },
                  "CurrentAccountPassword": {
                    "type": "string",
                    "description": "Account PIN/password with current carrier (optional)",
                    "example": "0550"
                  },
                  "CurrentBillingAddress": {
                    "type": "object",
                    "required": [
                      "Street1",
                      "City",
                      "State",
                      "Zip"
                    ],
                    "properties": {
                      "Street1": {
                        "type": "string",
                        "example": "123 N Adddress Way"
                      },
                      "Street2": {
                        "type": "string",
                        "example": "Suite 010"
                      },
                      "City": {
                        "type": "string",
                        "example": "Townsville"
                      },
                      "State": {
                        "type": "string",
                        "example": "UT"
                      },
                      "Zip": {
                        "type": "string",
                        "example": "84048"
                      }
                    }
                  },
                  "ICCID": {
                    "type": "string",
                    "description": "SIM card ICCID (optional)",
                    "example": "8901240397190557414F"
                  },
                  "TargetPortinClassification": {
                    "type": "string",
                    "enum": [
                      "mvno",
                      "iot"
                    ],
                    "description": "Classification type for the port-in",
                    "example": "mvno"
                  },
                  "SubscriberName": {
                    "type": "string",
                    "description": "Name of the subscriber (optional)",
                    "example": "John Doe"
                  },
                  "MessageType": {
                    "type": "string",
                    "enum": [
                      "a2p",
                      "p2p"
                    ],
                    "description": "Message type: a2p (Application-to-Person) or p2p (Person-to-Person)",
                    "example": "a2p"
                  },
                  "MessageEnabled": {
                    "type": "boolean",
                    "description": "Enable SMS on the ported-in number. Independent of MMS — set the `MmsMessageEnabled` field to control MMS.",
                    "example": true
                  },
                  "MmsMessageEnabled": {
                    "type": "boolean",
                    "description": "Optional. Enable MMS on the ported-in number. Independent of `MessageEnabled` (SMS). MMS can also be changed later via `POST /v1.0/numbers/mms/update`.",
                    "example": true
                  },
                  "MessageRouteId": {
                    "type": "string",
                    "description": "MRID for message routing configuration (required when SMS or MMS is enabled)",
                    "example": "MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee"
                  },
                  "VoiceEnabled": {
                    "type": "boolean",
                    "description": "Enable voice call capabilities",
                    "example": true
                  },
                  "VoiceRouteId": {
                    "type": "string",
                    "description": "CRID for voice routing configuration (required when voice is enabled)",
                    "example": "CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe"
                  },
                  "DataEnabled": {
                    "type": "boolean",
                    "description": "Enable data capabilities (for IoT numbers)",
                    "example": true
                  },
                  "AssignedSubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID to assign to the number (optional). Format: `TSUID-` followed by a UUID.",
                    "example": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d"
                  },
                  "ProductType": {
                    "type": "string",
                    "enum": [
                      "Sms-Only",
                      "Data-Only",
                      "Sms+Data",
                      "Sms+Data+Voice"
                    ],
                    "description": "Product type for the number",
                    "example": "Sms+Data+Voice"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/portin/eligibility": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Port In Eligibility",
        "description": "Check if a phone number is eligible for port-in before submitting a full port request. Returns the eligibility status for the number.\n\n**What this does:** Returns an `Eligible` boolean, the `TargetClassification`, and a `StatusMessage`. Run this before submitting a port-in to avoid failed orders. If `Eligible` is false, the `StatusMessage` explains why.\n\n**Next steps:**\n- If eligible, submit the port-in — `POST /v1.0/numbers/portin`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+15555551234\",\n  \"TargetClassification\": \"mvno\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/portin/eligibility \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumber\": \"+15555551234\",\n    \"TargetClassification\": \"mvno\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Port In Eligibility",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+14355551234",
                      "TargetClassification": "MVNO",
                      "Eligible": true,
                      "StatusMessage": "[mvno] Number is eligible for porting."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumber",
                  "TargetClassification"
                ],
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "Phone number to check eligibility for (E.164 format)",
                    "example": "+15555551234"
                  },
                  "TargetClassification": {
                    "type": "string",
                    "description": "Target classification for the port-in number (`mvno` or `iot`)",
                    "example": "mvno"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/portin/update": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Update Port In",
        "description": "Update an existing port-in order with new information such as carrier details, account credentials, or billing address before the port completes.\n\n**What this does:** Returns confirmation that the port-in order has been updated. Use this before the port completes if the carrier details or billing address provided were incorrect.\n\n**Next steps:**\n- Check order status — `GET /v1.0/numbers/order`\n- Cancel if needed — `POST /v1.0/numbers/portin/cancel`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"OrderId\": \"JNUOID-6e3eb213-baf1-47bb-9db0-5d7d09d4b7b4\",\n  \"CurrentCarrierName\": \"Updated Carrier\",\n  \"CurrentAccountNumber\": \"46512222\",\n  \"CurrentAccountPassword\": \"0000\",\n  \"PortInDate\": \"2026-06-01\",\n  \"TargetPortinClassification\": \"Mobile\",\n  \"SubscriberName\": \"John Doe\",\n  \"ICCID\": \"89014103211118510720\",\n  \"CurrentBillingAddress\": {\n    \"Street1\": \"123 N Address Way\",\n    \"Street2\": \"Suite 010\",\n    \"City\": \"Townsville\",\n    \"State\": \"UT\",\n    \"Zip\": \"84048\"\n  }\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/portin/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"OrderId\": \"JNUOID-6e3eb213-baf1-47bb-9db0-5d7d09d4b7b4\",\n    \"CurrentCarrierName\": \"Updated Carrier\",\n    \"CurrentAccountNumber\": \"46512222\",\n    \"CurrentAccountPassword\": \"0000\",\n    \"PortInDate\": \"2026-06-01\",\n    \"TargetPortinClassification\": \"Mobile\",\n    \"SubscriberName\": \"John Doe\",\n    \"ICCID\": \"89014103211118510720\",\n    \"CurrentBillingAddress\": {\n      \"Street1\": \"123 N Address Way\",\n      \"City\": \"Townsville\",\n      \"State\": \"UT\",\n      \"Zip\": \"84048\"\n    }\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Port In",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "OrderId": "JNUOID-6e3eb213-baf1-47bb-9db0-5d7d09d4b7b4",
                      "Status": "Updated",
                      "Message": "Port-in order updated successfully"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "OrderId"
                ],
                "properties": {
                  "OrderId": {
                    "type": "string",
                    "description": "The order ID of the port-in request to update",
                    "example": "JNUOID-6e3eb213-baf1-47bb-9db0-5d7d09d4b7b4"
                  },
                  "CurrentCarrierName": {
                    "type": "string",
                    "description": "Updated name of the losing carrier",
                    "example": "Updated Carrier"
                  },
                  "CurrentAccountNumber": {
                    "type": "string",
                    "description": "Updated account number with current carrier",
                    "example": "46512222"
                  },
                  "CurrentAccountPassword": {
                    "type": "string",
                    "description": "Updated account PIN/password with current carrier",
                    "example": "0000"
                  },
                  "CurrentBillingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string",
                        "example": "123 N Address Way"
                      },
                      "Street2": {
                        "type": "string",
                        "example": "Suite 010"
                      },
                      "City": {
                        "type": "string",
                        "example": "Townsville"
                      },
                      "State": {
                        "type": "string",
                        "example": "UT"
                      },
                      "Zip": {
                        "type": "string",
                        "example": "84048"
                      }
                    }
                  },
                  "PortInDate": {
                    "type": "string",
                    "description": "Requested date for the port to complete (YYYY-MM-DD)",
                    "example": "2026-06-01"
                  },
                  "TargetPortinClassification": {
                    "type": "string",
                    "description": "Target classification for the porting number (e.g. Mobile, Landline)",
                    "example": "Mobile"
                  },
                  "SubscriberName": {
                    "type": "string",
                    "description": "Updated subscriber name",
                    "example": "John Doe"
                  },
                  "ICCID": {
                    "type": "string",
                    "description": "SIM card ICCID. Required only for pSIM port-ins.",
                    "example": "89014103211118510720"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/portin/cancel": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Cancel Port In",
        "description": "Cancel an existing port-in request using the order ID. This endpoint allows you to cancel a pending port-in order before it is completed.\n\n**What this does:** Returns the `OrderId` and a `Cancelled` status confirmation. Only pending port-in orders can be cancelled — orders in final states cannot be reversed.\n\n**Next steps:**\n- Submit a new port-in request — `POST /v1.0/numbers/portin`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"OrderId\": \"JNUOID-6e3eb213-baf1-47bb-9db0-5d7d09d4b7b4\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/portin/cancel \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"OrderId\": \"JNUOID-6e3eb213-baf1-47bb-9db0-5d7d09d4b7b4\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Numbers - Cancel Port In",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "OrderId": "JNUOID-6e3eb213-baf1-47bb-9db0-5d7d09d4b7b4",
                      "Status": "Cancelled"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "OrderId"
                ],
                "properties": {
                  "OrderId": {
                    "type": "string",
                    "description": "The order ID of the port-in request to cancel",
                    "example": "JNUOID-6e3eb213-baf1-47bb-9db0-5d7d09d4b7b4"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/refresh-nnid": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Refresh NNID",
        "description": "Refresh the Network Number Identifier (NNID) for a phone number. Use this when a number’s NNID becomes stale or needs to be re-synchronized with the carrier network.\n\n**What this does:** Triggers a re-sync of the number's Network Number Identifier with the carrier network and returns the refreshed `NNID` value. Use this when a number's carrier routing appears stale or incorrect after a number transfer.\n\n**Next steps:**\n- Confirm number state — `GET /v1.0/numbers`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+11234567890\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/refresh-nnid \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumber\": \"+11234567890\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the phone number and refreshed NNID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+11234567890",
                      "NNID": "refreshed-nnid-value",
                      "Successful": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumber"
                ],
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "The phone number to refresh NNID for (E.164 format)",
                    "example": "+11234567890"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/voicemail/info": {
      "post": {
        "tags": [
          "Voicemail"
        ],
        "summary": "Get Voicemail Info",
        "description": "Retrieve current voicemail settings and configuration details for a specific phone number, including PIN status, notification email, and account association.\n\n**What this does:** Returns whether voicemail is active on the number, the notification email, subscriber name, and PIN status. Use this to confirm voicemail is configured before troubleshooting missed-call behaviour.\n\n**Next steps:**\n- Activate voicemail — `POST /v1.0/numbers/voicemail/activate`\n- Update settings — `POST /v1.0/numbers/voicemail/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+11234567890\",\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/voicemail/info \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumber\": \"+11234567890\",\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns voicemail configuration for the phone number",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+11234567890",
                      "VoicemailEnabled": true,
                      "Email": "user@example.com",
                      "FirstName": "John",
                      "LastName": "Doe"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumber"
                ],
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "The phone number to retrieve voicemail info for (E.164 format)",
                    "example": "+11234567890"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Optional account ID associated with the phone number",
                    "example": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/voicemail/activate": {
      "post": {
        "tags": [
          "Voicemail"
        ],
        "summary": "Activate Voicemail",
        "description": "**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Required:** Provisioned phone number — `POST /v1.0/numbers/provision`\n\n---\n\nActivate voicemail for a phone number. Set a PIN, notification email, and subscriber name. Once activated, unanswered calls to this number will be directed to voicemail.\n\n**What this does:** Enables voicemail on the number and returns a confirmation. Once activated, unanswered calls are captured as voicemail and a notification is sent to the configured email. The PIN is required to retrieve messages.\n\n**Next steps:**\n- Confirm voicemail is active — `POST /v1.0/numbers/voicemail/info`\n- Update settings — `POST /v1.0/numbers/voicemail/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+11234567890\",\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\",\n  \"PIN\": \"1234\",\n  \"FirstName\": \"John\",\n  \"LastName\": \"Doe\",\n  \"Email\": \"john@example.com\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/voicemail/activate \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumber\": \"+11234567890\",\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\",\n    \"PIN\": \"1234\",\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"Email\": \"john@example.com\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns voicemail activation status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+11234567890",
                      "VoicemailActivated": true,
                      "Successful": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumber"
                ],
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "The phone number to activate voicemail for (E.164 format)",
                    "example": "+11234567890"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Optional account ID associated with the phone number",
                    "example": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
                  },
                  "PIN": {
                    "type": "string",
                    "description": "Voicemail PIN for the subscriber",
                    "example": "1234"
                  },
                  "FirstName": {
                    "type": "string",
                    "description": "Subscriber first name",
                    "example": "John"
                  },
                  "LastName": {
                    "type": "string",
                    "description": "Subscriber last name",
                    "example": "Doe"
                  },
                  "Email": {
                    "type": "string",
                    "description": "Email address for voicemail notifications",
                    "example": "john@example.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/voicemail/update": {
      "post": {
        "tags": [
          "Voicemail"
        ],
        "summary": "Update Voicemail",
        "description": "Update voicemail settings for a phone number including PIN, notification email, and subscriber name details.\n\n**What this does:** Returns confirmation that the voicemail configuration has been updated. Only the fields you send are changed; omitted fields retain their current values.\n\n**Next steps:**\n- Confirm the update — `POST /v1.0/numbers/voicemail/info`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+11234567890\",\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\",\n  \"FirstName\": \"John\",\n  \"LastName\": \"Doe\",\n  \"PIN\": \"5678\",\n  \"Email\": \"newemail@example.com\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/voicemail/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumber\": \"+11234567890\",\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\",\n    \"FirstName\": \"John\",\n    \"LastName\": \"Doe\",\n    \"PIN\": \"5678\",\n    \"Email\": \"newemail@example.com\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns update confirmation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+11234567890",
                      "Successful": true,
                      "Message": "Voicemail settings updated"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumber"
                ],
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "The phone number to update voicemail settings for (E.164 format)",
                    "example": "+11234567890"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Optional account ID associated with the phone number",
                    "example": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
                  },
                  "PIN": {
                    "type": "string",
                    "description": "New voicemail PIN",
                    "example": "5678"
                  },
                  "FirstName": {
                    "type": "string",
                    "description": "Subscriber first name",
                    "example": "John"
                  },
                  "LastName": {
                    "type": "string",
                    "description": "Subscriber last name",
                    "example": "Doe"
                  },
                  "Email": {
                    "type": "string",
                    "description": "New email address for voicemail notifications",
                    "example": "newemail@example.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/voicemail/delete": {
      "post": {
        "tags": [
          "Voicemail"
        ],
        "summary": "Delete Voicemail",
        "description": "Remove voicemail configuration from a phone number. After deletion, the number will no longer have voicemail enabled and unanswered calls will not be captured.\n\n**What this does:** Removes voicemail from the number and returns a confirmation. Existing voicemail messages are deleted. Unanswered calls will no longer be captured after this call.\n\n**Next steps:**\n- Reactivate voicemail — `POST /v1.0/numbers/voicemail/activate`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+11234567890\",\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/voicemail/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumber\": \"+11234567890\",\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns voicemail deletion confirmation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+11234567890",
                      "Successful": true,
                      "Message": "Voicemail removed"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumber"
                ],
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "The phone number to remove voicemail from (E.164 format)",
                    "example": "+11234567890"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Optional account ID associated with the phone number",
                    "example": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/portout": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Port Out",
        "description": "Assign a Port Out PIN to a phone number on your Telegent account. The PIN you set here is the PIN you will be required to provide when you later initiate a port-out transfer to another carrier.\n\n**What this does:** Saves the specified PIN against the phone number so it can be used to authorize a future port-out request.\n\n**Next steps:**\n- Track the port-out order — `GET /v1.0/numbers/order`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PortOutNumber\": \"+11234567890\",\n  \"PortOutPIN\": \"1234\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/portout \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PortOutNumber\": \"+112324567890\",\n    \"PortOutPIN\": \"1234\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Numbers - Port Out",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "OrderId": "JNOID-dabada8a-....-....-....-.......",
                      "OrderDate": "2025-05-14T18:00:00.0000000+00:00",
                      "Status": "Pending",
                      "PhoneNumber": "+11234567890"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PortOutNumber",
                  "PortOutPIN"
                ],
                "properties": {
                  "PortOutNumber": {
                    "type": "string",
                    "description": "Phone number to port out (E.164 format)",
                    "example": "+11234567890"
                  },
                  "PortOutPIN": {
                    "type": "string",
                    "description": "Authorization PIN for port-out request",
                    "example": "1234"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/order": {
      "get": {
        "tags": [
          "Numbers"
        ],
        "summary": "Order ID Details",
        "description": "Retrieve detailed information about a number provisioning order using the order ID. Returns order status, requested numbers, provisioning results, and any error messages.\n\n**What this does:** Returns the order status, order type (provision, portin, etc.), associated phone numbers, and any error message codes from the carrier. Multiple example responses are included showing common error states (account number required, number lock). Poll this endpoint after a provision or port-in to confirm completion.\n\n**Next steps:**\n- If status is Complete, the number is active — send a test message via `POST /v1.0/message/outbound`\n- If status is Error, review the `OrderStatusMessage` and retry the operation",
        "parameters": [
          {
            "name": "OrderId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The unique order ID to retrieve details for (e.g., JNUOID-xxxxx)"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/numbers/order?OrderId=JNUOID-10a3g876-....-....-....-c00a36988653' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Order ID Details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example1": {
                    "summary": "Error - Account Number Required or Incorrect",
                    "value": {
                      "OrderDate": "2025-12-08T00:12:08.89",
                      "OrderId": "JNUOID-12390e1f-ef69-4d81-b97b-8d000e763ec9",
                      "OrderStatus": "Error",
                      "OrderStatusMessage": "8A-ACCOUNT_NUM_REQ_OR_INCORRECT",
                      "OrderType": "portin",
                      "PhoneNumbersOrdered": [
                        {
                          "Number": "+12815703894"
                        }
                      ]
                    }
                  },
                  "example2": {
                    "summary": "Error - Number Lock on Account",
                    "value": {
                      "OrderDate": "2025-12-08T00:21:41.29",
                      "OrderId": "JNUOID-2961128e-6425-42b2-b062-84bc16300be0",
                      "OrderStatus": "Error",
                      "OrderStatusMessage": "6P-REMOVE NUMBER LOCK ON VERIZON ACCOUNT",
                      "OrderType": "portin",
                      "PhoneNumbersOrdered": [
                        {
                          "Number": "+15094752007"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/inventory": {
      "get": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers Inventory",
        "description": "Retrieve a paginated list of all phone numbers currently provisioned in your account. Filter by number type, capabilities, and status. Includes detailed information about each number's configuration and services.\n\n**What this does:** Returns a paginated list of all provisioned numbers on the account. Each record includes the phone number, `NID-`, capabilities, assigned routes, subscriber, and status. Use this to audit your number pool or find a specific number's ID.\n\n**Next steps:**\n- Get details for a specific number — `GET /v1.0/numbers`\n- Update a number — `POST /v1.0/numbers/update`",
        "parameters": [
          {
            "name": "PageNumber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Page number for paginated results (starts at 1)"
          },
          {
            "name": "Filter",
            "in": "query",
            "description": "Filter string",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TotalNumbersRequested",
            "in": "query",
            "description": "TotalNumbersRequested int",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/numbers/inventory?PageNumber=1' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Numbers Inventory",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "PhoneNumbers": {
                      "type": "array",
                      "description": "The numbers on this page of results.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "InternationalVoiceEnabled": {
                            "type": "boolean",
                            "description": "Whether **international voice and international messaging** are enabled on the line — one flag covers both channels. `false` means international is off, which is the default for every line unless it is explicitly enabled. Change it on `POST /v1.0/numbers/update`."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "TotalResults": 346,
                      "PageNumber": 1,
                      "Filter": "Active",
                      "PhoneNumbers": [
                        {
                          "Number": "+18015555555",
                          "Tnid": "TNID-9772956561858",
                          "OrderId": "TNOID-ddbaad7c-38c8-4cb4-bf0d-87ed9064f021",
                          "NumberType": "mobile",
                          "MessageEnabled": true,
                          "MessageType": "p2p",
                          "Classification": "MVNO",
                          "VoiceEnabled": true,
                          "MessageRouteId": "MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee",
                          "VoiceRouteId": "CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe",
                          "Status": "Active",
                          "OriginalDatePurchased": "02/05/2023",
                          "AssignedSubscriberId": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                          "Iccid": "8901240397190556232",
                          "Cnam": "ABC Corp",
                          "QrActivationLink": "https://api.telegent.com/qr-activation-link",
                          "SwapsRemaining": 1,
                          "NextSwapResetDate": "2025-12-04T22:09:41.56",
                          "ProductType": "Sms+Data+Voice",
                          "PortOutPin": "1234",
                          "ForwardingNumber": "+18015555555",
                          "MmsMessageEnabled": true,
                          "InternationalVoiceEnabled": false
                        },
                        {
                          "Number": "+18015555556",
                          "Tnid": "TNID-8772956561858",
                          "OrderId": "TNOID-ddbaad7c-38c8-4cb4-bf0d-87ed9064f021",
                          "NumberType": "mobile",
                          "MessageEnabled": "true",
                          "MessageType": "a2p",
                          "Classification": "MVNO",
                          "VoiceEnabled": "true",
                          "MessageRouteId": "MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee",
                          "VoiceRouteId": "CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe",
                          "Status": "Active",
                          "OriginalDatePurchased": "02/05/2023",
                          "AssignedSubscriberId": "SID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b7d",
                          "Iccid": "8901240397190555232",
                          "Cnam": "ABC Corp",
                          "QrActivationLink": "https://api.telegent.com/qr-activation-link",
                          "SwapsRemaining": 2,
                          "NextSwapResetDate": "2025-12-04T22:09:41.56",
                          "ProductType": "Sms+Data",
                          "PortOutPin": "5678",
                          "ForwardingNumber": "",
                          "MmsMessageEnabled": false,
                          "InternationalVoiceEnabled": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers": {
      "get": {
        "tags": [
          "Numbers"
        ],
        "summary": "Number Details",
        "description": "Get comprehensive details for a specific phone number including its capabilities (voice, SMS, MMS, data), message routes, voice routes, classification, and current configuration.\n\n**What this does:** Returns the full configuration for a specific number: capabilities (voice, messaging, data), assigned routes, subscriber ID, ICCID, status, and number type. Use this to confirm provisioning details or look up a number's `NID-` for use in other calls.\n\n**Next steps:**\n- Update the number — `POST /v1.0/numbers/update`\n- Check data usage — `POST /v1.0/numbers/data-usage/info`",
        "parameters": [
          {
            "name": "Number",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Phone number in E.164 format (e.g., +18015555555)"
          },
          {
            "name": "PhoneNumber",
            "in": "query",
            "description": "Phone_Number string",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ICCID",
            "in": "query",
            "description": "ICCID string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/numbers?Number=%2B18018018011' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Number Details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "InternationalVoiceEnabled": {
                      "type": "boolean",
                      "description": "Whether **international voice and international messaging** are enabled on the line — one flag covers both channels. `false` means international is off, which is the default for every line unless it is explicitly enabled. Change it on `POST /v1.0/numbers/update`."
                    }
                  }
                },
                "examples": {
                  "example": {
                    "value": {
                      "Number": "+18018018011",
                      "TNID": "TNID-kasjfljljlsadlfjlkhlkdhf",
                      "OrderId": "TNOID-ijljqljildfiiuoieui",
                      "NumberType": "Mobile",
                      "MessageEnabled": true,
                      "MessageRouteId": "MRID-6575d4d9-a10a-4b18-8936-4ac6dac73ac4",
                      "VoiceEnabled": true,
                      "Classification": "MVNO",
                      "MessageType": "A2P",
                      "VoiceRouteId": "T9992774",
                      "Status": "Active",
                      "OriginalDatePurchased": null,
                      "AssignedSubscriberId": null,
                      "Iccid": "8901240397190557414F",
                      "Cnam": "Bob's Shake Shack",
                      "QrActivationLink": "https://api.telegent.com/qr-activation-link",
                      "SwapsRemaining": 2,
                      "NextSwapResetDate": "2025-09-04T22:09:41.56",
                      "ForwardingNumber": "+18015555555",
                      "MmsMessageEnabled": true,
                      "InternationalVoiceEnabled": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/update": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers Update",
        "description": "Update configuration settings for one or more phone numbers. Modify message routes, voice routes, capabilities, and other number attributes. Changes take effect immediately.\n\n**What this does:** Returns confirmation of the updated number configuration. Changes apply immediately. You can change the message route, voice route, subscriber assignment, or number settings in a single call.\n\n**Messaging capabilities:** `MessageEnabled` (SMS) and `MmsMessageEnabled` (MMS) are independent — set either in the request to control that channel. MMS can also be changed on its own via `POST /v1.0/numbers/mms/update`. Responses return `MmsMessageEnabled` to report the line's current MMS state.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/numbers`\n- Check inventory — `GET /v1.0/numbers/inventory`\n- Enable or disable MMS — `POST /v1.0/numbers/mms/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"Number\": \"+18018018011\",\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\",\n  \"MessageEnabled\": true,\n  \"MmsMessageEnabled\": true,\n  \"InternationalVoiceEnabled\": true,\n  \"MessageType\": \"p2p\",\n  \"Classification\": \"MVNO\",\n  \"VoiceEnabled\": true,\n  \"MessageRouteId\": \"MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee\",\n  \"VoiceRouteId\": \"CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe\",\n  \"AssignedSubscriberId\": \"TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d\",\n  \"Iccid\": \"8901240397190556232\",\n  \"CnamFirstName\": \"Test\",\n  \"CnamLastName\": \"User\",\n  \"ProductType\": \"Data-Only\",\n  \"ForwardingNumber\": \"+18015555555\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"Number\": \"+18018018011\",\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\",\n    \"MessageEnabled\": true,\n    \"MmsMessageEnabled\": true,\n    \"InternationalVoiceEnabled\": true,\n    \"MessageType\": \"p2p\",\n    \"Classification\": \"MVNO\",\n    \"VoiceEnabled\": true,\n    \"MessageRouteId\": \"MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee\",\n    \"VoiceRouteId\": \"CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe\",\n    \"AssignedSubscriberId\": \"TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d\",\n    \"Iccid\": \"8901240397190556232\",\n    \"CnamFirstName\": \"Test\",\n    \"CnamLastName\": \"User\",\n    \"ProductType\": \"Data-Only\",\n    \"ForwardingNumber\": \"+18015555555\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Numbers Update",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Number": "+18018018011",
                      "Tnid": null,
                      "UpdateOrderId": "JNUOID-9ac74103-bf27-474a-8a1a-9f4ff74af187",
                      "UpdateOrderDate": "2025-05-14T22:21:08.2813656+00:00",
                      "UpdateOrderStatus": "Complete",
                      "MessageType": "p2p",
                      "MessageEnabled": true,
                      "Classification": "MVNO",
                      "VoiceEnabled": true,
                      "MessageRouteId": "MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee",
                      "VoiceRouteId": "CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe",
                      "Iccid": "8901240397190557414F",
                      "CnamFirstName": "John",
                      "CnamLastName": "Doe",
                      "ProductType": "Data-Only",
                      "ForwardingNumber": "+18015555555",
                      "MmsMessageEnabled": true,
                      "InternationalVoiceEnabled": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "Number"
                ],
                "properties": {
                  "Number": {
                    "type": "string",
                    "description": "Phone number to update (E.164 format)",
                    "example": "+18018018011"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID (AID) the number belongs to. Required when a distributor account has more than one sub-account.",
                    "example": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
                  },
                  "MessageEnabled": {
                    "type": "boolean",
                    "description": "Enable or disable SMS on the line. Independent of MMS — set the `MmsMessageEnabled` field to control MMS, or use `POST /v1.0/numbers/mms/update`.",
                    "example": true
                  },
                  "MmsMessageEnabled": {
                    "type": "boolean",
                    "description": "Optional. Enable or disable MMS on the line. Independent of `MessageEnabled` (SMS). MMS can also be changed on its own via `POST /v1.0/numbers/mms/update`.",
                    "example": true
                  },
                  "InternationalVoiceEnabled": {
                    "type": "boolean",
                    "description": "Optional. Enables **international voice and international messaging** on the line — this one flag controls both channels. Defaults to `false` (international off); set to `true` to turn international voice and messaging on. The value is applied from provisioning and can be changed here later; it is returned by `GET /v1.0/numbers` (Number Details) and `GET /v1.0/numbers/inventory` (Numbers Inventory).",
                    "example": true
                  },
                  "MessageType": {
                    "type": "string",
                    "enum": [
                      "a2p",
                      "p2p"
                    ],
                    "description": "Message type",
                    "example": "p2p"
                  },
                  "Classification": {
                    "type": "string",
                    "enum": [
                      "MVNO",
                      "IoT"
                    ],
                    "description": "Number classification",
                    "example": "MVNO"
                  },
                  "VoiceEnabled": {
                    "type": "boolean",
                    "description": "Enable/disable voice capabilities",
                    "example": true
                  },
                  "MessageRouteId": {
                    "type": "string",
                    "description": "MRID for message routing",
                    "example": "MRID-73af1e73-d7b3-4696-bdd9-5b407d9e99ee"
                  },
                  "VoiceRouteId": {
                    "type": "string",
                    "description": "CRID for voice routing",
                    "example": "CRID-4dec6beb-3985-444b-8c06-8baa5jjvawe"
                  },
                  "AssignedSubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d"
                  },
                  "Iccid": {
                    "type": "string",
                    "description": "SIM card ICCID (for IoT/MVNO)",
                    "example": "8901240397190556232"
                  },
                  "CnamFirstName": {
                    "type": "string",
                    "description": "Caller ID first name",
                    "example": "John"
                  },
                  "CnamLastName": {
                    "type": "string",
                    "description": "Caller ID last name",
                    "example": "Doe"
                  },
                  "ProductType": {
                    "type": "string",
                    "enum": [
                      "Sms-Only",
                      "Data-Only",
                      "Sms+Data",
                      "Sms+Data+Voice"
                    ],
                    "description": "Product type for the number",
                    "example": "Data-Only"
                  },
                  "ForwardingNumber": {
                    "type": "string",
                    "description": "Number that calls to this line are forwarded to (E.164 format). Send an empty string to clear forwarding.",
                    "example": "+18015555555"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/status": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers Status",
        "description": "> **Swap limit:** A number can only be swapped **twice every 120 days**. Additional `Swap` requests for the same number within that rolling window will be rejected.\n\n> **Cancel moved (v1.0.16):** the `Cancel` action has been removed from this endpoint. Sending `\"StatusChange\": \"cancel\"` returns `400 — Cancel has moved to POST /numbers/cancel-order-request.` Use the two-stage [Cancelling Numbers](/guides/cancelling-numbers) flow instead.\n\nCheck the current status of one or more phone numbers including provisioning state, active services, and any pending changes or issues.\n\n**What this does:** Returns the status result for each number in the batch. Use action codes such as `Park`, `Swap`, `Replace`, `Swap-Sim`, or `Activate` to change number lifecycle state. Each result includes the number, the action taken, and success or error status. To **cancel** a number, use `POST /v1.0/numbers/cancel-order-request` instead.\n\n**Next steps:**\n- Confirm new number state — `GET /v1.0/numbers`\n- View inventory — `GET /v1.0/numbers/inventory`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"StatusChange\": \"replace\",\n  \"EffectiveDate\": \"12/31/2023\",\n  \"AreaCode\": \"201\",\n  \"ZipCode\": \"84043\",\n  \"PhoneNumbers\": [\n    {\n      \"Number\": \"+12016093801\",\n      \"ICCID\": \"202620160938010123\"\n    },\n    {\n      \"Number\": \"+12232233180\",\n      \"ICCID\": \"202620160938010123\"\n    }\n  ]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/status \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"StatusChange\": \"replace\",\n    \"EffectiveDate\": \"12/31/2023\",\n    \"AreaCode\": \"201\",\n    \"ZipCode\": \"84043\",\n    \"PhoneNumbers\": [{\"Number\": \"+12016093801\"}, {\"Number\": \"+12232233180\"}]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Numbers Activate",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "OrderId": "JNUOID-9df281cc-82ac-48fc-b8bf-edc0a5547f04",
                      "OrderDate": "2025-05-15T18:20:58.5133475Z",
                      "OrderStatus": "Complete",
                      "ChangeType": "activate",
                      "EffectiveDate": "2023-12-31T00:00:00",
                      "Numbers": [
                        {
                          "Number": "+12016093801",
                          "QrCode": "https://qrcodeimage.com"
                        },
                        {
                          "Number": "+12016093802",
                          "QrCode": "https://qrcodeimage.com"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "StatusChange",
                  "EffectiveDate",
                  "PhoneNumbers"
                ],
                "properties": {
                  "StatusChange": {
                    "type": "string",
                    "enum": [
                      "activate",
                      "swap",
                      "swap-sim",
                      "replace",
                      "park"
                    ],
                    "description": "Type of status change to perform. `cancel` is no longer accepted as of v1.0.16 — use the two-stage cancel flow starting at POST /v1.0/numbers/cancel-order-request.",
                    "example": "replace"
                  },
                  "EffectiveDate": {
                    "type": "string",
                    "description": "Date when status change takes effect (MM/DD/YYYY)",
                    "example": "12/31/2023"
                  },
                  "AreaCode": {
                    "type": "string",
                    "description": "Area code for swap/replace (searched first)",
                    "example": "201"
                  },
                  "ZipCode": {
                    "type": "string",
                    "description": "Zip code for swap/replace (if area code unavailable)",
                    "example": "84043"
                  },
                  "PhoneNumbers": {
                    "type": "array",
                    "description": "Array of phone numbers to update",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Number": {
                          "type": "string",
                          "example": "+12016093801"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/data-usage": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Data Usage Limit",
        "description": "**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Required:** Provisioned number ID (NID) with `DataEnabled: true` — `POST /v1.0/numbers/provision`\n\n---\n\nSet data usage limits, notification thresholds, and throttling parameters for IoT/MVNO numbers. Configure when subscribers are notified and at what usage level data speeds are throttled. **Important:** NotifyValue, ThrottleValue, and LimitValue must be in ascending increments and cannot be the same value (e.g., NotifyValue < ThrottleValue < LimitValue). Unless a `LimitValue` is specified, the default data limit is **20 MB**.\n\n**What this does:** Returns the updated data usage configuration for each number in the batch. Settings take effect at the next billing cycle or usage event. A `NotifyValue` triggers a notification webhook when usage reaches that threshold; `LimitValue` hard-caps usage; `ThrottleValue` reduces speed instead of cutting off.\n\n**Next steps:**\n- Confirm the new settings — `POST /v1.0/numbers/data-usage/settings`\n- Check current consumption — `POST /v1.0/numbers/data-usage/info`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ValueUnit\": \"MB\",\n  \"NotifyValue\": 10,\n  \"ThrottleValue\": 15,\n  \"ThrottleSpeed\": \"1-mbps\",\n  \"LimitValue\": 20,\n  \"PhoneNumbers\": [\n    { \"Number\": \"+12016093801\" },\n    { \"Number\": \"+12232233180\" }\n  ]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/data-usage \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ValueUnit\": \"MB\",\n    \"NotifyValue\": 10,\n    \"ThrottleValue\": 15,\n    \"ThrottleSpeed\": \"1-mbps\",\n    \"LimitValue\": 20,\n    \"PhoneNumbers\": [\n      { \"Number\": \"+12016093801\" },\n      { \"Number\": \"+12232233180\" }\n    ]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Data Usage Limit Set",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Status": "Complete",
                      "StatusMessage": "",
                      "ValueUnit": "MB",
                      "NotifyValue": 10,
                      "ThrottleValue": 15,
                      "ThrottleSpeed": "1-mbps",
                      "LimitValue": 20,
                      "PhoneNumbers": [
                        {
                          "Number": "+12016093801"
                        },
                        {
                          "Number": "+12232233180"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ValueUnit",
                  "LimitValue",
                  "PhoneNumbers"
                ],
                "properties": {
                  "ValueUnit": {
                    "type": "string",
                    "enum": [
                      "MB"
                    ],
                    "description": "Unit of data measurement",
                    "example": "MB"
                  },
                  "NotifyValue": {
                    "type": "integer",
                    "description": "Data usage threshold for subscriber notification",
                    "example": 10
                  },
                  "ThrottleValue": {
                    "type": "integer",
                    "description": "Data usage threshold for speed throttling",
                    "example": 15
                  },
                  "ThrottleSpeed": {
                    "type": "string",
                    "enum": [
                      "1-mbps",
                      "5-mbps",
                      "20-mbps",
                      "50-mbps",
                      "100-mbps"
                    ],
                    "description": "Throttled speed limit",
                    "example": "1-mbps"
                  },
                  "LimitValue": {
                    "type": "integer",
                    "description": "Maximum data cap/limit",
                    "example": 20
                  },
                  "PhoneNumbers": {
                    "type": "array",
                    "description": "Array of phone numbers to apply data limits to",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Number": {
                          "type": "string",
                          "example": "+12016093801"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/data-usage/settings": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Data Usage Settings",
        "description": "Retrieve the current data usage settings (notify value, throttle value, limit value) for one or more phone numbers.\n\n**What this does:** Returns the current `NotifyValue`, `LimitValue`, `ThrottleValue`, `ThrottleSpeed`, and `ValueUnit` for each number. Use this to audit a number's data policy before making changes.\n\n**Next steps:**\n- Update data usage settings — `POST /v1.0/numbers/data-usage`\n- Check current consumption — `POST /v1.0/numbers/data-usage/info`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumbers\": [\n    { \"Number\": \"+17064491796\" }\n  ]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/data-usage/settings \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumbers\": [\n      { \"Number\": \"+17064491796\" }\n    ]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Data Usage Settings Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumbers": [
                        {
                          "Number": "+17064491796",
                          "Status": "Success",
                          "StatusMessage": "",
                          "NotifyValue": 14,
                          "LimitValue": 20,
                          "ThrottleValue": 15,
                          "ThrottleSpeed": "thr1024kbps",
                          "ValueUnit": "MB"
                        }
                      ],
                      "Status": "Complete"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumbers"
                ],
                "properties": {
                  "PhoneNumbers": {
                    "type": "array",
                    "description": "Array of phone numbers to retrieve data usage settings for",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Number": {
                          "type": "string",
                          "description": "Phone number in E.164 format",
                          "example": "+17064491796"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/data-usage/info": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Data Usage Info",
        "description": "Retrieve real-time data usage information for one or more phone numbers, including amount used, remaining data, and current behavior (active, throttled, etc.).\n\n**What this does:** Returns current consumed data and remaining data for each number in the batch. Values are in the unit specified by `ValueUnit` (MB). Use this for real-time monitoring dashboards or to decide whether to adjust a number's data limit.\n\n**Next steps:**\n- Update data limits — `POST /v1.0/numbers/data-usage`\n- View current limit settings — `POST /v1.0/numbers/data-usage/settings`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumbers\": [\n    { \"Number\": \"+17064491796\" }\n  ]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/data-usage/info \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumbers\": [\n      { \"Number\": \"+17064491796\" }\n    ]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Data Usage Info Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumbers": [
                        {
                          "Number": "+17064491796",
                          "Status": "ACTIVE",
                          "StatusMessage": "",
                          "Used": "0 B",
                          "Remaining": "20 MB",
                          "CurrentBehavior": "Active"
                        }
                      ],
                      "Status": "Complete"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumbers"
                ],
                "properties": {
                  "PhoneNumbers": {
                    "type": "array",
                    "description": "Array of phone numbers to retrieve real-time data usage for",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Number": {
                          "type": "string",
                          "description": "Phone number in E.164 format",
                          "example": "+17064491796"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/inventory-report": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers Inventory Report",
        "description": "Request a full inventory report for a distributor. Instead of paging through `GET /v1.0/numbers/inventory`, this endpoint runs a single query and delivers the results asynchronously: a CSV of every number on the account — with its number details — is generated and emailed to the distributor's admin email.\n\n**What this does:** Accepts the request and returns `200 OK` immediately with no body. The report is generated in the background and emailed to the `AdminEmail` configured on the distributor (set via `POST /v1.0/distributor/create` or `POST /v1.0/distributor/update`). Use it for bulk exports and reconciliation without hammering the paginated inventory endpoint.\n\n**Next steps:**\n- Set or update the recipient — `POST /v1.0/distributor/update`\n- Browse inventory interactively — `GET /v1.0/numbers/inventory`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"DistributorId\": \"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5\",\n  \"Filter\": \"active\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/inventory-report \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"DistributorId\": \"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5\",\n    \"Filter\": \"active\"\n  }'"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "DistributorId"
                ],
                "properties": {
                  "DistributorId": {
                    "type": "string",
                    "description": "Distributor ID (DID) to run the inventory report for.",
                    "example": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5"
                  },
                  "Filter": {
                    "type": "string",
                    "enum": [
                      "active",
                      "pending",
                      "swapped",
                      "parked",
                      "cancelled",
                      "deactivated"
                    ],
                    "description": "Status of the numbers to include in the report. Case-insensitive; common synonyms (for example `cancel`, `canceled`, `deactivate`) are also accepted.",
                    "example": "active"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted — the report is generated in the background and emailed to the distributor's admin email. No response body is returned."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/device-details": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Device Details",
        "description": "Retrieve the full device profile for a handset by its `IMEI` — model, manufacturer, TAC, and detailed SIM, technology, capability, network-compatibility, and certification data. `AccountId` is required for Distributors managing multiple accounts.\n\n**What this does:** Looks up a device by `IMEI` and returns its complete specifications. `Sim_Specifications`, `Technology`, `Device_Specifications`, `Device_Capabilities`, `Network_Compatibility`, and `Certification` are returned as JSON-encoded strings (parse them client-side). Number ownership is not required — any IMEI can be queried.\n\n**Next steps:**\n- Update the number — `POST /v1.0/numbers/update`\n- Check data usage — `POST /v1.0/numbers/data-usage/info`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"IMEI\": \"359796727818015\",\n  \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-0bad9272f89d\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/device-details \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"IMEI\": \"359796727818015\",\n    \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-0bad9272f89d\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Device Details Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountId": "AID-206dd875-05de-4764-8ff7-xxxx",
                      "IMEI": "359796727818015",
                      "DeviceModel": "4X4",
                      "DeviceName": null,
                      "DeviceManufacturer": "Escolls",
                      "TAC": "35979672",
                      "Status": "Success",
                      "StatusMessage": "",
                      "Sim_Specifications": "{\"SIMSlots\":\"2\",\"SIMSize\":\"Not Available\",\"eSIM\":\"Not Available\",\"RemoteSIMUnlock\":\"Not Available\"}",
                      "Technology": "{\"LTECategory\":\"Not Available\",\"UMTS\":\"Yes\",\"LTEAdvanced\":\"Not Available\",\"LTE\":\"Yes\",\"WLAN\":\"No\",\"Technology On The Device\":\"Not Available\"}",
                      "Device_Specifications": "{\"ChipsetVendor\":\"Not Available\",\"ChipsetName\":\"Not Available\",\"YearReleased\":\"2023\",\"OSName\":\"Not Available\",\"PrimaryHardwareType\":\"Mobile Phone\",\"ChipsetModel\":\"Not Available\",\"DeviceType\":\"Mobile Phone/Feature phone\",\"unlockStatus\":\"LOCKED\"}",
                      "Device_Capabilities": "{\"HSPA+\":\"Yes\",\"HSDPA\":\"Yes\",\"VoWiFi\":\"Not Available\",\"VoLTE\":\"Yes\",\"GPRS\":\"Yes\",\"HSCSD\":\"Not Available\",\"Wi-Fi\":\"No\",\"Bands\":\"LTE FDD BAND 1,LTE FDD BAND 3,LTE FDD BAND 5,LTE FDD BAND 7,LTE FDD BAND 28,GSM 1800,GSM 1900,GSM850 (GSM800),GSM 900,WCDMA FDD Band 1,WCDMA FDD Band 2,WCDMA FDD Band 5,WCDMA FDD Band 8\",\"DualbandWIFI\":\"Not Available\",\"HDVoice\":\"Not Available\",\"IMS\":\"Not Available\",\"IPv6\":\"Not Available\",\"Passpoint\":\"Not Available\",\"Roaming IMS\":\"Not Available\",\"VoLTEEmergencyCalling\":\"Not Available\",\"Wi-FiCallingVersion\":\"Not Available\",\"HSPADualCarrier\":\"Not Available\",\"RCS\":\"Not Available\",\"CarrierConfig\":\"Not Available\"}",
                      "Network_Compatibility": "{\"Band12Compatible\":\"Not Available\",\"WiFiCompatible\":\"Not Available\",\"standAlone5G\":\"Not Available\",\"nonStandAlone5G\":\"Not Available\",\"NetworkTechnology\":\"LTE\",\"VoLTECompatible\":\"Yes\",\"VoNRCompatible\":\"Not Available\",\"compatibility\":\"Voice Device Partially Compatible\",\"compatibilityDescription\":\"Not Available\"}",
                      "Certification": "{\"t-MobileApproved\":\"No\"}"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "IMEI"
                ],
                "properties": {
                  "IMEI": {
                    "type": "string",
                    "description": "IMEI of the device to look up. Number ownership is not required — any IMEI can be queried.",
                    "example": "359796727818015"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID — required for Distributors managing multiple accounts",
                    "example": "AID-eab92510-1040-45a5-bb9c-0bad9272f89d"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/device/unlock-status": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Device Unlock Status",
        "description": "Check the carrier unlock status of a device by IMEI or by phone number. Works for any IMEI, including devices on other carriers that have never been provisioned on the Telegent network.\n\n**Two ways to look up a device:**\n- **By `IMEI`** — the general-purpose lookup. Works for any device on any carrier, whether or not it exists in your account. `PhoneNumber` is returned empty.\n- **By `PhoneNumber`** — only works for numbers assigned to your own account. The device's `IMEI` is resolved automatically and returned alongside the lock status.\n\n`PhoneNumber` is optional; if it is blank, `IMEI` is required. The response shape is the same either way.\n\n**Reading the response:** This endpoint returns HTTP `200` even when the lookup fails. Always check the `Status` field — `Success` means `UnlockStatus` is populated, `FAILED` means `UnlockStatus` is `null` and `StatusMessage` carries the upstream error (for example `GENS-0020 Invalid IMEI` or `GENS-0013 Invalid MSISDN`).\n\n**Next steps:**\n- Retrieve device model, manufacturer and TAC — `POST /v1.0/numbers/device-details`\n- Check the number's service status — `POST /v1.0/numbers/status`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+18483550675\",\n  \"IMEI\": \"359796727818015\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/device/unlock-status \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumber\": \"+18483550675\",\n    \"IMEI\": \"359796727818015\"\n  }'"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "Phone number of a device already on your account (E.164 format). Optional — when provided, the IMEI is resolved automatically. If left blank, `IMEI` is required.",
                    "example": "+12017540711"
                  },
                  "IMEI": {
                    "type": "string",
                    "description": "15-digit IMEI of the device to check. Required when `PhoneNumber` is blank. Accepts any IMEI, including devices not provisioned on the Telegent network.",
                    "example": "357100775549659"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Device Unlock Status Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+18483550675",
                      "IMEI": "359796727818015",
                      "UnlockStatus": "LOCKED",
                      "Status": "Success",
                      "StatusMessage": ""
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/message/routes": {
      "post": {
        "tags": [
          "Message"
        ],
        "summary": "Create Message Route",
        "description": "Create a new message route to configure how inbound SMS/MMS messages are handled. Specify webhook URLs for message delivery, fallback URLs, and HTTP methods. Each route is identified by a unique MRID (Message Route ID).\n\n**What this does:** Returns the new route's `MessageRouteId` (`MRID-`). Store this ID — it is required when provisioning numbers and can be assigned to multiple numbers. The webhook URL you configure receives a POST for every inbound message on numbers using this route.\n\n**Next steps:**\n- Assign the route to a number at provision time — `POST /v1.0/numbers/provision`\n- Update route settings — `POST /v1.0/message/routes/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"RouteName\": \"Main SMS Webhook\",\n  \"MessageUrl\": \"https://apiendpoint.com\",\n  \"MessageUrlMethod\": \"POST\",\n  \"MessageRouteEnabled\": true,\n  \"MessageAuthenticationType\": \"Basic\",\n  \"MessageUsername\": \"admin\",\n  \"MessagePasswordToken\": \"passwordORbearerToken\",\n  \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n  \"CallbackMessageUrlMethod\": \"POST\",\n  \"CallbackMessageAuthenticationType\": \"Basic\",\n  \"CallbackMessageUsername\": \"admin\",\n  \"CallbackMessagePasswordToken\": \"password\",\n  \"InboundBypass\": true,\n  \"OutboundBypass\": true,\n  \"IntelligentRouteEnabled\": true,\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/message/routes \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"RouteName\": \"Main SMS Webhook\",\n    \"MessageUrl\": \"https://apiendpoint.com\",\n    \"MessageUrlMethod\": \"POST\",\n    \"MessageRouteEnabled\": true,\n    \"MessageAuthenticationType\": \"Basic\",\n    \"MessageUsername\": \"admin\",\n    \"MessagePasswordToken\": \"passwordORbearerToken\",\n    \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n    \"CallbackMessageUrlMethod\": \"POST\",\n    \"CallbackMessageAuthenticationType\": \"Basic\",\n    \"CallbackMessageUsername\": \"admin\",\n    \"CallbackMessagePasswordToken\": \"password\",\n    \"InboundBypass\": true,\n    \"OutboundBypass\": true,\n    \"IntelligentRouteEnabled\": true,\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the newly created Message Route ID (MRID)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "MessageRouteId": "MRID-ad0ff867-57dc-4aeb-80e9-9d18349080e9",
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "RouteName": "Main SMS Webhook",
                      "MessageUrl": "https://apiendpoint.com",
                      "MessageUrlMethod": "POST",
                      "MessageRouteEnabled": false,
                      "MessageAuthenticationType": "Basic",
                      "MessageUsername": "admin",
                      "MessagePasswordToken": "passwordORbearerToken",
                      "CallbackMessageUrl": "https://apiendpoint.com",
                      "CallbackMessageUrlMethod": "POST",
                      "CallbackMessageAuthenticationType": "Basic",
                      "CallbackMessageUsername": "admin",
                      "CallbackMessagePasswordToken": "password"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "RouteName",
                  "MessageUrl",
                  "MessageUrlMethod"
                ],
                "properties": {
                  "RouteName": {
                    "type": "string",
                    "description": "Friendly name for the message route",
                    "example": "Main SMS Webhook"
                  },
                  "MessageUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Primary webhook URL for inbound messages",
                    "example": "https://apiendpoint.com"
                  },
                  "MessageUrlMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "description": "HTTP method for webhook delivery",
                    "example": "POST"
                  },
                  "MessageRouteEnabled": {
                    "type": "boolean",
                    "description": "Enable or disable this message route",
                    "example": true,
                    "default": true
                  },
                  "MessageAuthenticationType": {
                    "type": "string",
                    "enum": [
                      "None",
                      "Basic",
                      "Bearer"
                    ],
                    "description": "Authentication type for primary webhook",
                    "example": "Basic"
                  },
                  "MessageUsername": {
                    "type": "string",
                    "description": "Username for Basic auth (if applicable)",
                    "example": "admin"
                  },
                  "MessagePasswordToken": {
                    "type": "string",
                    "description": "Password for Basic auth or token for Bearer auth",
                    "example": "passwordORbearerToken"
                  },
                  "CallbackMessageUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Fallback/callback webhook URL",
                    "example": "https://apiendpoint.com"
                  },
                  "CallbackMessageUrlMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "description": "HTTP method for callback webhook",
                    "example": "POST"
                  },
                  "CallbackMessageAuthenticationType": {
                    "type": "string",
                    "enum": [
                      "None",
                      "Basic",
                      "Bearer"
                    ],
                    "description": "Authentication type for callback webhook",
                    "example": "Basic"
                  },
                  "CallbackMessageUsername": {
                    "type": "string",
                    "description": "Username for callback Basic auth",
                    "example": "admin"
                  },
                  "CallbackMessagePasswordToken": {
                    "type": "string",
                    "description": "Password/token for callback auth",
                    "example": "password"
                  },
                  "InboundBypass": {
                    "type": "boolean",
                    "description": "Bypass AI Guardian filtering for inbound messages on this route",
                    "example": true
                  },
                  "OutboundBypass": {
                    "type": "boolean",
                    "description": "Bypass AI Guardian filtering for outbound messages on this route",
                    "example": true
                  },
                  "IntelligentRouteEnabled": {
                    "type": "boolean",
                    "description": "Enable intelligent routing features (AI-assisted message routing)",
                    "example": true
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID to associate with this message route",
                    "example": "DID-eab92510-1040-45a5-bb9c-0bad927SDY878W"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Message"
        ],
        "summary": "Message Route Details",
        "description": "Retrieve detailed configuration for a specific message route using its MRID. Returns webhook URLs, HTTP methods, timeout settings, and associated phone numbers.\n\n**What this does:** Returns the full route configuration including webhook URL, HTTP method, authentication settings, and callback URL. Use this to confirm route settings before assigning it to a number, or to retrieve the `MRID-` for use in provisioning.\n\n**Next steps:**\n- Update route — `POST /v1.0/message/routes/update`\n- Provision a number using this route — `POST /v1.0/numbers/provision`",
        "parameters": [
          {
            "name": "MessageRouteId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The unique message route ID (e.g., MRID-xxxxx)"
          },
          {
            "name": "MessageRouteID",
            "in": "query",
            "description": "string MessageRouteID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/message/routes?MessageRouteId=MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Message Route Details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "RouteName": "Main SMS Webhook",
                      "MessageUrl": "https://apiendpoint.com",
                      "MessageUrlMethod": "GET",
                      "MessageRouteEnabled": true,
                      "MessageAuthenticationType": "Basic",
                      "MessageUsername": "admin",
                      "MessagePasswordToken": "passwordORbearerToken",
                      "CallbackMessageUrl": "https://apiendpoint.com",
                      "CallbackMessageUrlMethod": "POST",
                      "CallbackMessageAuthenticationType": null,
                      "CallbackMessageUsername": "admin",
                      "CallbackMessagePasswordToken": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/message/routes/update": {
      "post": {
        "tags": [
          "Message"
        ],
        "summary": "Update Message Route",
        "description": "Update an existing message route's configuration including webhook URLs, HTTP methods, and timeout settings. Changes apply immediately to all numbers using this route.\n\n**What this does:** Returns the updated route configuration. Only the fields you send are changed; omitted fields retain their current values. Changes apply immediately to all numbers using this route — no re-provisioning needed.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/message/routes`\n- View numbers using this route — `GET /v1.0/numbers/inventory`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"MessageRouteId\": \"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9\",\n  \"RouteName\": \"Main SMS Webhook\",\n  \"MessageUrl\": \"https://apiendpoint.com\",\n  \"MessageUrlMethod\": \"GET\",\n  \"MessageRouteEnabled\": true,\n  \"MessageAuthenticationType\": \"Basic\",\n  \"MessageUsername\": \"admin\",\n  \"MessagePasswordToken\": \"passwordORbearerToken\",\n  \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n  \"CallbackMessageUrlMethod\": \"POST\",\n  \"CallbackMessageAuthenticationType\": null,\n  \"CallbackMessageUsername\": null,\n  \"CallbackMessagePasswordToken\": null,\n  \"InboundBypass\": true,\n  \"OutboundBypass\": true,\n  \"IntelligentRouteEnabled\": true,\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/message/routes/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"MessageRouteId\": \"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9\",\n    \"RouteName\": \"Main SMS Webhook\",\n    \"MessageUrl\": \"https://apiendpoint.com\",\n    \"MessageUrlMethod\": \"GET\",\n    \"MessageRouteEnabled\": true,\n    \"MessageAuthenticationType\": \"Basic\",\n    \"MessageUsername\": \"admin\",\n    \"MessagePasswordToken\": \"passwordORbearerToken\",\n    \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n    \"CallbackMessageUrlMethod\": \"POST\",\n    \"CallbackMessageAuthenticationType\": null,\n    \"CallbackMessageUsername\": null,\n    \"CallbackMessagePasswordToken\": null,\n    \"InboundBypass\": true,\n    \"OutboundBypass\": true,\n    \"IntelligentRouteEnabled\": true,\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Message Route",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "RouteName": "Main SMS Webhook",
                      "MessageUrl": "https://apiendpoint.com",
                      "MessageUrlMethod": "GET",
                      "MessageRouteEnabled": true,
                      "MessageAuthenticationType": "Basic",
                      "MessageUsername": "admin",
                      "MessagePasswordToken": "passwordORbearerToken",
                      "CallbackMessageUrl": "https://apiendpoint.com",
                      "CallbackMessageUrlMethod": "POST",
                      "CallbackMessageAuthenticationType": null,
                      "CallbackMessageUsername": null,
                      "CallbackMessagePasswordToken": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "MessageRouteId"
                ],
                "properties": {
                  "MessageRouteId": {
                    "type": "string",
                    "description": "Message Route ID to update",
                    "example": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9"
                  },
                  "RouteName": {
                    "type": "string",
                    "description": "Friendly name for the message route",
                    "example": "Main SMS Webhook"
                  },
                  "MessageUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Primary webhook URL",
                    "example": "https://apiendpoint.com"
                  },
                  "MessageUrlMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "description": "HTTP method",
                    "example": "GET"
                  },
                  "MessageRouteEnabled": {
                    "type": "boolean",
                    "description": "Enable/disable route",
                    "example": true
                  },
                  "MessageAuthenticationType": {
                    "type": "string",
                    "enum": [
                      "None",
                      "Basic",
                      "Bearer"
                    ],
                    "description": "Authentication type",
                    "example": "Basic"
                  },
                  "MessageUsername": {
                    "type": "string",
                    "description": "Username for Basic auth",
                    "example": "admin"
                  },
                  "MessagePasswordToken": {
                    "type": "string",
                    "description": "Password or Bearer token",
                    "example": "passwordORbearerToken"
                  },
                  "CallbackMessageUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Callback webhook URL",
                    "example": "https://apiendpoint.com"
                  },
                  "CallbackMessageUrlMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "description": "Callback HTTP method",
                    "example": "POST"
                  },
                  "CallbackMessageAuthenticationType": {
                    "type": "string",
                    "enum": [
                      "None",
                      "Basic",
                      "Bearer"
                    ],
                    "description": "Callback authentication type"
                  },
                  "CallbackMessageUsername": {
                    "type": "string",
                    "description": "Callback username"
                  },
                  "CallbackMessagePasswordToken": {
                    "type": "string",
                    "description": "Callback password/token"
                  },
                  "InboundBypass": {
                    "type": "boolean",
                    "description": "Bypass AI Guardian filtering for inbound messages on this route",
                    "example": true
                  },
                  "OutboundBypass": {
                    "type": "boolean",
                    "description": "Bypass AI Guardian filtering for outbound messages on this route",
                    "example": true
                  },
                  "IntelligentRouteEnabled": {
                    "type": "boolean",
                    "description": "Enable intelligent routing features (AI-assisted message routing)",
                    "example": true
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID associated with this message route",
                    "example": "DID-eab92510-1040-45a5-bb9c-0bad927SDY878W"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/account/message/routes": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "List Message Routes",
        "description": "Retrieve a list of all message routes configured in your account. Returns basic information about each route including MRID, name, and webhook configuration.\n\n**What this does:** Returns a list of message routes (`MRID-` IDs) configured on the account. Use this to find an existing route ID before provisioning a new number or updating a number's message configuration.\n\n**Next steps:**\n- Get full route details — `GET /v1.0/message/routes`\n- Create a new route — `POST /v1.0/message/routes`",
        "parameters": [
          {
            "name": "AccountId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns a list of all message routes on the account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountID": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "TotalRoutes": 2,
                      "Results": [
                        {
                          "MessageRouteId": "MRID-ad0ff867-57dc-4aeb-80e9-9d18349080e9",
                          "AccountID": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                          "RouteName": "Main SMS Webhook",
                          "MessageUrl": "https://apiendpoint.com",
                          "MessageUrlMethod": "POST",
                          "MessageRouteEnabled": false,
                          "MessageAuthenticationType": "Basic",
                          "MessageUsername": "admin",
                          "MessagePasswordToken": "passwordORbearerToken",
                          "CallbackMessageUrl": "https://apiendpoint.com",
                          "CallbackMessageUrlMethod": "POST",
                          "CallbackMessageAuthenticationType": "Basic",
                          "CallbackMessageUsername": "admin",
                          "CallbackMessagePasswordToken": "password"
                        },
                        {
                          "MessageRouteId": "MRID-ad0ff867-57dc-4aeb-80e9-9d18349080e9",
                          "AccountID": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                          "RouteName": "Main SMS Webhook",
                          "MessageUrl": "https://apiendpoint.com",
                          "MessageUrlMethod": "POST",
                          "MessageRouteEnabled": false,
                          "MessageAuthenticationType": "Basic",
                          "MessageUsername": "admin",
                          "MessagePasswordToken": "passwordORbearerToken",
                          "CallbackMessageUrl": "https://apiendpoint.com",
                          "CallbackMessageUrlMethod": "POST",
                          "CallbackMessageAuthenticationType": "Basic",
                          "CallbackMessageUsername": "admin",
                          "CallbackMessagePasswordToken": "password"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/message/outbound": {
      "post": {
        "tags": [
          "Message"
        ],
        "summary": "Send Outbound Message",
        "description": "**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Required:** Provisioned phone number with messaging enabled (`From` field) — `POST /v1.0/numbers/provision`\n\n---\n\nSend an outbound SMS or MMS message from your provisioned phone number. Supports single recipient messaging with optional media attachments for MMS. Returns a message ID for delivery tracking. All phone numbers must be in E.164 format.\n\n**What this does:** Sends an SMS or MMS message immediately and returns a `MessageId` for tracking delivery. The message is routed through the `MessageRouteId` associated with the `From` number. Check delivery status using the MessageId.",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"CampaignId\": \"JCID-dsuhofh3882\",\n  \"To\": [\n    {\"Number\": \"+18015737111\"},\n    {\"Number\": \"+18014271919\"}\n  ],\n  \"From\": \"+18018018011\",\n  \"Owner\": \"+18018018011\",\n  \"Body\": \"Hello there!!!\",\n  \"MmsMedia\": [\n    {\"MediaUrl\": \"https://results2.com\"},\n    {\"MediaUrl\": \"https://results.com\"}\n  ],\n  \"MmsBase64\": [\n    {\"Base64\": \"dkjjkdflajdfjo3ji3jjljfkjaskjfad\", \"BaseType\": \"audio/wav\"},\n    {\"Base64\": \"dkjjkdflajdfjo3ji3jjljfkjaskjfad\", \"BaseType\": \"video/mpg\"}\n  ]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/message/outbound \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"CampaignId\": \"JCID-dsuhofh3882\",\n    \"To\": [{\"Number\": \"+18015737111\"}, {\"Number\": \"+18014271919\"}],\n    \"From\": \"+18018018011\",\n    \"Owner\": \"+18018018011\",\n    \"Body\": \"Hello there!!!\",\n    \"MmsMedia\": [{\"MediaUrl\": \"https://results2.com\"}, {\"MediaUrl\": \"https://results.com\"}],\n    \"MmsBase64\": [{\"Base64\": \"dkjjkdflajdfjo3ji3jjljfkjaskjfad\", \"BaseType\": \"audio/wav\"}, {\"Base64\": \"dkjjkdflajdfjo3ji3jjljfkjaskjfad\", \"BaseType\": \"video/mpg\"}]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the Message ID (TMID) for delivery tracking",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "MessageId": "TMID-00348008102307aK01",
                      "Direction": "Outbound",
                      "Type": "p2p",
                      "CampaignId": "TCID-dsuhofh3882",
                      "Cost": 0.0045,
                      "Status": "Queued",
                      "To": [
                        {
                          "Number": "+12016093801"
                        },
                        {
                          "Number": "+12232233180"
                        }
                      ],
                      "From": "+18018018011",
                      "Owner": "+18018018011",
                      "Body": "Hello there!!!",
                      "CreatedOn": "16:45:59 MST 2025-01-23",
                      "MessageType": "mms",
                      "MmsMedia": [
                        {
                          "MediaUrl": "https://results2.com"
                        },
                        {
                          "MediaUrl": "https://results.com"
                        }
                      ],
                      "MmsBase64": [
                        {
                          "Base64": "dkjjkdflajdfjo3ji3jjljfkjaskjfad",
                          "BaseType": "audio/wav"
                        },
                        {
                          "Base64": "dkjjkdflajdfjo3ji3jjljfkjaskjfad",
                          "BaseType": "video/mpg"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "To",
                  "From",
                  "Body"
                ],
                "properties": {
                  "CampaignId": {
                    "type": "string",
                    "description": "Campaign identifier for tracking",
                    "example": "JCID-dsuhofh3882"
                  },
                  "To": {
                    "type": "array",
                    "description": "Array of recipient phone numbers in E.164 format",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Number": {
                          "type": "string",
                          "example": "+18015737111"
                        }
                      }
                    },
                    "example": [
                      {
                        "Number": "+18015737111"
                      }
                    ]
                  },
                  "From": {
                    "type": "string",
                    "description": "Sender phone number in E.164 format (must be provisioned in your account)",
                    "example": "+18018018011"
                  },
                  "Owner": {
                    "type": "string",
                    "description": "Owner phone number in E.164 format",
                    "example": "+18018018011"
                  },
                  "Body": {
                    "type": "string",
                    "description": "Message text content",
                    "example": "Hello there!!!"
                  },
                  "MmsMedia": {
                    "type": "array",
                    "description": "Array of media URLs for MMS attachments",
                    "items": {
                      "type": "object",
                      "properties": {
                        "MediaUrl": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  },
                  "MmsBase64": {
                    "type": "array",
                    "description": "Array of base64-encoded media for MMS",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Base64": {
                          "type": "string",
                          "description": "Base64-encoded media content"
                        },
                        "BaseType": {
                          "type": "string",
                          "description": "MIME type of the media",
                          "example": "audio/wav"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/message/routes/delete": {
      "post": {
        "tags": [
          "Message"
        ],
        "summary": "Delete Message Route",
        "description": "Permanently delete a message route from your account. Phone numbers using this route will need to be reassigned to a different route before deletion. This action cannot be undone.\n\n**What this does:** Returns a confirmation of deletion. Numbers assigned to this route will lose their message routing — reassign them to a different route before deleting to avoid service disruption.\n\n**Next steps:**\n- Create a replacement route — `POST /v1.0/message/routes`\n- Update affected numbers — `POST /v1.0/numbers/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"MessageRouteId\": \"MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/message/routes/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"MessageRouteId\": \"MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete Message Route",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "MessageRouteStatus": "Deleted",
                      "MRID": "MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "MessageRouteId"
                ],
                "properties": {
                  "MessageRouteId": {
                    "type": "string",
                    "description": "Message Route ID to delete (MRID)",
                    "example": "MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/message/device-delivery": {
      "post": {
        "tags": [
          "Message"
        ],
        "summary": "Report Device Delivery",
        "description": "Submit a device-level delivery confirmation for an outbound message. This endpoint is used to record whether a specific message was successfully delivered to the recipient's handset, beyond carrier-level delivery receipts. Provide the MessageId returned from the Send Outbound Message endpoint.\n\n**What this does:** Records a device-level delivery receipt against an existing message. Use this when your application receives an on-device delivery confirmation and wants to update the platform's delivery status record for a message.",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"MessageId\": \"TMID-00348008102307aK01\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/message/device-delivery \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"MessageId\": \"TMID-00348008102307aK01\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Device Delivery",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "MessageId": "TMID-00348008102307aK01",
                      "DeviceDeliveryStatus": "Delivered",
                      "DeliveredOn": "2025-05-14T22:21:08.2813656+00:00",
                      "DeviceType": "mobile"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "MessageId"
                ],
                "properties": {
                  "MessageId": {
                    "type": "string",
                    "description": "The message ID to check device delivery status for",
                    "example": "TMID-00348008102307aK01"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/voice/routes": {
      "post": {
        "tags": [
          "Voice"
        ],
        "summary": "Create Voice Route",
        "description": "Create a new voice route to define how inbound calls are handled for numbers assigned to it. Routes support SIP trunk termination, webhook-based IVR, forwarding, and workgroup distribution. Each route returns a unique CRID (Call Route ID) used when provisioning or updating numbers. Workgroups and Schedules can be attached to a route after creation to enable ring groups and business-hours routing.\n\n**What this does:** Returns the new route's `CallRouteId` (`CRID-`). Store this ID — it is required when provisioning numbers with voice enabled. Configure SIP trunk IPs, forwarding URLs, or workgroups after creation using the update endpoint.\n\n**Next steps:**\n- Assign the route to a number — `POST /v1.0/numbers/provision`\n- Add a workgroup — `POST /v1.0/workgroups`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"RouteName\": \"Main SIP Trunk\",\n  \"RouteType\": \"Trunk\",\n  \"VoiceUrl\": \"https://domain.com\",\n  \"VoiceUrlMethod\": \"POST\",\n  \"VoiceAuthenticationType\": \"Basic\",\n  \"VoiceUsername\": \"admin\",\n  \"VoicePasswordToken\": \"passwordORbearerToken\",\n  \"CallbackVoiceUrl\": \"https://apiendpoint.com\",\n  \"CallbackVoiceUrlMethod\": \"POST\",\n  \"TrunkIp1\": \"20.87.87.87\",\n  \"TrunkIp2\": \"20.87.87.86\",\n  \"TrunkPort1\": \"5061\",\n  \"TrunkPort2\": \"5060\",\n  \"TrunkTransport1\": \"UDP\",\n  \"TrunkTransport2\": \"TCP\",\n  \"TrunkUri1\": \"https://pstn.joonto.com\",\n  \"TrunkUri2\": \"https://pstn2.joonto.com\",\n  \"TrunkEnabled1\": true,\n  \"TrunkEnabled2\": false,\n  \"Trunk1Priortiy\": 10,\n  \"Trunk1Weight\": 10,\n  \"Trunk2Priortiy\": 20,\n  \"Trunk2Weight\": 20,\n  \"HeaderManipulation\": \"HMI8802029\",\n  \"EnableSipRefer\": true,\n  \"TransferCallerId\": \"Transferee/Transferor\",\n  \"SymmetricRtp\": true,\n  \"EnableTrpSecureTrunk\": true,\n  \"EnablePstnTransfer\": true,\n  \"IpWhitelist\": [{\"IpAddress\": \"20.20.10.10\"}, {\"IpAddress\": \"20.20.10.20\"}],\n  \"CnamLookup\": true,\n  \"TerminationUriSubdomain\": \"client\",\n  \"EnableCallStreaming\": true,\n  \"WssUri\": \"wss://192.67.88.2\",\n  \"IntelligentRouteEnabled\": true,\n  \"RouteEnabled\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/voice/routes \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"RouteName\": \"Main SIP Trunk\",\n    \"RouteType\": \"Trunk\",\n    \"VoiceUrl\": \"https://domain.com\",\n    \"VoiceUrlMethod\": \"POST\",\n    \"TrunkIp1\": \"20.87.87.87\",\n    \"TrunkPort1\": \"5061\",\n    \"TrunkTransport1\": \"UDP\",\n    \"RouteEnabled\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the newly created Voice Route ID (CRID)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "CallRouteId": "CRID-509de94f-79cc-429b-a317-2102654dabbb",
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "RouteName": "Main SIP Trunk",
                      "RouteType": "Trunk",
                      "VoiceUrl": "https://domain.com",
                      "VoiceUrlMethod": "POST",
                      "TrunkIp1": "20.87.87.87",
                      "TrunkIp2": "20.87.87.86",
                      "TrunkPort1": "5061",
                      "TrunkPort2": "5060",
                      "TrunkTransport1": "UDP",
                      "TrunkTransport2": "TCP",
                      "TrunkUri1": "https://pstn.joonto.com",
                      "TrunkUri2": "https://pstn2.joonto.com",
                      "TrunkEnabled1": true,
                      "TrunkEnabled2": false,
                      "Trunk1Priortiy": 10,
                      "Trunk1Weight": 10,
                      "Trunk2Priortiy": 20,
                      "Trunk2Weight": 20,
                      "HeaderManipulation": "HMI8802029",
                      "EnableSipRefer": true,
                      "TransferCallerId": "Transferee/Transferor",
                      "SymmetricRtp": true,
                      "EnableTrpSecureTrunk": true,
                      "EnablePstnTransfer": true,
                      "CnamLookup": true,
                      "TerminationUriSubdomain": "client",
                      "EnableCallStreaming": true,
                      "WssUri": "wss://192.67.88.2",
                      "IntelligentRouteEnabled": true,
                      "RouteEnabled": true,
                      "IpWhiteList": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "RouteName",
                  "RouteType"
                ],
                "properties": {
                  "RouteName": {
                    "type": "string",
                    "description": "Friendly name for voice route",
                    "example": "Main SIP Trunk"
                  },
                  "RouteType": {
                    "type": "string",
                    "enum": [
                      "Trunk",
                      "URL",
                      "Forward"
                    ],
                    "description": "Type of voice routing",
                    "example": "Trunk"
                  },
                  "VoiceUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Webhook URL for voice events",
                    "example": "https://domain.com"
                  },
                  "VoiceUrlMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "description": "HTTP method for voice URL",
                    "example": "POST"
                  },
                  "VoiceAuthenticationType": {
                    "type": "string",
                    "enum": [
                      "None",
                      "Basic",
                      "Bearer"
                    ],
                    "description": "Authentication type"
                  },
                  "VoiceUsername": {
                    "type": "string",
                    "description": "Username for auth",
                    "example": "admin"
                  },
                  "VoicePasswordToken": {
                    "type": "string",
                    "description": "Password or token",
                    "example": "passwordORbearerToken"
                  },
                  "CallbackVoiceUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Callback URL",
                    "example": "https://apiendpoint.com"
                  },
                  "CallbackVoiceUrlMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "example": "POST"
                  },
                  "TrunkIp1": {
                    "type": "string",
                    "description": "Primary SIP trunk IP",
                    "example": "20.87.87.87"
                  },
                  "TrunkIp2": {
                    "type": "string",
                    "description": "Secondary SIP trunk IP",
                    "example": "20.87.87.86"
                  },
                  "TrunkPort1": {
                    "type": "string",
                    "description": "Primary trunk port",
                    "example": "5061"
                  },
                  "TrunkPort2": {
                    "type": "string",
                    "description": "Secondary trunk port",
                    "example": "5060"
                  },
                  "TrunkTransport1": {
                    "type": "string",
                    "enum": [
                      "UDP",
                      "TCP",
                      "TLS"
                    ],
                    "description": "Primary transport protocol",
                    "example": "UDP"
                  },
                  "TrunkTransport2": {
                    "type": "string",
                    "enum": [
                      "UDP",
                      "TCP",
                      "TLS"
                    ],
                    "description": "Secondary transport protocol",
                    "example": "TCP"
                  },
                  "TrunkUri1": {
                    "type": "string",
                    "format": "uri",
                    "example": "https://pstn.joonto.com"
                  },
                  "TrunkUri2": {
                    "type": "string",
                    "format": "uri",
                    "example": "https://pstn2.joonto.com"
                  },
                  "TrunkEnabled1": {
                    "type": "boolean",
                    "description": "Enable primary trunk",
                    "example": true
                  },
                  "TrunkEnabled2": {
                    "type": "boolean",
                    "description": "Enable secondary trunk",
                    "example": false
                  },
                  "Trunk1Priortiy": {
                    "type": "integer",
                    "description": "Priority for trunk 1",
                    "example": 10
                  },
                  "Trunk1Weight": {
                    "type": "integer",
                    "description": "Weight for trunk 1",
                    "example": 10
                  },
                  "Trunk2Priortiy": {
                    "type": "integer",
                    "description": "Priority for trunk 2",
                    "example": 20
                  },
                  "Trunk2Weight": {
                    "type": "integer",
                    "description": "Weight for trunk 2",
                    "example": 20
                  },
                  "HeaderManipulation": {
                    "type": "string",
                    "description": "Header manipulation ID",
                    "example": "HMI8802029"
                  },
                  "EnableSipRefer": {
                    "type": "boolean",
                    "description": "Enable SIP REFER",
                    "example": true
                  },
                  "TransferCallerId": {
                    "type": "string",
                    "description": "Caller ID for transfers",
                    "example": "Transferee/Transferor"
                  },
                  "SymmetricRtp": {
                    "type": "boolean",
                    "description": "Enable symmetric RTP",
                    "example": true
                  },
                  "EnableTrpSecureTrunk": {
                    "type": "boolean",
                    "description": "Enable secure trunk",
                    "example": true
                  },
                  "EnablePstnTransfer": {
                    "type": "boolean",
                    "description": "Enable PSTN transfer",
                    "example": true
                  },
                  "IpWhitelist": {
                    "type": "array",
                    "description": "IP whitelist",
                    "items": {
                      "type": "object",
                      "properties": {
                        "IpAddress": {
                          "type": "string",
                          "example": "20.20.10.10"
                        }
                      }
                    }
                  },
                  "CnamLookup": {
                    "type": "boolean",
                    "description": "Enable CNAM lookup",
                    "example": true
                  },
                  "TerminationUriSubdomain": {
                    "type": "string",
                    "description": "Termination URI subdomain",
                    "example": "client"
                  },
                  "EnableCallStreaming": {
                    "type": "boolean",
                    "description": "Enable call streaming",
                    "example": true
                  },
                  "WssUri": {
                    "type": "string",
                    "format": "uri",
                    "description": "WebSocket secure URI",
                    "example": "wss://192.67.88.2"
                  },
                  "RouteEnabled": {
                    "type": "boolean",
                    "description": "Enable/disable route",
                    "example": true
                  },
                  "IntelligentRouteEnabled": {
                    "type": "boolean",
                    "description": "Enable intelligent routing features for this voice route",
                    "example": true
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID to associate with this voice route",
                    "example": "DID-1e8939ab-3f3c-4db1-89d7-956d80fd793j"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Voice"
        ],
        "summary": "Get Voice Route Details",
        "description": "Retrieve detailed configuration for a specific voice route using its CRID. Returns SIP trunk configuration, forwarding rules, IVR settings, workgroup assignments, and schedule information.\n\n**What this does:** Returns the full route configuration including route type, SIP trunk settings, webhook URLs, authentication, and workgroup associations. Use this to confirm route settings or retrieve the `CRID-` for use in provisioning.\n\n**Next steps:**\n- Update route — `POST /v1.0/voice/routes/update`\n- Provision a number using this route — `POST /v1.0/numbers/provision`",
        "parameters": [
          {
            "name": "CallRouteID",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The unique voice route ID (e.g., CRID-xxxxx)"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/voice/routes?CallRouteID=CRID-509de94f-79cc-429b-a317-2102654dabbb' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Voice Route Details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "CallRouteId": "CRID-509de94f-79cc-429b-a317-2102654dabbb",
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "RouteName": "Main SIP Trunk",
                      "RouteType": "Trunk",
                      "VoiceUrl": "https://domain.com",
                      "VoiceUrlMethod": "GET",
                      "TrunkIp1": "20.87.87.87",
                      "TrunkIp2": "20.87.87.86",
                      "TrunkPort1": "5061",
                      "TrunkPort2": "5060",
                      "TrunkTransport1": "UDP",
                      "TrunkTransport2": "TCP",
                      "TrunkUri1": "https://pstn.joonto.com",
                      "TrunkUri2": "https://pstn2.joonto.com",
                      "TrunkEnabled1": true,
                      "TrunkEnabled2": false,
                      "Trunk1Priortiy": 10,
                      "Trunk1Weight": 10,
                      "Trunk2Priortiy": 20,
                      "Trunk2Weight": 20,
                      "HeaderManipulation": "HMI8802029",
                      "EnableSipRefer": true,
                      "TransferCallerId": "Transferee/Transferor",
                      "SymmetricRtp": true,
                      "EnableTrpSecureTrunk": true,
                      "EnablePstnTransfer": true,
                      "CnamLookup": true,
                      "TerminationUriSubdomain": "client",
                      "EnableCallStreaming": true,
                      "WssUri": "wss://192.67.88.2",
                      "IpWhiteList": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/voice/routes/update": {
      "post": {
        "tags": [
          "Voice"
        ],
        "summary": "Update Voice Route",
        "description": "Update an existing voice route's configuration including SIP trunk settings, forwarding numbers, IVR menus, and workgroup assignments. Changes apply immediately to all numbers using this route.\n\n**What this does:** Returns the updated route configuration. Only fields you send are changed. Changes apply immediately to all numbers using this route.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/voice/routes`\n- View numbers using this route — `GET /v1.0/numbers/inventory`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"CallRouteId\": \"CRID-509de94f-79cc-429b-a317-2102654dabbb\",\n  \"RouteName\": \"Main SIP Trunk\",\n  \"RouteType\": \"Trunk\",\n  \"VoiceUrl\": \"https://domain.com\",\n  \"VoiceUrlMethod\": \"GET\",\n  \"VoiceAuthenticationType\": \"Basic\",\n  \"VoiceUsername\": \"admin\",\n  \"VoicePasswordToken\": \"passwordORbearerToken\",\n  \"CallbackVoiceUrl\": \"https://apiendpoint.com\",\n  \"CallbackVoiceUrlMethod\": \"POST\",\n  \"TrunkIp1\": \"20.87.87.87\",\n  \"TrunkIp2\": \"20.87.87.86\",\n  \"TrunkPort1\": \"5061\",\n  \"TrunkPort2\": \"5060\",\n  \"TrunkTransport1\": \"UDP\",\n  \"TrunkTransport2\": \"TCP\",\n  \"TrunkUri1\": \"https://pstn.joonto.com\",\n  \"TrunkUri2\": \"https://pstn2.joonto.com\",\n  \"TrunkEnabled1\": true,\n  \"TrunkEnabled2\": false,\n  \"Trunk1Priortiy\": 10,\n  \"Trunk1Weight\": 10,\n  \"Trunk2Priortiy\": 20,\n  \"Trunk2Weight\": 20,\n  \"HeaderManipulation\": \"HMI8802029\",\n  \"EnableSipRefer\": true,\n  \"TransferCallerId\": \"Transferee/Transferor\",\n  \"SymmetricRtp\": true,\n  \"EnableTrpSecureTrunk\": true,\n  \"EnablePstnTransfer\": true,\n  \"IpWhitelist\": [{\"IpAddress\": \"20.20.10.10\"}, {\"IpAddress\": \"20.20.10.20\"}],\n  \"CnamLookup\": true,\n  \"TerminationUriSubdomain\": \"client\",\n  \"EnableCallStreaming\": true,\n  \"WssUri\": \"wss://192.67.88.2\",\n  \"IntelligentRouteEnabled\": true,\n  \"RouteEnabled\": true,\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/voice/routes/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"CallRouteId\": \"CRID-509de94f-79cc-429b-a317-2102654dabbb\",\n    \"RouteName\": \"Main SIP Trunk\",\n    \"RouteType\": \"Trunk\",\n    \"VoiceUrl\": \"https://domain.com\",\n    \"VoiceUrlMethod\": \"GET\",\n    \"TrunkIp1\": \"20.87.87.87\",\n    \"TrunkPort1\": \"5061\",\n    \"RouteEnabled\": true,\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Voice Route",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "CallRouteId": "CRID-509de94f-79cc-429b-a317-2102654dabbb",
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "RouteName": "Main SIP Trunk",
                      "RouteType": "Trunk",
                      "VoiceUrl": "https://domain.com",
                      "VoiceUrlMethod": "GET",
                      "TrunkIp1": "20.87.87.87",
                      "TrunkIp2": "20.87.87.86",
                      "TrunkPort1": "5061",
                      "TrunkPort2": "5060",
                      "TrunkTransport1": "UDP",
                      "TrunkTransport2": "TCP",
                      "TrunkUri1": "https://pstn.joonto.com",
                      "TrunkUri2": "https://pstn2.joonto.com",
                      "TrunkEnabled1": true,
                      "TrunkEnabled2": false,
                      "Trunk1Priortiy": 10,
                      "Trunk1Weight": 10,
                      "Trunk2Priortiy": 20,
                      "Trunk2Weight": 20,
                      "HeaderManipulation": "HMI8802029",
                      "EnableSipRefer": true,
                      "TransferCallerId": "Transferee/Transferor",
                      "SymmetricRtp": true,
                      "EnableTrpSecureTrunk": true,
                      "EnablePstnTransfer": true,
                      "CnamLookup": true,
                      "TerminationUriSubdomain": "client",
                      "EnableCallStreaming": true,
                      "WssUri": "wss://192.67.88.2",
                      "IpWhiteList": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "CallRouteId"
                ],
                "properties": {
                  "CallRouteId": {
                    "type": "string",
                    "description": "Call Route ID to update (CRID) - Required",
                    "example": "CRID-509de94f-79cc-429b-a317-2102654dabbb"
                  },
                  "RouteName": {
                    "type": "string",
                    "description": "Friendly name for voice route",
                    "example": "Main SIP Trunk"
                  },
                  "RouteType": {
                    "type": "string",
                    "enum": [
                      "Trunk",
                      "URL",
                      "Forward"
                    ],
                    "description": "Type of voice routing",
                    "example": "Trunk"
                  },
                  "VoiceUrl": {
                    "type": "string",
                    "format": "uri",
                    "example": "https://domain.com"
                  },
                  "VoiceUrlMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "example": "GET"
                  },
                  "TrunkIp1": {
                    "type": "string",
                    "example": "20.87.87.87"
                  },
                  "TrunkIp2": {
                    "type": "string",
                    "example": "20.87.87.86"
                  },
                  "TrunkPort1": {
                    "type": "string",
                    "example": "5061"
                  },
                  "TrunkPort2": {
                    "type": "string",
                    "example": "5060"
                  },
                  "TrunkTransport1": {
                    "type": "string",
                    "enum": [
                      "UDP",
                      "TCP",
                      "TLS"
                    ],
                    "example": "UDP"
                  },
                  "TrunkTransport2": {
                    "type": "string",
                    "enum": [
                      "UDP",
                      "TCP",
                      "TLS"
                    ],
                    "example": "TCP"
                  },
                  "TrunkEnabled1": {
                    "type": "boolean",
                    "example": true
                  },
                  "TrunkEnabled2": {
                    "type": "boolean",
                    "example": false
                  },
                  "RouteEnabled": {
                    "type": "boolean",
                    "example": true
                  },
                  "VoiceAuthenticationType": {
                    "type": "string",
                    "enum": [
                      "Basic",
                      "Bearer"
                    ],
                    "description": "Authentication type for voice URL",
                    "example": "Basic"
                  },
                  "VoiceUsername": {
                    "type": "string",
                    "description": "Username for voice URL authentication",
                    "example": "admin"
                  },
                  "VoicePasswordToken": {
                    "type": "string",
                    "description": "Password or bearer token for voice URL authentication",
                    "example": "passwordORbearerToken"
                  },
                  "CallbackVoiceUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "Callback URL for voice events",
                    "example": "https://apiendpoint.com"
                  },
                  "CallbackVoiceUrlMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST"
                    ],
                    "description": "HTTP method for callback voice URL",
                    "example": "POST"
                  },
                  "TrunkUri1": {
                    "type": "string",
                    "format": "uri",
                    "description": "URI for primary SIP trunk",
                    "example": "https://pstn.joonto.com"
                  },
                  "TrunkUri2": {
                    "type": "string",
                    "format": "uri",
                    "description": "URI for secondary SIP trunk",
                    "example": "https://pstn2.joonto.com"
                  },
                  "Trunk1Priortiy": {
                    "type": "integer",
                    "description": "Priority for primary trunk (lower = higher priority)",
                    "example": 10
                  },
                  "Trunk1Weight": {
                    "type": "integer",
                    "description": "Weight for primary trunk load balancing",
                    "example": 10
                  },
                  "Trunk2Priortiy": {
                    "type": "integer",
                    "description": "Priority for secondary trunk (lower = higher priority)",
                    "example": 20
                  },
                  "Trunk2Weight": {
                    "type": "integer",
                    "description": "Weight for secondary trunk load balancing",
                    "example": 20
                  },
                  "HeaderManipulation": {
                    "type": "string",
                    "description": "Header manipulation rule identifier",
                    "example": "HMI8802029"
                  },
                  "EnableSipRefer": {
                    "type": "boolean",
                    "description": "Enable SIP REFER for call transfers",
                    "example": true
                  },
                  "TransferCallerId": {
                    "type": "string",
                    "enum": [
                      "Transferee",
                      "Transferor",
                      "Transferee/Transferor"
                    ],
                    "description": "Caller ID to use for transferred calls",
                    "example": "Transferee/Transferor"
                  },
                  "SymmetricRtp": {
                    "type": "boolean",
                    "description": "Enable symmetric RTP for NAT traversal",
                    "example": true
                  },
                  "EnableTrpSecureTrunk": {
                    "type": "boolean",
                    "description": "Enable TLS/SRTP for secure trunk communication",
                    "example": true
                  },
                  "EnablePstnTransfer": {
                    "type": "boolean",
                    "description": "Enable PSTN call transfers",
                    "example": true
                  },
                  "IpWhitelist": {
                    "type": "array",
                    "description": "List of whitelisted IP addresses",
                    "items": {
                      "type": "object",
                      "properties": {
                        "IpAddress": {
                          "type": "string",
                          "description": "IP address to whitelist",
                          "example": "20.20.10.10"
                        }
                      }
                    },
                    "example": [
                      {
                        "IpAddress": "20.20.10.10"
                      },
                      {
                        "IpAddress": "20.20.10.20"
                      }
                    ]
                  },
                  "CnamLookup": {
                    "type": "boolean",
                    "description": "Enable CNAM lookup for caller ID name",
                    "example": true
                  },
                  "TerminationUriSubdomain": {
                    "type": "string",
                    "description": "Subdomain for SIP termination URI",
                    "example": "client"
                  },
                  "EnableCallStreaming": {
                    "type": "boolean",
                    "description": "Enable real-time call audio streaming",
                    "example": true
                  },
                  "WssUri": {
                    "type": "string",
                    "format": "uri",
                    "description": "WebSocket Secure URI for call streaming",
                    "example": "wss://192.67.88.2"
                  },
                  "IntelligentRouteEnabled": {
                    "type": "boolean",
                    "description": "Enable intelligent routing features",
                    "example": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/account/voice/routes": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "List Voice Routes",
        "description": "Retrieve a list of all voice routes configured in your account. Returns basic information about each route including CRID, name, and routing configuration.\n\n**What this does:** Returns a list of voice routes (`CRID-` IDs) configured on the account. Use this to find an existing route ID before provisioning a number with voice enabled or updating call routing.\n\n**Next steps:**\n- Get full route details — `GET /v1.0/voice/routes`\n- Create a new route — `POST /v1.0/voice/routes`",
        "parameters": [
          {
            "name": "AccountId",
            "in": "query",
            "description": "string AccountId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns a list of all voice routes on the account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountID": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "TotalRoutes": 2,
                      "Results": [
                        {
                          "CallRouteStatus": "Active",
                          "CallRouteId": "CRID-993804Ar09099",
                          "AccountID": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                          "RouteName": "Main SIP Trunk",
                          "RouteType": "Trunk",
                          "VoiceUrlMethod": "POST",
                          "TrunkIp1": "20.87.87.87",
                          "TrunkIp2": "20.87.87.86",
                          "TrunkPort1": "5061",
                          "TrunkPort2": "5060",
                          "TrunkTransport1": "UDP",
                          "TrunkTransport2": "TCP",
                          "TrunkUri1": "https://pstn.joonto.com",
                          "TrunkUri2": "https://pstn2.joonto.com",
                          "TrunkEnabled1": true,
                          "TrunkEnabled2": false,
                          "Trunk1Priortiy": 10,
                          "Trunk1Weight": 10,
                          "Trunk2Priortiy": 20,
                          "Trunk2Weight": 20,
                          "HeaderManipulation": "HMI8802029",
                          "EnableSipRefer": true,
                          "TransferCallerId": "Transferee/Transferor",
                          "SymmetricRtp": true,
                          "EnableTrpSecureTrunk": true,
                          "EnablePstnTransfer": true,
                          "IpWhitelist": [
                            {
                              "IpAddress": "20.20.10.10"
                            },
                            {
                              "IpAddress": "20.20.10.20"
                            }
                          ],
                          "CnamLookup": true,
                          "TerminationUriSubdomain": "client",
                          "EnableCallStreaming": true,
                          "WssUri": "wss://192.67.88.2",
                          "RouteEnabled": true
                        },
                        {
                          "CallRouteStatus": "Active",
                          "CallRouteId": "CRID-993804Ar09093",
                          "AccountID": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                          "RouteName": "Main SIP Trunk Secondary",
                          "RouteType": "Trunk",
                          "VoiceUrlMethod": "POST",
                          "TrunkIp1": "20.87.87.87",
                          "TrunkIp2": "20.87.87.86",
                          "TrunkPort1": "5061",
                          "TrunkPort2": "5060",
                          "TrunkTransport1": "UDP",
                          "TrunkTransport2": "TCP",
                          "TrunkUri1": "https://pstn.joonto.com",
                          "TrunkUri2": "https://pstn2.joonto.com",
                          "TrunkEnabled1": true,
                          "TrunkEnabled2": false,
                          "Trunk1Priortiy": 10,
                          "Trunk1Weight": 10,
                          "Trunk2Priortiy": 20,
                          "Trunk2Weight": 20,
                          "HeaderManipulation": "HMI8802029",
                          "EnableSipRefer": true,
                          "TransferCallerId": "Transferee/Transferor",
                          "SymmetricRtp": true,
                          "EnableTrpSecureTrunk": true,
                          "EnablePstnTransfer": true,
                          "IpWhitelist": [
                            {
                              "IpAddress": "20.20.10.10"
                            },
                            {
                              "IpAddress": "20.20.10.20"
                            }
                          ],
                          "CnamLookup": true,
                          "TerminationUriSubdomain": "client",
                          "EnableCallStreaming": true,
                          "WssUri": "wss://192.67.88.2",
                          "RouteEnabled": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/voice/routes/delete": {
      "post": {
        "tags": [
          "Voice"
        ],
        "summary": "Delete Voice Route",
        "description": "Permanently delete a voice route from your account. Phone numbers using this route will need to be reassigned to a different route before deletion. This action cannot be undone.\n\n**What this does:** Returns a deletion confirmation. Numbers assigned to this route will lose voice routing — reassign them to a different route before deleting to avoid service disruption.\n\n**Next steps:**\n- Create a replacement route — `POST /v1.0/voice/routes`\n- Update affected numbers — `POST /v1.0/numbers/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"CallRouteId\": \"CRID-4dec6beb-3985-444b-8c06-8baa70dc1416\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/voice/routes/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"CallRouteId\": \"CRID-4dec6beb-3985-444b-8c06-8baa70dc1416\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete Voice Route",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "CallRouteStatus": "Deleted",
                      "CallRouteId": "CRID-4dec6beb-3985-444b-8c06-8baa70dc1416"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "CallRouteId"
                ],
                "properties": {
                  "CallRouteId": {
                    "type": "string",
                    "description": "Call Route ID to delete (CRID)",
                    "example": "CRID-4dec6beb-3985-444b-8c06-8baa70dc1416"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/account/services": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Services",
        "description": "Retrieve a list of all services available in your account. Use the optional Filter parameter to filter by service status (e.g., Active, Inactive).\n\n**What this does:** Returns a list of services available on the account. Services are the billable components that make up products and packages.\n\n**Next steps:**\n- Get service details — `GET /v1.0/services`\n- Create a service — `POST /v1.0/services`",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filter by status (e.g., Active, Inactive, All)"
          }
        ],
        "responses": {
          "200": {
            "description": "Get Services List",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "TotalServices": 1,
                      "Filter": "Active",
                      "Results": [
                        {
                          "ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
                          "ServiceName": "Caller Id",
                          "Cost": 2.34,
                          "Monthly": true,
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/account/services' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ]
      }
    },
    "/v1.0/account/products": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Products",
        "description": "Retrieve a list of all products available in your account. Use the optional Filter parameter to filter by product status (e.g., Active, All).\n\n**What this does:** Returns a list of products available on the account. Products define the base service capabilities that are bundled into packages.\n\n**Next steps:**\n- Get product details — `GET /v1.0/products`\n- Create a product — `POST /v1.0/products`",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filter by status (e.g., Active, Inactive, All)"
          }
        ],
        "responses": {
          "200": {
            "description": "Get Products List",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "TotalProducts": 1,
                      "Filter": "All",
                      "Results": [
                        {
                          "ProductId": "PRID-d9e74d70-3ca8-40f3-a415-e1194b0f8936",
                          "SKU": "eSim",
                          "Description": "Telegent eSim 1.0",
                          "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                          "DistributorId": null,
                          "Type": "Type 1.1",
                          "SubType": "1",
                          "Cost": 34.56,
                          "BillingFrequency": "1",
                          "Active": true
                        },
                        {
                          "ProductId": "PRID-93d4fb71-8574-42ee-abc6-4c54f8240743",
                          "SKU": "eSim Vince 2.0",
                          "Description": "Telegent eSim",
                          "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                          "DistributorId": null,
                          "Type": "esim",
                          "SubType": "0",
                          "Cost": 12.34,
                          "BillingFrequency": "1",
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/account/products' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ]
      }
    },
    "/v1.0/account/packages": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Packages",
        "description": "Retrieve a list of all packages available in your account. Use the optional Filter parameter to filter by package status (e.g., Active, Inactive).\n\n**What this does:** Returns a list of packages available on the account with their IDs, names, and pricing. Use this to look up a `PID-` before creating a subscription.\n\n**Next steps:**\n- Get package details — `GET /v1.0/packages`\n- Create a subscription — `POST /v1.0/subscriptions`",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filter by status (e.g., Active, Inactive, All)"
          }
        ],
        "responses": {
          "200": {
            "description": "Get Packages List",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "TotalPackages": 3,
                      "Filter": "Active",
                      "Results": [
                        {
                          "PackageId": "PID-203740d8-6b19-42c6-b22e-e45611d9cade",
                          "PackageName": "eSim 3",
                          "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                          "AggregatorId": "AGID-A49349FB-170E-44BF-B61E-DCC65A3FEA1A",
                          "SubscriberId": "456789",
                          "Type": "Type 2",
                          "Price": 34.56,
                          "Monthly": false,
                          "Active": true
                        },
                        {
                          "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                          "PackageName": "eSim 3",
                          "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                          "AggregatorId": "AGID-A49349FB-170E-44BF-B61E-DCC65A3FEA1A",
                          "SubscriberId": "12345",
                          "Type": "Type 1",
                          "Price": 12.34,
                          "Monthly": true,
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/account/packages' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ]
      }
    },
    "/v1.0/account/subscriptions": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Subscriptions",
        "description": "Retrieve a list of all subscriptions associated with your account. Use the optional Filter parameter to filter by subscription status (e.g., Active, Inactive).\n\n**What this does:** Returns a list of subscriptions on the account with their IDs, package associations, and status. Useful for auditing which subscribers have active plans.\n\n**Next steps:**\n- Get subscription details — `GET /v1.0/subscriptions`\n- Create a subscription — `POST /v1.0/subscriptions`",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filter by status (e.g., Active, Inactive, All)"
          }
        ],
        "responses": {
          "200": {
            "description": "Get Subscriptions List",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "TotalSubscriptions": 1,
                      "Filter": "Active",
                      "Results": [
                        {
                          "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                          "SubscriberId": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                          "TNID": "NID-B5B67F02-708A-1851-20DF-61FC1919C4F6",
                          "ICCID": "8901240397190002080",
                          "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                          "Type": "mvno",
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/account/subscriptions' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ]
      }
    },
    "/v1.0/account/workgroups": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Account's Workgroups",
        "description": "Retrieve all workgroups associated with the authenticated account. Returns a list of workgroups with their IDs, names, and configuration status.\n\n**What this does:** Returns a list of workgroups configured on the account including their IDs, names, types, and active status. Use this to look up a `WG-` ID before attaching it to a voice route or schedule.\n\n**Next steps:**\n- Get full workgroup details — `GET /v1.0/workgroups`\n- Create a workgroup — `POST /v1.0/workgroups`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/account/workgroups' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns a list of workgroups for the account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Workgroups": [
                        {
                          "WorkgroupId": "WG-abc123",
                          "Name": "Support Team",
                          "Type": "ring",
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/services": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get Service Details",
        "description": "Retrieve detailed information about a specific service by its ServiceId. Returns service name, cost, billing frequency, and status.\n\n**What this does:** Returns the service details including name, cost, billing frequency, and status. Use this to retrieve the `SID-` ID needed when adding service items or associating the service with products.\n\n**Next steps:**\n- View service items — `GET /v1.0/services/items`\n- Update service — `POST /v1.0/services/update`",
        "parameters": [
          {
            "name": "ServiceId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The unique service ID to retrieve details for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/services?ServiceId=SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Service-Details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
                      "ServiceName": "Caller Id",
                      "Cost": 2.34,
                      "Monthly": true,
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Create Service",
        "description": "Create a new service with a name, cost, and billing frequency. Services can be added to packages and assigned to subscribers.\n\n**What this does:** Returns the new service's `ServiceId` (`SID-`) and full record. Services are the billable unit; add pricing tiers using the service items endpoints, then associate the service with products.\n\n**Next steps:**\n- Add a pricing item — `POST /v1.0/services/items/add`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ServiceName\": \"Caller Id\",\n  \"Cost\": 1.23,\n  \"Monthly\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/services \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ServiceName\": \"Caller Id\",\n    \"Cost\": 1.23,\n    \"Monthly\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Create Service",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "success": {
                    "value": {
                      "ServiceId": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b",
                      "ServiceName": "Caller Id",
                      "Cost": 1.23,
                      "Monthly": true,
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ServiceName",
                  "Cost"
                ],
                "properties": {
                  "ServiceName": {
                    "type": "string",
                    "description": "Name of the service",
                    "example": "Caller Id"
                  },
                  "Cost": {
                    "type": "number",
                    "description": "Service cost",
                    "example": 1.23
                  },
                  "Monthly": {
                    "type": "boolean",
                    "description": "Monthly recurring charge",
                    "example": true
                  }
                }
              },
              "examples": {
                "createService": {
                  "summary": "Create a new service",
                  "value": {
                    "ServiceName": "Caller Id",
                    "Cost": 1.23,
                    "Monthly": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/services/update": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Update Service",
        "description": "Update an existing service's name, cost, or billing cycle. Changes take effect immediately and are reflected across all packages and subscriptions that include this service. Use the ServiceId returned when the service was created.\n\n**What this does:** Returns the updated service record. Only fields you send are changed; omitted fields retain their current values.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/services`\n- View service items — `GET /v1.0/services/items`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\",\n  \"ServiceName\": \"Caller Id\",\n  \"Cost\": 2.34,\n  \"Monthly\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/services/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\",\n    \"ServiceName\": \"Caller Id\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Service"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ServiceId"
                ],
                "properties": {
                  "ServiceId": {
                    "type": "string",
                    "description": "Service ID to update",
                    "example": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b"
                  },
                  "ServiceName": {
                    "type": "string",
                    "example": "Caller Id"
                  },
                  "Cost": {
                    "type": "number",
                    "example": 2.34
                  },
                  "Monthly": {
                    "type": "boolean",
                    "example": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/services/delete": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Delete Service",
        "description": "Permanently delete a service by its ServiceId. This action cannot be undone.\n\n**What this does:** Returns a deletion confirmation. Deleting a service removes it from the platform permanently — ensure it is not referenced in any active products or packages before deleting.\n\n**Next steps:**\n- View all services — `GET /v1.0/services`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/services/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ServiceId\": \"SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Service"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ServiceId"
                ],
                "properties": {
                  "ServiceId": {
                    "type": "string",
                    "description": "Service ID to delete",
                    "example": "SID-65d007be-8b49-45ac-b8ae-77b8d6a66c8b"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/services/items": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get Service Items",
        "description": "Retrieve the items (pricing tiers or components) associated with a specific service. Pass the ServiceId to get its configured items.\n\n**What this does:** Returns the list of pricing items for the service including price, billing frequency (monthly or one-time), and distributor/aggregator scope. Use this to audit or review the pricing tiers before modifying them.\n\n**Next steps:**\n- Add a pricing item — `POST /v1.0/services/items/add`\n- Update an item — `POST /v1.0/services/items/update`",
        "parameters": [
          {
            "name": "ServiceId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The service ID to retrieve items for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/services/items?ServiceId=SID-abc123' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the service items for the specified service",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ServiceId": "SID-abc123",
                      "Items": [
                        {
                          "Price": 9.99,
                          "Monthly": true,
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/services/items/add": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Add Service Item",
        "description": "Add a new pricing item or component to an existing service. Service items define the cost and billing frequency (monthly or one-time) for the service at a specific distributor or aggregator level.\n\n**What this does:** Returns a confirmation for the new item. Service items define the price and billing frequency for a service at a specific distributor or aggregator scope. Multiple items can exist on a single service for different pricing tiers.\n\n**Next steps:**\n- View all items on the service — `GET /v1.0/services/items`\n- Update an item — `POST /v1.0/services/items/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ServiceId\": \"SID-abc123\",\n  \"DistributorId\": \"DID-abc123\",\n  \"Price\": 9.99,\n  \"Monthly\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/services/items/add \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ServiceId\": \"SID-abc123\",\n    \"DistributorId\": \"DID-abc123\",\n    \"Price\": 9.99,\n    \"Monthly\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the created service item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ServiceId": "SID-abc123",
                      "Price": 9.99,
                      "Monthly": true,
                      "Successful": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ServiceId"
                ],
                "properties": {
                  "ServiceId": {
                    "type": "string",
                    "description": "The service ID to add the item to",
                    "example": "SID-abc123"
                  },
                  "AggregatorId": {
                    "type": "string",
                    "description": "Optional aggregator ID",
                    "example": "AGG-abc123"
                  },
                  "DistributorId": {
                    "type": "string",
                    "description": "Optional distributor ID",
                    "example": "DID-abc123"
                  },
                  "Price": {
                    "type": "number",
                    "description": "The price for this service item",
                    "example": 9.99
                  },
                  "Monthly": {
                    "type": "boolean",
                    "description": "Whether this is a monthly recurring charge (true) or one-time (false)",
                    "example": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/services/items/update": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Update Service Item",
        "description": "Update an existing service item's pricing or billing configuration.\n\n**What this does:** Returns the updated service item record. Only the fields you send are changed. Pricing changes apply at the next billing cycle for active subscriptions using this service.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/services/items`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ServiceId\": \"SID-abc123\",\n  \"Price\": 14.99,\n  \"Monthly\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/services/items/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ServiceId\": \"SID-abc123\",\n    \"Price\": 14.99,\n    \"Monthly\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the updated service item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Price": 14.99,
                      "Monthly": true,
                      "Successful": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ServiceId"
                ],
                "properties": {
                  "ServiceId": {
                    "type": "string",
                    "description": "The service ID this item belongs to",
                    "example": "SID-abc123"
                  },
                  "AggregatorId": {
                    "type": "string",
                    "description": "Optional aggregator ID",
                    "example": "AGG-abc123"
                  },
                  "DistributorId": {
                    "type": "string",
                    "description": "Optional distributor ID",
                    "example": "DID-abc123"
                  },
                  "Price": {
                    "type": "number",
                    "description": "The new price for this service item",
                    "example": 14.99
                  },
                  "Monthly": {
                    "type": "boolean",
                    "description": "Whether this is a monthly recurring charge (true) or one-time (false)",
                    "example": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/services/items/delete": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Delete Service Item",
        "description": "Remove a service item from a service.\n\n**What this does:** Returns a deletion confirmation. Removes the pricing tier from the service. Ensure no active subscriptions depend on this item before deleting.\n\n**Next steps:**\n- View remaining items — `GET /v1.0/services/items`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ServiceId\": \"SID-abc123\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/services/items/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ServiceId\": \"SID-abc123\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns deletion confirmation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Successful": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ServiceId"
                ],
                "properties": {
                  "ServiceId": {
                    "type": "string",
                    "description": "The service ID this item belongs to",
                    "example": "SID-abc123"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/sims/clear-status": {
      "post": {
        "tags": [
          "Sims"
        ],
        "summary": "Clear SIM Status",
        "description": "Reset a SIM card's status to Empty, effectively unassigning it from any active number or subscriber. Useful when decommissioning a SIM before reassigning it.\n\n**What this does:** Returns the ICCID with a status of `Empty` and a success confirmation. After clearing, the SIM is unassigned and ready to be re-provisioned or reassigned to a different number.\n\n**Next steps:**\n- Re-provision the SIM — `POST /v1.0/numbers/provision`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ICCID\": \"8901240397190195850\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/sims/clear-status \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ICCID\": \"8901240397190195850\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the SIM with Empty status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ICCID": "8901240397190195850",
                      "SimStatus": "Empty",
                      "Successful": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ICCID"
                ],
                "properties": {
                  "ICCID": {
                    "type": "string",
                    "description": "The ICCID of the SIM card to clear",
                    "example": "8901240397190195850"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/products": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Product Details",
        "description": "Retrieve detailed information about a specific product by its ProductId. Returns SKU, description, type, cost, and billing frequency.\n\n**What this does:** Returns the product details including SKU, description, type, cost, and billing frequency. Use this to retrieve the `PRID-` ID needed when adding products to packages.\n\n**Next steps:**\n- Add this product to a package — `POST /v1.0/packages/items/add`\n- Update product — `POST /v1.0/products/update`",
        "parameters": [
          {
            "name": "ProductId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The unique product ID to retrieve details for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/products?ProductId=PRID-d9e74d70-3ca8-40f3-a415' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Product Details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ProductId": "PRID-4384E69B-3194-9943-F839-20E477C8E399",
                      "SKU": "VAS035",
                      "Description": "Fraud Detection + Blocking",
                      "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "DistributorId": null,
                      "Type": "VAS",
                      "SubType": "AI Operator",
                      "Cost": 1.0,
                      "BillingFrequency": "MRC",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Create Product",
        "description": "Create a new product with SKU, description, type, cost, and billing frequency. Products can be bundled into packages for subscriber offerings.\n\n**What this does:** Returns the new product's `ProductId` (`PRID-`) and full record. Once created, add it to packages using the package items endpoints.\n\n**Next steps:**\n- Add the product to a package — `POST /v1.0/packages/items/add`\n- Create a service — `POST /v1.0/services`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SKU\": \"eSim\",\n  \"Description\": \"Telegent eSim\",\n  \"Type\": \"esim\",\n  \"SubType\": \"esim\",\n  \"Cost\": 12.34,\n  \"BillingFrequency\": \"MRC\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/products \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SKU\": \"eSim\",\n    \"Description\": \"Telegent eSim\",\n    \"Type\": \"esim\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Create Product",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ProductId": "PRID-4384E69B-3194-9943-F839-20E477C8E399",
                      "SKU": "VAS035",
                      "Description": "Fraud Detection + Blocking",
                      "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "DistributorId": null,
                      "Type": "VAS",
                      "SubType": "AI Operator",
                      "Cost": 1.0,
                      "BillingFrequency": "MRC",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SKU",
                  "Description",
                  "Type",
                  "Cost",
                  "BillingFrequency"
                ],
                "properties": {
                  "SKU": {
                    "type": "string",
                    "description": "Product SKU",
                    "example": "eSim"
                  },
                  "Description": {
                    "type": "string",
                    "description": "Product description",
                    "example": "Telegent eSim"
                  },
                  "Type": {
                    "type": "string",
                    "description": "Product type (e.g., esim, vas)",
                    "example": "esim"
                  },
                  "SubType": {
                    "type": "string",
                    "description": "Product sub-type",
                    "example": "esim"
                  },
                  "Cost": {
                    "type": "number",
                    "description": "Product cost",
                    "example": 12.34
                  },
                  "BillingFrequency": {
                    "type": "string",
                    "enum": [
                      "MRC",
                      "NRC"
                    ],
                    "description": "Billing frequency (MRC=Monthly, NRC=Non-recurring)",
                    "example": "MRC"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/products/update": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Update Product",
        "description": "Update an existing product's SKU, description, type, cost, or billing cycle. Changes apply immediately and are reflected across all packages that include this product. Use the ProductId (PID-) returned when the product was created.\n\n**What this does:** Returns the updated product record. Only fields you send are changed. Changes affect all packages that include this product at their next billing cycle.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/products`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ProductId\": \"PRID-d9e74d70-3ca8-40f3-a415\",\n  \"SKU\": \"eSim\",\n  \"Description\": \"Telegent eSim\",\n  \"Type\": \"esim\",\n  \"SubType\": \"esim\",\n  \"Cost\": 12.34,\n  \"BillingFrequency\": \"MRC\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/products/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ProductId\": \"PRID-d9e74d70-3ca8-40f3-a415\",\n    \"SKU\": \"eSim\",\n    \"Description\": \"Telegent eSim\",\n    \"Type\": \"esim\",\n    \"SubType\": \"esim\",\n    \"Cost\": 12.34,\n    \"BillingFrequency\": \"MRC\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Product",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ProductId": "PRID-d9e74d70-3ca8-40f3-a415",
                      "SKU": "eSim",
                      "Description": "Telegent eSim",
                      "Type": "esim",
                      "SubType": "esim",
                      "Cost": 12.34,
                      "BillingFrequency": "MRC"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ProductId"
                ],
                "properties": {
                  "ProductId": {
                    "type": "string",
                    "description": "Product ID to update",
                    "example": "PRID-d9e74d70-3ca8-40f3-a415"
                  },
                  "SKU": {
                    "type": "string",
                    "example": "eSim"
                  },
                  "Description": {
                    "type": "string",
                    "example": "Telegent eSim"
                  },
                  "Type": {
                    "type": "string",
                    "example": "esim"
                  },
                  "SubType": {
                    "type": "string",
                    "example": "esim"
                  },
                  "Cost": {
                    "type": "number",
                    "example": 12.34
                  },
                  "BillingFrequency": {
                    "type": "string",
                    "enum": [
                      "MRC",
                      "NRC"
                    ],
                    "example": "MRC"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/products/delete": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Delete Product",
        "description": "Permanently delete a product by its ProductId. This action cannot be undone.\n\n**What this does:** Returns a deletion confirmation. Products included in active packages cannot be deleted — remove them from all packages first.\n\n**Next steps:**\n- Remove from a package — `POST /v1.0/packages/items/delete`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ProductId\": \"PRID-d9e74d70-3ca8-40f3-a415-e1194b0f8936\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/products/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ProductId\": \"PRID-d9e74d70-3ca8-40f3-a415-e1194b0f8936\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete Product",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ProductId": "PRID-d9e74d70-3ca8-40f3-a415-e1194b0f8936",
                      "ProductStatus": "Deleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ProductId"
                ],
                "properties": {
                  "ProductId": {
                    "type": "string",
                    "description": "Product ID to delete",
                    "example": "PRID-d9e74d70-3ca8-40f3-a415-e1194b0f8936"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/packages": {
      "get": {
        "tags": [
          "Packages"
        ],
        "summary": "Get Package Details",
        "description": "Retrieve detailed information about a specific package by its PackageId. Returns package name, type, price, billing frequency, and associated distributor information.\n\n**What this does:** Returns the package details including name, description, price, billing frequency, type, and status. Use this to retrieve the `PID-` needed when creating subscriptions or to audit package configuration.\n\n**Next steps:**\n- Create a subscription using this package — `POST /v1.0/subscriptions`\n- View items in the package — `GET /v1.0/packages/items`",
        "parameters": [
          {
            "name": "PackageId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The unique package ID to retrieve details for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/packages?PackageId=PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Package Details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PackageId": "PID-203740d8-6b19-42c6-b22e-e45611d9cade",
                      "PackageName": "eSim 3",
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "AggregatorId": "AGID-A49349FB-170E-44BF-B61E-DCC65A3FEA1A",
                      "SubscriberId": "456789",
                      "Type": "Type 2",
                      "Price": 34.56,
                      "Monthly": false,
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Packages"
        ],
        "summary": "Create Package",
        "description": "Create a new package with name, description, type, price, and billing frequency. Packages bundle products together for subscriber offerings.\n\n**What this does:** Returns the new package's `PackageId` (`PID-`) and full record. Store the `PID-` — it is required when creating subscriptions. Add products to the package using the items endpoints.\n\n**Next steps:**\n- Add items to the package — `POST /v1.0/packages/items/add`\n- Create a subscription — `POST /v1.0/subscriptions`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PackageName\": \"Package 10\",\n  \"Description\": \"Package 10 Description\",\n  \"SubscriberId\": \"TSUID-A2AD6FB7-2D53-40CE-96E4-EBB7F7C54509\",\n  \"Type\": \"sip\",\n  \"Price\": 300.0,\n  \"Monthly\": true,\n  \"PackageItems\": [\n    {\n      \"ProductId\": \"PRID-d869bdbf-895e-44fe-986b-1fabce90b994\",\n      \"Price\": \"1.12\",\n      \"Monthly\": false,\n      \"Type\": \"Type 3\"\n    },\n    {\n      \"ProductId\": \"PRID-d869bdbf-895e-44fe-986b-1fabce90b994\",\n      \"Price\": \"1.12\",\n      \"Monthly\": false,\n      \"Type\": \"Type 3\"\n    },\n    {\n      \"ProductId\": \"PRID-d869bdbf-895e-44fe-986b-1fabce90b994\",\n      \"Price\": \"1.12\",\n      \"Monthly\": false,\n      \"Type\": \"Type 3\"\n    }\n  ]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/packages \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PackageName\": \"Package 10\",\n    \"Description\": \"Package 10 Description\",\n    \"SubscriberId\": \"TSUID-A2AD6FB7-2D53-40CE-96E4-EBB7F7C54509\",\n    \"Type\": \"sip\",\n    \"Price\": 300.0,\n    \"Monthly\": true,\n    \"PackageItems\": [{\"ProductId\": \"PRID-d869bdbf-895e-44fe-986b-1fabce90b994\", \"Price\": \"1.12\", \"Monthly\": false, \"Type\": \"Type 3\"}]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Create Package",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PackageId": "PID-23bf4d8d-14bf-431b-88a4-9a214a87b58a",
                      "PackageName": "Package 4",
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "AggregatorId": "AGID-A49349FB-170E-44BF-B61E-DCC65A3FEA1A",
                      "SubscriberId": "TSUID-A2AD6FB7-2D53-40CE-96E4-EBB7F7C54509",
                      "Type": "sip",
                      "Price": 100.0,
                      "Monthly": true,
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PackageName",
                  "Type",
                  "Price",
                  "Monthly"
                ],
                "properties": {
                  "PackageName": {
                    "type": "string",
                    "description": "Package name",
                    "example": "Package 10"
                  },
                  "Description": {
                    "type": "string",
                    "description": "Package description",
                    "example": "Package 10 Description"
                  },
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-A2AD6FB7-2D53-40CE-96E4-EBB7F7C54509"
                  },
                  "Type": {
                    "type": "string",
                    "description": "Package type (e.g., sip, esim)",
                    "example": "sip"
                  },
                  "Price": {
                    "type": "number",
                    "description": "Package price",
                    "example": 300.0
                  },
                  "Monthly": {
                    "type": "boolean",
                    "description": "Monthly recurring charge",
                    "example": true
                  },
                  "PackageItems": {
                    "type": "array",
                    "description": "List of products in package",
                    "items": {
                      "type": "object",
                      "properties": {
                        "ProductId": {
                          "type": "string",
                          "example": "PID-d869bdbf-895e-44fe-986b-1fabce90b994"
                        },
                        "Price": {
                          "type": "string",
                          "example": "1.12"
                        },
                        "Monthly": {
                          "type": "boolean",
                          "example": false
                        },
                        "Type": {
                          "type": "string",
                          "example": "Type 3"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/packages/subscriptions": {
      "get": {
        "tags": [
          "Packages"
        ],
        "summary": "Get Package Subscriptions",
        "description": "Retrieve all subscriptions associated with a specific package. Returns subscriber details and subscription status for each subscription linked to the package.\n\n**What this does:** Returns a list of all active and inactive subscriptions for the package, including subscriber IDs and status. Use this before deleting a package to confirm there are no active subscriptions that would be affected.\n\n**Next steps:**\n- Delete a subscription — `POST /v1.0/subscriptions/delete`\n- Get subscription details — `GET /v1.0/subscriptions`",
        "parameters": [
          {
            "name": "PackageId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The package ID to retrieve subscriptions for"
          }
        ],
        "responses": {
          "200": {
            "description": "Package Subscriptions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                      "PackageName": "eSim 3",
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "AggregatorId": "AGID-A49349FB-170E-44BF-B61E-DCC65A3FEA1A",
                      "SubscriberId": "12345",
                      "Type": "Type 1",
                      "Price": 12.34,
                      "Monthly": true,
                      "Active": true,
                      "Subscriptions": [
                        {
                          "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                          "SubscriberId": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                          "TNID": "NID-B5B67F02-708A-1851-20DF-61FC1919C4F6",
                          "ICCID": "8901240397190002080",
                          "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                          "Type": "mvno",
                          "Active": false
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/packages/subscriptions?PackageId=PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ]
      }
    },
    "/v1.0/packages/update": {
      "post": {
        "tags": [
          "Packages"
        ],
        "summary": "Update Package",
        "description": "Update an existing package's name, description, type, price, or billing cycle. Changes apply immediately and affect all active subscriptions tied to this package. Use the PackageId (PID-) returned when the package was created.\n\n**What this does:** Returns the updated package record. Changes apply to the package definition immediately but do not retroactively change active subscriptions.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/packages`\n- View package subscriptions — `GET /v1.0/packages/subscriptions`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PackageId\": \"PID-a56cf783-c249-42fa-bf52-529e5886cdd4\",\n  \"PackageName\": \"Package 10\",\n  \"Description\": \"Package 10 Description\",\n  \"SubscriberId\": \"TSUID-A2AD6FB7-2D53-40CE-96E4-EBB7F7C54509\",\n  \"Type\": \"sip\",\n  \"Price\": 300.0,\n  \"Monthly\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/packages/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PackageId\": \"PID-a56cf783-c249-42fa-bf52-529e5886cdd4\",\n    \"PackageName\": \"Package 10\",\n    \"Description\": \"Package 10 Description\",\n    \"SubscriberId\": \"TSUID-A2AD6FB7-2D53-40CE-96E4-EBB7F7C54509\",\n    \"Type\": \"sip\",\n    \"Price\": 300.0,\n    \"Monthly\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Package",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PackageId": "PID-a56cf783-c249-42fa-bf52-529e5886cdd4",
                      "PackageName": "Package 5 Updated",
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "AggregatorId": "AGID-A49349FB-170E-44BF-B61E-DCC65A3FEA1A",
                      "SubscriberId": "TSUID-A2AD6FB7-2D53-40CE-96E4-EBB7F7C54509",
                      "Type": "sip",
                      "Price": 250,
                      "Monthly": false,
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PackageId"
                ],
                "properties": {
                  "PackageId": {
                    "type": "string",
                    "description": "Package ID to update",
                    "example": "PID-a56cf783-c249-42fa-bf52-529e5886cdd4"
                  },
                  "PackageName": {
                    "type": "string",
                    "example": "Package 10"
                  },
                  "Description": {
                    "type": "string",
                    "example": "Package 10 Description"
                  },
                  "SubscriberId": {
                    "type": "string",
                    "example": "SID-A2AD6FB7-2D53-40CE-96E4-EBB7F7C54509"
                  },
                  "Type": {
                    "type": "string",
                    "example": "sip"
                  },
                  "Price": {
                    "type": "number",
                    "example": 300.0
                  },
                  "Monthly": {
                    "type": "boolean",
                    "example": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/packages/delete": {
      "post": {
        "tags": [
          "Packages"
        ],
        "summary": "Delete Package",
        "description": "Permanently delete a package by its PackageId. This action cannot be undone.\n\n**What this does:** Returns a deletion confirmation. Packages with active subscriptions cannot be deleted — cancel all subscriptions first.\n\n**Next steps:**\n- View current subscriptions — `GET /v1.0/packages/subscriptions`\n- Delete individual subscriptions — `POST /v1.0/subscriptions/delete`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PackageId\": \"PID-a56cf783-c249-42fa-bf52-529e5886cdd4\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/packages/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PackageId\": \"PID-a56cf783-c249-42fa-bf52-529e5886cdd4\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete Package",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PackageId": "PID-a56cf783-c249-42fa-bf52-529e5886cdd4",
                      "PackageStatus": "Deleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PackageId"
                ],
                "properties": {
                  "PackageId": {
                    "type": "string",
                    "description": "Package ID to delete",
                    "example": "PID-a56cf783-c249-42fa-bf52-529e5886cdd4"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/packages/items": {
      "get": {
        "tags": [
          "Packages"
        ],
        "summary": "Get Package Items",
        "description": "Retrieve all items (products) included in a specific package. Returns product details, pricing, and billing information for each item in the package.\n\n**What this does:** Returns a list of products included in the package with their prices and billing frequency. Use this to audit what services a subscriber will receive when assigned this package.\n\n**Next steps:**\n- Add a product to the package — `POST /v1.0/packages/items/add`\n- Remove an item — `POST /v1.0/packages/items/delete`",
        "parameters": [
          {
            "name": "PackageId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The package ID to retrieve items for"
          }
        ],
        "responses": {
          "200": {
            "description": "Get Package Items",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": [
                      {
                        "PackageItemId": "PIID-4efee842-16f0-4803-9780-8c3c30d19b74",
                        "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                        "ProductId": "PRID-9E4F3852-5405-E9FC-2FDF-7A0530B7D862",
                        "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                        "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                        "Type": "Type 3",
                        "Price": 1.12,
                        "Monthly": false,
                        "Active": true
                      },
                      {
                        "PackageItemId": "PIID-06ed24ae-a406-4788-97f7-531ab34ea0aa",
                        "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                        "ProductId": "PRID-9E4F3852-5405-E9FC-2FDF-7A0530B7D862",
                        "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                        "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                        "Type": "Type 4",
                        "Price": 1.12,
                        "Monthly": false,
                        "Active": true
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/packages/items?PackageId=PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ]
      }
    },
    "/v1.0/packages/items/add": {
      "post": {
        "tags": [
          "Packages"
        ],
        "summary": "Add Package Item",
        "description": "Add a product to an existing package. Specify the package, product, price, and billing frequency for the item.\n\n**What this does:** Returns the new package item ID and confirmation. Adding an item to a package makes that product available to all subscribers with an active subscription to this package.\n\n**Next steps:**\n- View all items in the package — `GET /v1.0/packages/items`\n- Remove an item — `POST /v1.0/packages/items/delete`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PackageId\": \"PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db\",\n  \"ProductId\": \"PRID-d9e74d70-3ca8-40f3-a415\",\n  \"Price\": \"1.12\",\n  \"Monthly\": false,\n  \"Type\": \"Type 3\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/packages/items/add \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PackageId\": \"PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db\",\n    \"ProductId\": \"PRID-d9e74d70-3ca8-40f3-a415\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Add Package Item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PackageItemId": "PIID-4efee842-16f0-4803-9780-8c3c30d19b74",
                      "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                      "Type": "Type 3",
                      "Price": 1.12,
                      "Monthly": false,
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PackageId",
                  "ProductId"
                ],
                "properties": {
                  "PackageId": {
                    "type": "string",
                    "description": "Package ID",
                    "example": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db"
                  },
                  "ProductId": {
                    "type": "string",
                    "description": "Product ID to add to the package",
                    "example": "PRID-d9e74d70-3ca8-40f3-a415"
                  },
                  "Price": {
                    "type": "string",
                    "description": "Item price",
                    "example": "1.12"
                  },
                  "Monthly": {
                    "type": "boolean",
                    "description": "Monthly recurring",
                    "example": false
                  },
                  "Type": {
                    "type": "string",
                    "description": "Item type",
                    "example": "Type 3"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/packages/items/update": {
      "post": {
        "tags": [
          "Packages"
        ],
        "summary": "Update Package Item",
        "description": "Update an existing item within a package. Modify price, type, or billing frequency for the package item.\n\n**What this does:** Returns the updated package item record. Use this to adjust pricing or billing frequency for a product within a specific package without affecting the product definition itself.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/packages/items`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PackageId\": \"PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db\",\n  \"PackageItemId\": \"PIID-a102d17b-09a9-4096-a597-e48c055d8d6d\",\n  \"Price\": \"1.12\",\n  \"Monthly\": false,\n  \"Type\": \"mvno\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/packages/items/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PackageId\": \"PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db\",\n    \"PackageItemId\": \"PIID-a102d17b-09a9-4096-a597-e48c055d8d6d\",\n    \"Price\": \"1.12\",\n    \"Monthly\": false,\n    \"Type\": \"mvno\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Package Item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PackageItemId": "PIID-4efee842-16f0-4803-9780-8c3c30d19b74",
                      "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                      "ProductId": "PRID-9E4F3852-5405-E9FC-2FDF-7A0530B7D862",
                      "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "Type": "Type 3",
                      "Price": 1.12,
                      "Monthly": false,
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PackageId",
                  "PackageItemId"
                ],
                "properties": {
                  "PackageId": {
                    "type": "string",
                    "description": "Package ID",
                    "example": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db"
                  },
                  "PackageItemId": {
                    "type": "string",
                    "description": "Package Item ID to update",
                    "example": "PIID-a102d17b-09a9-4096-a597-e48c055d8d6d"
                  },
                  "Price": {
                    "type": "string",
                    "example": "1.12"
                  },
                  "Monthly": {
                    "type": "boolean",
                    "example": false
                  },
                  "Type": {
                    "type": "string",
                    "example": "mvno"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/packages/items/delete": {
      "post": {
        "tags": [
          "Packages"
        ],
        "summary": "Delete Package Item",
        "description": "Remove an item from a package. This removes the product association from the package but does not delete the product itself.\n\n**What this does:** Returns a deletion confirmation. Removing an item from a package removes that product from the package's service bundle. Active subscriptions to this package lose access to the product going forward.\n\n**Next steps:**\n- View remaining items — `GET /v1.0/packages/items`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PackageId\": \"PID-d869bdbf-895e-44fe-986b-1fabce90b994\",\n  \"PackageItemId\": \"PIID-eee3dd72-03ce-40f0-a80d-5bcadedda1d9\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/packages/items/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PackageId\": \"PID-d869bdbf-895e-44fe-986b-1fabce90b994\",\n    \"PackageItemId\": \"PIID-eee3dd72-03ce-40f0-a80d-5bcadedda1d9\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete Package Item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PackageItemId": "PIID-eee3dd72-03ce-40f0-a80d-5bcadedda1d9",
                      "PackageId": "PID-d869bdbf-895e-44fe-986b-1fabce90b994",
                      "PackageItemStatus": "Deleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PackageId",
                  "PackageItemId"
                ],
                "properties": {
                  "PackageId": {
                    "type": "string",
                    "description": "Package ID",
                    "example": "PID-d869bdbf-895e-44fe-986b-1fabce90b994"
                  },
                  "PackageItemId": {
                    "type": "string",
                    "description": "Package Item ID to delete",
                    "example": "PIID-eee3dd72-03ce-40f0-a80d-5bcadedda1d9"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscriptions": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get Subscription Details",
        "description": "Retrieve detailed information about a specific subscription by its SubscriptionId. Returns subscriber, package, phone number, and status information.\n\n**What this does:** Returns the subscription record including the linked subscriber (`TSUID-`), package (`PID-`), phone number (`NID-`), ICCID, subscription type, and active status. Use this to confirm a subscriber's current plan or retrieve the `SUB-` ID for updates.\n\n**Next steps:**\n- Update subscription — `POST /v1.0/subscriptions/update`\n- Delete subscription — `POST /v1.0/subscriptions/delete`",
        "parameters": [
          {
            "name": "SubscriptionId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The unique subscription ID to retrieve details for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscriptions?SubscriptionId=SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Subscription Details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                      "SubscriberId": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                      "TNID": "NID-B5B67F02-708A-1851-20DF-61FC1919C4F6",
                      "ICCID": "8901240397190002080",
                      "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                      "Type": "mvno",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-internal": true
      },
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Create Subscription",
        "description": "**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Required:** Package ID (PID) — `POST /v1.0/packages`\n- **Required:** Subscriber ID (TSUID) — `POST /v1.0/subscribers/create`\n\n---\n\nLink a subscriber to a package to grant them access to a set of services. A subscription ties together a subscriber (TSUID), a package (PID), a phone number (TNID), and a SIM card (ICCID) — all four are required. The subscriber, package, and phone number must all exist before creating the subscription. Active subscriptions determine what services and capabilities are available to the subscriber.\n\n**What this does:** Returns the new `SubscriptionId` (`SUB-`) and full subscription record. Creating a subscription links the subscriber to a package, granting them the services and capabilities defined in that package.\n\n**Next steps:**\n- Confirm the subscription — `GET /v1.0/subscriptions`\n- View the package contents — `GET /v1.0/packages/items`",
        "parameters": [
          {
            "name": "SubscriptionId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": ""
          }
        ],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"SID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d\",\n  \"TNID\": \"NID-B5B67F02-708A-1851-20DF-61FC1919C4F6\",\n  \"ICCID\": \"8901240397190002080\",\n  \"PackageId\": \"PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db\",\n  \"Type\": \"mvno\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscriptions \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"SID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d\",\n    \"TNID\": \"NID-B5B67F02-708A-1851-20DF-61FC1919C4F6\",\n    \"ICCID\": \"8901240397190002080\",\n    \"PackageId\": \"PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db\",\n    \"Type\": \"mvno\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the new Subscription ID (SUB-) and associated details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                      "SubscriberId": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                      "TNID": "NID-B5B67F02-708A-1851-20DF-61FC1919C4F6",
                      "ICCID": "8901240397190002080",
                      "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                      "Type": "mvno",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "TNID",
                  "ICCID",
                  "PackageId",
                  "Type"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d"
                  },
                  "TNID": {
                    "type": "string",
                    "description": "Telephone Number ID. Required.",
                    "example": "NID-B5B67F02-708A-1851-20DF-61FC1919C4F6"
                  },
                  "ICCID": {
                    "type": "string",
                    "description": "SIM Card ICCID. Required.",
                    "example": "8901240397190002080"
                  },
                  "PackageId": {
                    "type": "string",
                    "description": "Package ID to subscribe to",
                    "example": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db"
                  },
                  "Type": {
                    "type": "string",
                    "description": "Subscription type",
                    "example": "mvno"
                  }
                }
              }
            }
          }
        },
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/update": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Update Subscription",
        "description": "Update an existing subscription's information including subscriber, package, phone number, or SIM card associations.\n\n**What this does:** Returns the updated subscription record. Only fields you send are changed; omitted fields retain their current values. Use this to swap a subscriber's package or update the associated phone number.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/subscriptions`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriptionId\": \"SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c\",\n  \"SubscriberId\": \"SID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d\",\n  \"TNID\": \"NID-B5B67F02-708A-1851-20DF-61FC1919C4F6\",\n  \"ICCID\": \"8901240397190002080\",\n  \"PackageId\": \"PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db\",\n  \"Type\": \"mvno\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscriptions/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriptionId\": \"SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c\",\n    \"SubscriberId\": \"SID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d\",\n    \"TNID\": \"NID-B5B67F02-708A-1851-20DF-61FC1919C4F6\",\n    \"ICCID\": \"8901240397190002080\",\n    \"PackageId\": \"PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db\",\n    \"Type\": \"mvno\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Update Subscription",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                      "SubscriberId": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                      "TNID": "NID-B5B67F02-708A-1851-20DF-61FC1919C4F6",
                      "ICCID": "8901240397190002080",
                      "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                      "Type": "mvno",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriptionId"
                ],
                "properties": {
                  "SubscriptionId": {
                    "type": "string",
                    "description": "Subscription ID to update",
                    "example": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c"
                  },
                  "SubscriberId": {
                    "type": "string",
                    "example": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d"
                  },
                  "TNID": {
                    "type": "string",
                    "example": "NID-B5B67F02-708A-1851-20DF-61FC1919C4F6"
                  },
                  "ICCID": {
                    "type": "string",
                    "example": "8901240397190002080"
                  },
                  "PackageId": {
                    "type": "string",
                    "example": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db"
                  },
                  "Type": {
                    "type": "string",
                    "example": "mvno"
                  }
                }
              }
            }
          }
        },
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/delete": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Delete Subscription",
        "description": "Permanently delete a subscription by its SubscriptionId. This removes the subscriber's access to the associated package.\n\n**What this does:** Returns a deletion confirmation. Deleting a subscription removes the subscriber's access to the associated package and its services. The subscriber and phone number are not deleted.\n\n**Next steps:**\n- Create a new subscription — `POST /v1.0/subscriptions`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriptionId\": \"SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscriptions/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriptionId\": \"SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete Subscription",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                      "SubscriptionStatus": "Deleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriptionId"
                ],
                "properties": {
                  "SubscriptionId": {
                    "type": "string",
                    "description": "Subscription ID to delete",
                    "example": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c"
                  }
                }
              }
            }
          }
        },
        "x-internal": true
      }
    },
    "/v1.0/distributor/accounts": {
      "get": {
        "tags": [
          "Distributors"
        ],
        "summary": "Get Accounts",
        "description": "Retrieve a list of all accounts associated with the distributor. Returns account information including name, total subscribers, and address details.\n\n**What this does:** Returns a list of all accounts under this distributor including their `AID-` IDs, names, and status. Use this to enumerate accounts before making account-specific calls.\n\n**Next steps:**\n- Get account details — `GET /v1.0/account`\n- Create an account — `POST /v1.0/account/create`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET https://api.telegent.com/v1.0/distributor/accounts \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Accounts Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "AccountName": "Telegent Account",
                      "TotalSubscribers": 16,
                      "BillingAddress": {
                        "Street1": null,
                        "Street2": "NULL",
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      },
                      "MailingAddress": {
                        "Street1": null,
                        "Street2": null,
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/distributor/subscribers": {
      "get": {
        "tags": [
          "Distributors"
        ],
        "summary": "Get Subscribers",
        "description": "Retrieve a paginated list of all subscribers under the distributor. Returns subscriber details including ID, name, email, phone numbers, role, and associated account information.\n\n**What this does:** Returns a paginated list of all subscribers across all accounts under the distributor. Use `PageNumber` and `TotalPerPage` to page through large result sets. Each record includes the subscriber's `TSUID-` and account association.\n\n**Next steps:**\n- Get individual subscriber details — `GET /v1.0/subscribers/get`",
        "parameters": [
          {
            "name": "PageNumber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "description": "Page number for pagination"
          },
          {
            "name": "TotalPerPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 10
            },
            "description": "Number of subscribers per page"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/distributor/subscribers?PageNumber=1&TotalPerPage=10' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Subscribers Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PageNumber": 1,
                      "TotalSubscribers": 75,
                      "Subscribers": [
                        {
                          "SubscriberId": "TSUID-3dd3c8a9-632e-4415-b790-563444ba01ab",
                          "Name": "",
                          "Email": "2025289874@telegent.com",
                          "PhoneNumbers": [
                            "+12025289874"
                          ],
                          "Role": "Subscriber",
                          "Account": null,
                          "Subscriptions": []
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/distributor": {
      "get": {
        "tags": [
          "Distributors"
        ],
        "summary": "Get Distributor Details",
        "description": "Retrieve details for a distributor account. Distributors sit at the top of the account hierarchy and can create and manage multiple sub-accounts (AID-) and their subscribers. Returns the distributor's account key (DID-), secret, total accounts managed, and address information.\n\n**What this does:** Returns the distributor's name, contact info, billing and mailing addresses, and status. The `DID-` from this response is the top-level identifier used throughout the account hierarchy.\n\n**Next steps:**\n- View accounts under this distributor — `GET /v1.0/distributor/accounts`\n- Update distributor — `POST /v1.0/distributor/update`",
        "parameters": [
          {
            "name": "DistributorId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Distributor ID to retrieve details for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/distributor?DistributorId=DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Distributor Details Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "DistributorId": "DID-eab92510-1040-45a5-bb9c-0bad9272f89d",
                      "DistributorName": "Telegent Account",
                      "AccountKey": "AGID-2054FE47-A4CF-4AB1-87B5-123F6618E6D3",
                      "Secret": "10400bad9272f89deab92512",
                      "TotalAccounts": 16,
                      "BillingAddress": {
                        "Street1": null,
                        "Street2": "NULL",
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      },
                      "MailingAddress": {
                        "Street1": null,
                        "Street2": null,
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/distributor/create": {
      "post": {
        "tags": [
          "Distributors"
        ],
        "summary": "Create Distributor",
        "description": "Create a new distributor with billing and mailing address information. Returns the newly created distributor details including account key and secret.\n\n**What this does:** Returns the new distributor's `DistributorId` (`DID-`) and created record. The `DID-` is the root identifier for all accounts, packages, and products under this distributor.\n\n**Next steps:**\n- Create an account under this distributor — `POST /v1.0/account/create`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"DistributorName\": \"Telegent Distributor 2\",\n  \"BillingAddress\": {\n    \"Street1\": \"\",\n    \"Street2\": \"\",\n    \"City\": \"\",\n    \"State\": \"\",\n    \"Zip\": \"\",\n    \"Country\": \"\"\n  },\n  \"MailingAddress\": {\n    \"Street1\": \"\",\n    \"Street2\": \"\",\n    \"City\": \"\",\n    \"State\": \"\",\n    \"Zip\": \"\",\n    \"Country\": \"\"\n  },\n  \"AdminEmail\": \"distributor@telegent.com\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/distributor/create \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"DistributorName\": \"Telegent Distributor 2\",\n    \"BillingAddress\": {\n      \"Street1\": \"\",\n      \"City\": \"\",\n      \"State\": \"\",\n      \"Zip\": \"\"\n    },\n    \"AdminEmail\": \"distributor@telegent.com\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Distributor Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "DistributorId": "DID-eab92510-1040-45a5-bb9c-0bad9272f89d",
                      "DistributorName": "Telegent Account 2",
                      "AccountKey": "DID-eab92510-1040-45a5-bb9c-0bad9272f89d",
                      "Secret": "10400bad9272f89deab92512",
                      "TotalAccounts": 16,
                      "BillingAddress": {
                        "Street1": null,
                        "Street2": "NULL",
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      },
                      "MailingAddress": {
                        "Street1": null,
                        "Street2": null,
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      },
                      "AdminEmail": "distributor@telegent.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "DistributorName"
                ],
                "properties": {
                  "DistributorName": {
                    "type": "string",
                    "description": "Name of the distributor",
                    "example": "Telegent Distributor 2"
                  },
                  "BillingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string",
                        "example": ""
                      },
                      "Street2": {
                        "type": "string",
                        "example": ""
                      },
                      "City": {
                        "type": "string",
                        "example": ""
                      },
                      "State": {
                        "type": "string",
                        "example": ""
                      },
                      "Zip": {
                        "type": "string",
                        "example": ""
                      },
                      "Country": {
                        "type": "string",
                        "example": ""
                      }
                    }
                  },
                  "MailingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string",
                        "example": ""
                      },
                      "Street2": {
                        "type": "string",
                        "example": ""
                      },
                      "City": {
                        "type": "string",
                        "example": ""
                      },
                      "State": {
                        "type": "string",
                        "example": ""
                      },
                      "Zip": {
                        "type": "string",
                        "example": ""
                      },
                      "Country": {
                        "type": "string",
                        "example": ""
                      }
                    }
                  },
                  "AdminEmail": {
                    "type": "string",
                    "description": "Email address that receives distributor reports, including the Numbers Inventory Report CSV. Optional.",
                    "example": "distributor@telegent.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/distributor/update": {
      "post": {
        "tags": [
          "Distributors"
        ],
        "summary": "Update Distributor",
        "description": "Update an existing distributor's information including name and address details.\n\n**What this does:** Returns the updated distributor record. Only fields you send are changed; omitted fields retain their current values.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/distributor`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"DistributorId\": \"DID-eab92510-1040-45a5-bb9c-0bad9272f89d\",\n  \"DistributorName\": \"Telegent Distributor 2.1\",\n  \"BillingAddress\": {\n    \"Street1\": \"\",\n    \"Street2\": \"\",\n    \"City\": \"\",\n    \"State\": \"\",\n    \"Zip\": \"\",\n    \"Country\": \"\"\n  },\n  \"MailingAddress\": {\n    \"Street1\": \"\",\n    \"Street2\": \"\",\n    \"City\": \"\",\n    \"State\": \"\",\n    \"Zip\": \"\",\n    \"Country\": \"\"\n  },\n  \"AdminEmail\": \"distributor@telegent.com\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/distributor/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"DistributorId\": \"DID-eab92510-1040-45a5-bb9c-0bad9272f89d\",\n    \"DistributorName\": \"Telegent Distributor 2.1\",\n    \"BillingAddress\": {\"Street1\": \"\", \"Street2\": \"\", \"City\": \"\", \"State\": \"\", \"Zip\": \"\", \"Country\": \"\"},\n    \"MailingAddress\": {\"Street1\": \"\", \"Street2\": \"\", \"City\": \"\", \"State\": \"\", \"Zip\": \"\", \"Country\": \"\"},\n    \"AdminEmail\": \"distributor@telegent.com\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Distributor Updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "DistributorId": "DID-eab92510-1040-45a5-bb9c-0bad9272f89d",
                      "DistributorName": "Telegent Account 2",
                      "AccountKey": "DID-eab92510-1040-45a5-bb9c-0bad9272f89d",
                      "Secret": "10400bad9272f89deab92512",
                      "TotalAccounts": 16,
                      "BillingAddress": {
                        "Street1": null,
                        "Street2": "NULL",
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      },
                      "MailingAddress": {
                        "Street1": null,
                        "Street2": null,
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      },
                      "AdminEmail": "distributor@telegent.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "DistributorId"
                ],
                "properties": {
                  "DistributorId": {
                    "type": "string",
                    "description": "Distributor ID to update",
                    "example": "DID-eab92510-1040-45a5-bb9c-0bad9272f89d"
                  },
                  "DistributorName": {
                    "type": "string",
                    "description": "Updated distributor name",
                    "example": "Telegent Distributor 2.1"
                  },
                  "BillingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string"
                      },
                      "Street2": {
                        "type": "string"
                      },
                      "City": {
                        "type": "string"
                      },
                      "State": {
                        "type": "string"
                      },
                      "Zip": {
                        "type": "string"
                      },
                      "Country": {
                        "type": "string"
                      }
                    }
                  },
                  "MailingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string"
                      },
                      "Street2": {
                        "type": "string"
                      },
                      "City": {
                        "type": "string"
                      },
                      "State": {
                        "type": "string"
                      },
                      "Zip": {
                        "type": "string"
                      },
                      "Country": {
                        "type": "string"
                      }
                    }
                  },
                  "AdminEmail": {
                    "type": "string",
                    "description": "Email address that receives distributor reports, including the Numbers Inventory Report CSV. Optional.",
                    "example": "distributor@telegent.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/distributor/products": {
      "get": {
        "tags": [
          "Distributors"
        ],
        "summary": "Get Distributor Product List",
        "description": "Retrieve the list of products associated with the distributor. Filter by status (All, Active, Inactive).\n\n**What this does:** Returns the list of products configured at the distributor level. Products defined here can be included in packages offered to accounts.\n\n**Next steps:**\n- Get product details — `GET /v1.0/products`\n- Create a product — `POST /v1.0/products`",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "All",
                "Active",
                "Inactive"
              ]
            },
            "description": "Filter products by status"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/distributor/products?Filter=All' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Products Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "TotalProducts": 2,
                      "Filter": "All",
                      "Results": [
                        {
                          "ProductId": "PRID-d9e74d70-3ca8-40f3-a415-e1194b0f8936",
                          "SKU": "eSim",
                          "Description": "Telegent eSim 1.0",
                          "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                          "DistributorId": null,
                          "Type": "Type 1.1",
                          "SubType": "1",
                          "Cost": 34.56,
                          "BillingFrequency": "1",
                          "Active": true
                        },
                        {
                          "ProductId": "PRID-93d4fb71-8574-42ee-abc6-4c54f8240743",
                          "SKU": "eSim Vince 2.0",
                          "Description": "Telegent eSim",
                          "AggregatorId": "AGID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                          "DistributorId": null,
                          "Type": "esim",
                          "SubType": "0",
                          "Cost": 12.34,
                          "BillingFrequency": "1",
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/distributor/packages": {
      "get": {
        "tags": [
          "Distributors"
        ],
        "summary": "Get Distributor Package List",
        "description": "Retrieve the list of packages associated with the distributor. Filter by status (All, Active, Inactive).\n\n**What this does:** Returns the list of packages configured at the distributor level with their IDs, names, and pricing. Packages group products for subscription assignment.\n\n**Next steps:**\n- Get package details — `GET /v1.0/packages`\n- Create a subscription — `POST /v1.0/subscriptions`",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "All",
                "Active",
                "Inactive"
              ]
            },
            "description": "Filter packages by status"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/distributor/packages?Filter=Active' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Packages Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "TotalPackages": 2,
                      "Filter": "Active",
                      "Results": [
                        {
                          "PackageId": "PID-203740d8-6b19-42c6-b22e-e45611d9cade",
                          "PackageName": "eSim 3",
                          "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                          "AggregatorId": "AGID-A49349FB-170E-44BF-B61E-DCC65A3FEA1A",
                          "SubscriberId": "456789",
                          "Type": "Type 2",
                          "Price": 34.56,
                          "Monthly": false,
                          "Active": true
                        },
                        {
                          "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                          "PackageName": "eSim 3",
                          "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                          "AggregatorId": "AGID-A49349FB-170E-44BF-B61E-DCC65A3FEA1A",
                          "SubscriberId": "12345",
                          "Type": "Type 1",
                          "Price": 12.34,
                          "Monthly": true,
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/distributor/subscriptions": {
      "get": {
        "tags": [
          "Distributors"
        ],
        "summary": "Get Distributor Subscription List",
        "description": "Retrieve the list of subscriptions associated with the distributor. Filter by status (All, Active, Inactive).\n\n**What this does:** Returns a list of all subscriptions under the distributor filtered by the optional `Filter` value. Use this for a distributor-wide view of active plans.\n\n**Next steps:**\n- Get subscription details — `GET /v1.0/subscriptions`",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "All",
                "Active",
                "Inactive"
              ]
            },
            "description": "Filter subscriptions by status"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/distributor/subscriptions?Filter=Active' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Subscriptions Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn2",
                      "TotalSubscriptions": 1,
                      "Filter": "Active",
                      "Results": [
                        {
                          "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                          "SubscriberId": "SID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                          "TNID": "NID-B5B67F02-708A-1851-20DF-61FC1919C4F6",
                          "ICCID": "8901240397190002080",
                          "PackageId": "PID-9a8435dc-ca6e-4a98-b761-5e6dc04447db",
                          "Type": "mvno",
                          "Active": true
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/account": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Account Details",
        "description": "Retrieve details for a specific account. Accounts sit below a distributor in the hierarchy and contain subscribers along with their associated phone numbers and services. Returns the account name, total subscriber count, address details, and the parent distributor reference.\n\n**What this does:** Returns the account's name, contact info, billing and mailing addresses, and status. Use this to confirm account configuration or retrieve the `AID-` needed for subscriber and subscription calls.\n\n**Next steps:**\n- Update account details — `POST /v1.0/account/update`\n- View account's numbers — `GET /v1.0/numbers/inventory`",
        "parameters": [
          {
            "name": "AccountId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Account ID to retrieve details for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/account?AccountId=AID-eab92510-1040-45a5-bb9c-0bad9272f89d' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Account Details Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "AccountName": "Telegent Account",
                      "TotalSubscribers": 16,
                      "BillingAddress": {
                        "Street1": null,
                        "Street2": "NULL",
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      },
                      "MailingAddress": {
                        "Street1": null,
                        "Street2": null,
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/account/create": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Create New Account",
        "description": "Create a new account with administrator email, billing, and mailing address information. Returns the newly created account details.\n\n**What this does:** Returns the new account's `AccountId` (`AID-`) and confirmation of the created details. Store the `AID-` — it is required when creating subscribers and subscriptions under this account.\n\n**Next steps:**\n- Create a subscriber under this account — `POST /v1.0/subscribers/create`\n- Assign packages — `POST /v1.0/subscriptions`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"AccountName\": \"Telegent Account 3\",\n  \"AccountAdmin\": \"jerome@joonto.com\",\n  \"BillingAddress\": {\n    \"Street1\": \"Street 1\",\n    \"Street2\": \"Street 2\",\n    \"City\": \"Heber\",\n    \"State\": \"Utah\",\n    \"Zip\": \"\",\n    \"Country\": \"USA\"\n  },\n  \"MailingAddress\": {\n    \"Street1\": null,\n    \"City\": null,\n    \"State\": null,\n    \"Zip\": null\n  }\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/account/create \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"AccountName\": \"Telegent Account 3\",\n    \"AccountAdmin\": \"jerome@joonto.com\",\n    \"BillingAddress\": {\n      \"Street1\": \"Street 1\",\n      \"City\": \"Heber\",\n      \"State\": \"Utah\"\n    }\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Account Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "AccountName": "Telegent Account 3",
                      "TotalSubscribers": 0,
                      "BillingAddress": {
                        "Street1": "Street 1",
                        "Street2": "Street 2",
                        "City": "Heber",
                        "State": "Utah",
                        "Zip": "",
                        "Country": null
                      },
                      "MailingAddress": {
                        "Street1": null,
                        "Street2": null,
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "AccountName"
                ],
                "properties": {
                  "AccountName": {
                    "type": "string",
                    "description": "Name of the account",
                    "example": "Telegent Account 3"
                  },
                  "AccountAdmin": {
                    "type": "string",
                    "description": "Email address of the account administrator",
                    "example": "jerome@joonto.com"
                  },
                  "BillingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string",
                        "example": "Street 1"
                      },
                      "Street2": {
                        "type": "string",
                        "example": "Street 2"
                      },
                      "City": {
                        "type": "string",
                        "example": "Heber"
                      },
                      "State": {
                        "type": "string",
                        "example": "Utah"
                      },
                      "Zip": {
                        "type": "string",
                        "example": ""
                      },
                      "Country": {
                        "type": "string",
                        "example": "USA"
                      }
                    }
                  },
                  "MailingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string"
                      },
                      "Street2": {
                        "type": "string"
                      },
                      "City": {
                        "type": "string"
                      },
                      "State": {
                        "type": "string"
                      },
                      "Zip": {
                        "type": "string"
                      },
                      "Country": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/account/update": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Update Account",
        "description": "Update an existing account's information including name and address details.\n\n**What this does:** Returns the updated account record. Only the fields you send are changed; omitted fields retain their current values.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/account`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"AccountName\": \"Telegent Account 3.1\",\n  \"BillingAddress\": {\n    \"Street1\": \"Street 1\",\n    \"Street2\": \"Street 2\",\n    \"City\": \"Heber\",\n    \"State\": \"Utah\",\n    \"Zip\": \"\",\n    \"Country\": \"USA\"\n  }\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/account/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"AccountName\": \"Telegent Account 3.1\",\n    \"BillingAddress\": {\n      \"Street1\": \"Street 1\",\n      \"City\": \"Heber\"\n    }\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Account Updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "AccountName": "Telegent Account 3",
                      "TotalSubscribers": 0,
                      "BillingAddress": {
                        "Street1": "Street 1",
                        "Street2": "Street 2",
                        "City": "Heber",
                        "State": "Utah",
                        "Zip": "",
                        "Country": null
                      },
                      "MailingAddress": {
                        "Street1": null,
                        "Street2": null,
                        "City": null,
                        "State": null,
                        "Zip": null,
                        "Country": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "AccountName": {
                    "type": "string",
                    "description": "Updated account name",
                    "example": "Telegent Account 3.1"
                  },
                  "BillingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string"
                      },
                      "Street2": {
                        "type": "string"
                      },
                      "City": {
                        "type": "string"
                      },
                      "State": {
                        "type": "string"
                      },
                      "Zip": {
                        "type": "string"
                      },
                      "Country": {
                        "type": "string"
                      }
                    }
                  },
                  "MailingAddress": {
                    "type": "object",
                    "properties": {
                      "Street1": {
                        "type": "string"
                      },
                      "Street2": {
                        "type": "string"
                      },
                      "City": {
                        "type": "string"
                      },
                      "State": {
                        "type": "string"
                      },
                      "Zip": {
                        "type": "string"
                      },
                      "Country": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/get": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Subscriber Details",
        "description": "Retrieve detailed information about a specific subscriber including name, email, phone numbers, role, and associated account details.\n\n**What this does:** Returns the subscriber's profile including name, email, role, assigned phone numbers, account ID, and status. Use this to confirm a subscriber's configuration or retrieve the `TSUID-` for use in subscription and AI Guardian calls.\n\n**Next steps:**\n- Update subscriber — `POST /v1.0/subscribers/update`\n- Assign a subscription — `POST /v1.0/subscriptions`\n- Enable AI Guardian — `POST /v1.0/subscribers/guardian-features`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Subscriber ID to retrieve details for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/get?SubscriberId=TSUID-03F91441-B652-4EBE-B310-24652F872584' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Subscriber Details Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriberId": "TSUID-03F91441-B652-4EBE-B310-24652F872584",
                      "Name": "Bennet Hill",
                      "Email": "bennet@joonto.com",
                      "PhoneNumbers": [
                        "+13854613193"
                      ],
                      "Role": "Subscriber",
                      "Account": {
                        "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                        "CompanyName": "Telegent Account"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/create": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Create Subscriber",
        "description": "**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Required:** Account ID (AID) — provided by your Telegent representative\n\n---\n\nCreate a new subscriber with name, email, phone numbers, role, and password. Returns the newly created subscriber details.\n\n**What this does:** Returns the new subscriber's `SubscriberId` (`TSUID-`) and full profile. The `TSUID-` is required for creating subscriptions, assigning numbers, and configuring AI Guardian. Store it for all subsequent subscriber-related calls.\n\n**Next steps:**\n- Assign a subscription — `POST /v1.0/subscriptions`\n- Provision a number — `POST /v1.0/numbers/provision`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"Name\": \"Jerome User 4\",\n  \"Email\": \"jerome4@joonto.com\",\n  \"PhoneNumbers\": [\"+1234567890\"],\n  \"Role\": \"Subscriber\",\n  \"Password\": \"1234567890\",\n  \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/create \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"Name\": \"Jerome User 4\",\n    \"Email\": \"jerome4@joonto.com\",\n    \"PhoneNumbers\": [\"+1234567890\"],\n    \"Role\": \"Subscriber\",\n    \"Password\": \"1234567890\",\n    \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the new Subscriber ID (TSUID-) and account details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriberId": "TSUID-90c644ff-7f70-4587-a27e-d1d45bde7528",
                      "Name": "Jerome User 4",
                      "Email": "jerome4@joonto.com",
                      "PhoneNumbers": [
                        "+1234567890"
                      ],
                      "Role": "Subscriber",
                      "Account": {
                        "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                        "CompanyName": "Telegent Account"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "Name",
                  "Email",
                  "PhoneNumbers",
                  "Role",
                  "Password",
                  "AccountId"
                ],
                "properties": {
                  "Name": {
                    "type": "string",
                    "description": "Subscriber's full name",
                    "example": "Jerome User 4"
                  },
                  "Email": {
                    "type": "string",
                    "format": "email",
                    "description": "Subscriber's email address",
                    "example": "jerome4@joonto.com"
                  },
                  "PhoneNumbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of phone numbers associated with subscriber",
                    "example": [
                      "+1234567890"
                    ]
                  },
                  "Role": {
                    "type": "string",
                    "enum": [
                      "Subscriber",
                      "Manager",
                      "Account Admin"
                    ],
                    "description": "Role of the subscriber",
                    "example": "Subscriber"
                  },
                  "Password": {
                    "type": "string",
                    "description": "Password for the subscriber account",
                    "example": "1234567890"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID to associate subscriber with",
                    "example": "AID-eab92510-1040-45a5-bb9c-0bad9272f89d"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/update": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Update Subscriber",
        "description": "Update an existing subscriber's information including name, phone numbers, role, and password.\n\n**What this does:** Returns the updated subscriber record. Only the fields you send are changed; omitted fields retain their current values.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/subscribers/get`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"TSUID-33bde952-f6ec-4171-ad11-9697cfed79e8\",\n  \"Name\": \"Jerome User 3.1\",\n  \"PhoneNumbers\": [\"+1234567890\"],\n  \"Role\": \"Subscriber\",\n  \"Password\": \"bUxdo6-zewqez\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"TSUID-33bde952-f6ec-4171-ad11-9697cfed79e8\",\n    \"Name\": \"Jerome User 3.1\",\n    \"PhoneNumbers\": [\"+1234567890\"],\n    \"Role\": \"Subscriber\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Subscriber Updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriberId": "TSUID-33bde952-f6ec-4171-ad11-9697cfed79e8",
                      "Name": "Jerome User 3.1",
                      "Email": "jerome3@joonto.com",
                      "PhoneNumbers": [
                        "+1234567890"
                      ],
                      "Role": "Subscriber",
                      "Account": {
                        "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                        "CompanyName": "Telegent Account"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Subscriber ID to update",
                    "example": "TSUID-33bde952-f6ec-4171-ad11-9697cfed79e8"
                  },
                  "Name": {
                    "type": "string",
                    "description": "Updated subscriber name",
                    "example": "Jerome User 3.1"
                  },
                  "PhoneNumbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Updated phone numbers",
                    "example": [
                      "+1234567890"
                    ]
                  },
                  "Role": {
                    "type": "string",
                    "enum": [
                      "Subscriber",
                      "Manager",
                      "Account Admin"
                    ],
                    "description": "Updated role",
                    "example": "Subscriber"
                  },
                  "Password": {
                    "type": "string",
                    "description": "Updated password",
                    "example": "bUxdo6-zewqez"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/transfer": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Transfer Subscriber",
        "description": "Transfer a subscriber from one account to another. Requires both origin and destination account IDs.\n\n**What this does:** Returns a confirmation that the subscriber has been moved to the target account. All subscriptions and number assignments are preserved. Use this in reseller workflows when a subscriber needs to move between managed accounts.\n\n**Next steps:**\n- Confirm new account association — `GET /v1.0/subscribers/get`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"TSUID-33bde952-f6ec-4171-ad11-9697cfed79e8\",\n  \"FromAccountId\": \"AID-eab92510-1040-45a5-bb9c-0bad9272f89d\",\n  \"ToAccountId\": \"AID-ceb82085-2725-45a1-bd5e-526ed19799d7\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/transfer \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"TSUID-33bde952-f6ec-4171-ad11-9697cfed79e8\",\n    \"FromAccountId\": \"AID-eab92510-1040-45a5-bb9c-0bad9272f89d\",\n    \"ToAccountId\": \"AID-ceb82085-2725-45a1-bd5e-526ed19799d7\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Subscriber Transferred",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriberId": "TSUID-33bde952-f6ec-4171-ad11-9697cfed79e8",
                      "Name": "Jerome User 3.1",
                      "Email": "jerome3@joonto.com",
                      "PhoneNumbers": [
                        "+1234567890"
                      ],
                      "Role": "Subscriber",
                      "Account": {
                        "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                        "CompanyName": "Telegent Account"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "FromAccountId",
                  "ToAccountId"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Subscriber ID to transfer",
                    "example": "TSUID-33bde952-f6ec-4171-ad11-9697cfed79e8"
                  },
                  "FromAccountId": {
                    "type": "string",
                    "description": "Origin account ID",
                    "example": "AID-eab92510-1040-45a5-bb9c-0bad9272f89d"
                  },
                  "ToAccountId": {
                    "type": "string",
                    "description": "Destination account ID",
                    "example": "AID-ceb82085-2725-45a1-bd5e-526ed19799d7"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Create Message Filter",
        "description": "Create a new message filter that controls what messages a subscriber can send and receive.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing Subscriber (`TSUID-`) — `POST /v1.0/subscribers/create`\n- AI Guardian enabled for messages — `POST /v1.0/subscribers/guardian-features`\n\n**What this does:** Creates a filter and returns a `MessageFilterId` (`MFID-`). The filter applies to the specified phone number. Configure mode (`ACTIVE`/`MONITOR_ONLY`/`INACTIVE`), allowed/blocked contacts, keyword rules, and restrictions on links, media, and unknown numbers. The filter takes effect immediately.\n\n**Next steps:**\n- Verify it was saved — `GET /v1.0/subscribers/message-filter`\n- Add trusted contacts that bypass filtering — `POST /v1.0/subscribers/message-filter/allowed-contacts/add`\n- Add senders to silently drop — `POST /v1.0/subscribers/message-filter/blocked-contacts/add`\n- Review configured keywords — `GET /v1.0/subscribers/message-filter/keywords`\n- Update later — `POST /v1.0/subscribers/message-filter/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"Phone\": \"+1234567890\",\n  \"FilterMode\": \"ACTIVE\",\n  \"AllowedContacts\": [\"+1111111111\", \"+2222222222\"],\n  \"BlockedContacts\": [\"+3333333333\"],\n  \"KeywordFilter\": \"{\\\"CustomKeywords\\\":[\\\"inappropriate\\\",\\\"banned\\\"],\\\"SystemKeywords\\\":{\\\"Profanity\\\":[\\\"word1\\\",\\\"word2\\\"],\\\"Violence\\\":[\\\"threat1\\\"]},\\\"SeverityMap\\\":{\\\"Word1\\\":\\\"HIGH\\\",\\\"Inappropriate\\\":\\\"MEDIUM\\\"}}\",\n  \"NotificationPhones\": [\"+9999999999\"],\n  \"ApplyToOutbound\": true,\n  \"ApplyToInbound\": true,\n  \"BlockUnknownNumbers\": true,\n  \"BlockLinks\": true,\n  \"BlockMedia\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/message-filter \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"Phone\": \"+1234567890\",\n    \"FilterMode\": \"ACTIVE\",\n    \"AllowedContacts\": [\"+1111111111\", \"+2222222222\"],\n    \"BlockedContacts\": [\"+3333333333\"],\n    \"NotificationPhones\": [\"+9999999999\"],\n    \"ApplyToOutbound\": true,\n    \"ApplyToInbound\": true,\n    \"BlockUnknownNumbers\": true,\n    \"BlockLinks\": true,\n    \"BlockMedia\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Message Filter Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1",
                      "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "Phone": "+1234567890",
                      "FilterMode": "ACTIVE",
                      "AllowedContacts": [
                        "+1111111111",
                        "+2222222222"
                      ],
                      "BlockedContacts": [
                        "+3333333333"
                      ],
                      "KeywordFilter": "\"CustomKeywords\":[\"inappropriate\",\"banned\"],\"SystemKeywords\":{\"Profanity\":[\"word1\",\"word2\"],\"Violence\":[\"threat1\"]},\"SeverityMap\":{\"Word1\":\"HIGH\",\"Inappropriate\":\"MEDIUM\"}",
                      "NotificationPhones": [
                        "+9999999999"
                      ],
                      "ApplyToOutbound": true,
                      "ApplyToInbound": true,
                      "BlockUnknownNumbers": true,
                      "BlockLinks": true,
                      "BlockMedia": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "Phone",
                  "FilterMode"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "Phone": {
                    "type": "string",
                    "description": "Phone number this filter applies to. Use E.164 format (e.g., `+15555555555`). Required even when `SubscriberId` is provided.",
                    "example": "+1234567890"
                  },
                  "FilterMode": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "MONITOR_ONLY",
                      "INACTIVE"
                    ],
                    "description": "Controls how the filter behaves. `ACTIVE`: rules are enforced — messages that violate the filter are blocked. `MONITOR_ONLY`: violations are logged and notifications are sent, but messages are still delivered. `INACTIVE`: filter is paused and has no effect.",
                    "example": "ACTIVE"
                  },
                  "AllowedContacts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) that bypass content filtering. Messages from these contacts are always delivered without keyword, link, or media checks."
                  },
                  "BlockedContacts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) blocked from messaging this subscriber. Messages are silently dropped — the sender receives no error."
                  },
                  "KeywordFilter": {
                    "type": "string",
                    "description": "Stringified JSON defining keyword rules. Structure: `{\"CustomKeywords\":[...],\"SystemKeywords\":{\"Profanity\":[...],\"Violence\":[...]},\"SeverityMap\":{\"keyword\":\"HIGH|MEDIUM|LOW\"}}`. `CustomKeywords` are user-added words; `SystemKeywords` are platform-provided categories; `SeverityMap` assigns a risk level to each term."
                  },
                  "NotificationPhones": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) that receive an SMS alert when this filter triggers. Typically used for a guardian's phone to be notified about activity on a child's account."
                  },
                  "ApplyToOutbound": {
                    "type": "boolean",
                    "description": "If `true`, filtering applies to messages the subscriber sends out."
                  },
                  "ApplyToInbound": {
                    "type": "boolean",
                    "description": "If `true`, filtering applies to messages the subscriber receives."
                  },
                  "BlockUnknownNumbers": {
                    "type": "boolean",
                    "description": "If `true`, messages from any number not on the allowed contacts list are blocked."
                  },
                  "BlockLinks": {
                    "type": "boolean",
                    "description": "If `true`, messages that contain URLs are blocked."
                  },
                  "BlockMedia": {
                    "type": "boolean",
                    "description": "If `true`, MMS messages with media attachments (images, video, audio) are blocked."
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Message Filters",
        "description": "List the message filters configured on a subscriber or phone number.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID or phone number to filter by (otherwise returns all)\n\n**What this does:** Returns the full configuration of each matching filter — mode, allowed/blocked contacts, keyword rules, and restrictions on links/media/unknown numbers. Use this to audit a subscriber's messaging controls or to find the `MessageFilterId` (`MFID-`) you need for subsequent calls.\n\n**Next steps:**\n- Inspect allowed/blocked lists in detail — `GET /v1.0/subscribers/message-filter/allowed-contacts`, `GET /v1.0/subscribers/message-filter/blocked-contacts`\n- View keyword rules — `GET /v1.0/subscribers/message-filter/keywords`\n- Modify a filter — `POST /v1.0/subscribers/message-filter/update`\n- Remove a filter — `POST /v1.0/subscribers/message-filter/delete`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Return only filters belonging to this subscriber. Format: `TSUID-` followed by a UUID."
          },
          {
            "name": "Phone",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Return only filters tied to this phone number. Use E.164 format (e.g., `+15555555555`)."
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/message-filter?SubscriberId=TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Message Filters Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "examples": {
                  "example": {
                    "value": [
                      {
                        "FilterId": "MFID-6b6766eb-08fe-4680-99b7-731bd0629331",
                        "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                        "Phone": "+1234567890",
                        "FilterMode": "ACTIVE",
                        "AllowedContacts": [
                          "+1111111111",
                          "+2222222222"
                        ],
                        "BlockedContacts": [
                          "+3333333333"
                        ],
                        "KeywordFilter": "\"CustomKeywords\":[\"inappropriate\",\"banned\"],\"SystemKeywords\":{\"Profanity\":[\"word1\",\"word2\"],\"Violence\":[\"threat1\"]},\"SeverityMap\":{\"Word1\":\"HIGH\",\"Inappropriate\":\"MEDIUM\"}",
                        "NotificationPhones": [
                          "+9999999999"
                        ],
                        "ApplyToOutbound": true,
                        "ApplyToInbound": true,
                        "BlockUnknownNumbers": true,
                        "BlockLinks": true,
                        "BlockMedia": true
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/update": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Update Message Filter",
        "description": "Modify an existing message filter without deleting and recreating it.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing `MessageFilterId` (`MFID-`) — find one with `GET /v1.0/subscribers/message-filter`\n\n**What this does:** Replaces the configuration of the specified filter. Use this to switch modes (e.g., `MONITOR_ONLY` → `ACTIVE` to start enforcing rules), update contact lists, adjust keyword settings, or toggle link/media/unknown-number restrictions. Changes take effect immediately.\n\n**Next steps:**\n- Verify the change — `GET /v1.0/subscribers/message-filter`\n- Pause without deleting — set `FilterMode` to `INACTIVE` and call this endpoint again\n- Permanently remove — `POST /v1.0/subscribers/message-filter/delete`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"FilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n  \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"Phone\": \"+1234567890\",\n  \"FilterMode\": \"MONITOR_ONLY\",\n  \"AllowedContacts\": [\"+1111111111\", \"+2222222222\"],\n  \"BlockedContacts\": [\"+3333333333\"],\n  \"KeywordFilter\": \"\\\"CustomKeywords\\\":[\\\"inappropriate\\\",\\\"banned\\\"],\\\"SystemKeywords\\\":{\\\"Profanity\\\":[\\\"word1\\\",\\\"word2\\\"],\\\"Violence\\\":[\\\"threat1\\\"]},\\\"SeverityMap\\\":{\\\"Word1\\\":\\\"HIGH\\\",\\\"Inappropriate\\\":\\\"MEDIUM\\\"}\",\n  \"NotificationPhones\": [\"+9999999999\"],\n  \"ApplyToOutbound\": true,\n  \"ApplyToInbound\": true,\n  \"BlockUnknownNumbers\": true,\n  \"BlockLinks\": true,\n  \"BlockMedia\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/message-filter/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"FilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n    \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"Phone\": \"+1234567890\",\n    \"FilterMode\": \"MONITOR_ONLY\",\n    \"AllowedContacts\": [\"+1111111111\", \"+2222222222\"],\n    \"BlockedContacts\": [\"+3333333333\"],\n    \"NotificationPhones\": [\"+9999999999\"],\n    \"ApplyToOutbound\": true,\n    \"ApplyToInbound\": true,\n    \"BlockUnknownNumbers\": true,\n    \"BlockLinks\": true,\n    \"BlockMedia\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Message Filter Updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1",
                      "SubscriberId": "SID-A1AB23C0-....-....-....-EBE284131441",
                      "Phone": "+1234567890",
                      "FilterMode": "MONITOR_ONLY",
                      "AllowedContacts": [
                        "+1111111111",
                        "+2222222222"
                      ],
                      "BlockedContacts": [
                        "+3333333333"
                      ],
                      "KeywordFilter": "\"CustomKeywords\":[\"inappropriate\",\"banned\"],\"SystemKeywords\":{\"Profanity\":[\"word1\",\"word2\"],\"Violence\":[\"threat1\"]},\"SeverityMap\":{\"Word1\":\"HIGH\",\"Inappropriate\":\"MEDIUM\"}",
                      "NotificationPhones": [
                        "+9999999999"
                      ],
                      "ApplyToOutbound": true,
                      "ApplyToInbound": true,
                      "BlockUnknownNumbers": true,
                      "BlockLinks": true,
                      "BlockMedia": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "FilterId"
                ],
                "properties": {
                  "FilterId": {
                    "type": "string",
                    "description": "The Message Filter ID you want to update. Format: `MFID-` followed by a UUID.",
                    "example": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1"
                  },
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`."
                  },
                  "Phone": {
                    "type": "string",
                    "description": "Phone number this filter applies to. Use E.164 format (e.g., `+15555555555`). Required even when `SubscriberId` is provided."
                  },
                  "FilterMode": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "MONITOR_ONLY",
                      "INACTIVE"
                    ],
                    "description": "Controls how the filter behaves. `ACTIVE`: rules are enforced — messages that violate the filter are blocked. `MONITOR_ONLY`: violations are logged and notifications are sent, but messages are still delivered. `INACTIVE`: filter is paused and has no effect."
                  },
                  "AllowedContacts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) that bypass content filtering. Messages from these contacts are always delivered without keyword, link, or media checks."
                  },
                  "BlockedContacts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) blocked from messaging this subscriber. Messages are silently dropped — the sender receives no error."
                  },
                  "KeywordFilter": {
                    "type": "string",
                    "description": "Stringified JSON defining keyword rules. Structure: `{\"CustomKeywords\":[...],\"SystemKeywords\":{\"Profanity\":[...],\"Violence\":[...]},\"SeverityMap\":{\"keyword\":\"HIGH|MEDIUM|LOW\"}}`. `CustomKeywords` are user-added words; `SystemKeywords` are platform-provided categories; `SeverityMap` assigns a risk level to each term."
                  },
                  "NotificationPhones": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) that receive an SMS alert when this filter triggers. Typically used for a guardian's phone to be notified about activity on a child's account."
                  },
                  "ApplyToOutbound": {
                    "type": "boolean",
                    "description": "If `true`, filtering applies to messages the subscriber sends out."
                  },
                  "ApplyToInbound": {
                    "type": "boolean",
                    "description": "If `true`, filtering applies to messages the subscriber receives."
                  },
                  "BlockUnknownNumbers": {
                    "type": "boolean",
                    "description": "If `true`, messages from any number not on the allowed contacts list are blocked."
                  },
                  "BlockLinks": {
                    "type": "boolean",
                    "description": "If `true`, messages that contain URLs are blocked."
                  },
                  "BlockMedia": {
                    "type": "boolean",
                    "description": "If `true`, MMS messages with media attachments (images, video, audio) are blocked."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/delete": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Delete Message Filter",
        "description": "Permanently remove a message filter from a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing `MessageFilterId` (`MFID-`)\n\n**What this does:** Permanently deletes the filter and all its associated contacts and keyword rules. Messages will be delivered without any filtering after this call. **This cannot be undone.**\n\n**Tip:** If you only want to pause filtering without losing your settings, use `POST /v1.0/subscribers/message-filter/update` and set `FilterMode` to `INACTIVE` instead.\n\n**Next steps:**\n- Confirm removal — `GET /v1.0/subscribers/message-filter`\n- Create a new filter — `POST /v1.0/subscribers/message-filter`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"MessageFilterId\": \"MFID-e06a2c10-eeb4-4ca7-b3ef-2254b9a79e25\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/message-filter/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"MessageFilterId\": \"MFID-e06a2c10-eeb4-4ca7-b3ef-2254b9a79e25\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Message Filter Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Status": "Deleted",
                      "FilterId": "MFID-e06a2c10-eeb4-4ca7-b3ef-2254b9a79e25",
                      "DateDeleted": "2025-11-07T19:27:08.8002065+00:00"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "MessageFilterId"
                ],
                "properties": {
                  "MessageFilterId": {
                    "type": "string",
                    "description": "The Message Filter ID you want to permanently delete. Format: `MFID-` followed by a UUID. This cannot be undone.",
                    "example": "MFID-e06a2c10-eeb4-4ca7-b3ef-2254b9a79e25"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/allowed-contacts": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Allowed Contacts",
        "description": "View the list of phone numbers that bypass content filtering on a message filter.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `MessageFilterId` (`MFID-`) — find one with `GET /v1.0/subscribers/message-filter`\n\n**What this does:** Returns every phone number on the allowed list. Messages from these contacts skip keyword checks, link blocking, and media restrictions — they are always delivered.\n\n**Next steps:**\n- Add a new trusted contact — `POST /v1.0/subscribers/message-filter/allowed-contacts/add`\n- Remove someone from the list — `POST /v1.0/subscribers/message-filter/allowed-contacts/remove`\n- View the blocked side — `GET /v1.0/subscribers/message-filter/blocked-contacts`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
            "example": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
          },
          {
            "name": "MessageFilterId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Message Filter ID. Format: `MFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/message-filter` (Create) or `GET /v1.0/subscribers/message-filter` (List).",
            "example": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1"
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/message-filter/allowed-contacts?SubscriberId=SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441&MessageFilterId=MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "List of Allowed Contacts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "examples": {
                  "example": {
                    "value": [
                      "+1111111111",
                      "+2222222222"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/allowed-contacts/add": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Add Allowed Contacts",
        "description": "Add trusted phone numbers that bypass message filtering.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and an existing `MessageFilterId` (`MFID-`)\n\n**What this does:** Adds one or more phone numbers (E.164 format) to the allowed list. Messages from these contacts bypass all content filtering — keyword checks, link blocking, and media restrictions do not apply. Common use case: family members, doctors, or known business numbers.\n\n**Next steps:**\n- Verify the addition — `GET /v1.0/subscribers/message-filter/allowed-contacts`\n- Undo — `POST /v1.0/subscribers/message-filter/allowed-contacts/remove`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"MessageFilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n  \"Contacts\": [\"+15555555555\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/message-filter/allowed-contacts/add \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"MessageFilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n    \"Contacts\": [\"+15555555555\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Allowed Contacts Added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1",
                      "SubscriberId": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "AllowedContacts": [
                        "+1111111111",
                        "+2222222222",
                        "+15555555555"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "MessageFilterId",
                  "Contacts"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "MessageFilterId": {
                    "type": "string",
                    "description": "Message Filter ID. Format: `MFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/message-filter` (Create) or `GET /v1.0/subscribers/message-filter` (List).",
                    "example": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1"
                  },
                  "Contacts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "One or more phone numbers (E.164 format) to add to the allowed list. Each number must start with `+` and country code, e.g., `+15555555555`.",
                    "example": [
                      "+15555555555"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/allowed-contacts/remove": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Remove Allowed Contacts",
        "description": "Remove phone numbers from the allowed contacts list.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `MessageFilterId` (`MFID-`)\n- Numbers must currently be on the allowed list — confirm with `GET /v1.0/subscribers/message-filter/allowed-contacts`\n\n**What this does:** Removes one or more phone numbers from the allowed list. After removal, messages from those contacts go through the normal filter pipeline (keyword checks, link blocking, etc.).\n\n**Next steps:**\n- Verify the removal — `GET /v1.0/subscribers/message-filter/allowed-contacts`\n- Block the contact instead — `POST /v1.0/subscribers/message-filter/blocked-contacts/add`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"MessageFilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n  \"Contacts\": [\"+15555555555\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/message-filter/allowed-contacts/remove \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"MessageFilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n    \"Contacts\": [\"+15555555555\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Allowed Contacts Removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1",
                      "SubscriberId": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "AllowedContacts": [
                        "+1111111111",
                        "+2222222222"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "MessageFilterId",
                  "Contacts"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "MessageFilterId": {
                    "type": "string",
                    "description": "Message Filter ID. Format: `MFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/message-filter` (Create) or `GET /v1.0/subscribers/message-filter` (List).",
                    "example": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1"
                  },
                  "Contacts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "One or more phone numbers (E.164 format) to remove from the allowed list.",
                    "example": [
                      "+15555555555"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/blocked-contacts": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Blocked Contacts",
        "description": "View the list of phone numbers blocked from messaging a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `MessageFilterId` (`MFID-`)\n\n**What this does:** Returns every phone number currently blocked. Messages from these numbers are silently dropped — the sender receives no error or notification.\n\n**Next steps:**\n- Block a new sender — `POST /v1.0/subscribers/message-filter/blocked-contacts/add`\n- Unblock someone — `POST /v1.0/subscribers/message-filter/blocked-contacts/remove`\n- View the allowed side — `GET /v1.0/subscribers/message-filter/allowed-contacts`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
            "example": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
          },
          {
            "name": "MessageFilterId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Message Filter ID. Format: `MFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/message-filter` (Create) or `GET /v1.0/subscribers/message-filter` (List).",
            "example": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1"
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/message-filter/blocked-contacts?SubscriberId=SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441&MessageFilterId=MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "List of Blocked Contacts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "examples": {
                  "example": {
                    "value": [
                      "+3333333333"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/blocked-contacts/add": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Add Blocked Contacts",
        "description": "Block phone numbers from messaging a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and an existing `MessageFilterId` (`MFID-`)\n\n**What this does:** Adds one or more phone numbers to the blocked list. Messages from blocked contacts are silently dropped — they are never delivered, and the sender sees no error. Common use case: preventing unwanted or harassing contacts.\n\n**Next steps:**\n- Verify the addition — `GET /v1.0/subscribers/message-filter/blocked-contacts`\n- Undo — `POST /v1.0/subscribers/message-filter/blocked-contacts/remove`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"MessageFilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n  \"Contacts\": [\"+14444444444\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/message-filter/blocked-contacts/add \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"MessageFilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n    \"Contacts\": [\"+14444444444\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Blocked Contacts Added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1",
                      "SubscriberId": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "BlockedContacts": [
                        "+3333333333",
                        "+14444444444"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "MessageFilterId",
                  "Contacts"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "MessageFilterId": {
                    "type": "string",
                    "description": "Message Filter ID. Format: `MFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/message-filter` (Create) or `GET /v1.0/subscribers/message-filter` (List).",
                    "example": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1"
                  },
                  "Contacts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "One or more phone numbers (E.164 format) to add to the blocked list. Each number must start with `+` and country code, e.g., `+15555555555`.",
                    "example": [
                      "+14444444444"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/blocked-contacts/remove": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Remove Blocked Contacts",
        "description": "Unblock phone numbers so their messages start being delivered again.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `MessageFilterId` (`MFID-`)\n- Numbers must currently be on the blocked list — confirm with `GET /v1.0/subscribers/message-filter/blocked-contacts`\n\n**What this does:** Removes one or more phone numbers from the blocked list. After removal, messages from those contacts go through the normal filter pipeline and are delivered if they pass the rules.\n\n**Next steps:**\n- Verify the removal — `GET /v1.0/subscribers/message-filter/blocked-contacts`\n- Add to allowed instead — `POST /v1.0/subscribers/message-filter/allowed-contacts/add`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"MessageFilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n  \"Contacts\": [\"+3333333333\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/message-filter/blocked-contacts/remove \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"MessageFilterId\": \"MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1\",\n    \"Contacts\": [\"+3333333333\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Blocked Contacts Removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1",
                      "SubscriberId": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "BlockedContacts": [
                        "+14444444444"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "MessageFilterId",
                  "Contacts"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "MessageFilterId": {
                    "type": "string",
                    "description": "Message Filter ID. Format: `MFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/message-filter` (Create) or `GET /v1.0/subscribers/message-filter` (List).",
                    "example": "MFID-7435d672-a2d0-451e-ab62-45499f5bc7a1"
                  },
                  "Contacts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "One or more phone numbers (E.164 format) to remove from the blocked list.",
                    "example": [
                      "+3333333333"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/message-filter/keywords": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Message Filter Keywords",
        "description": "View the keyword rules attached to a message filter.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `MessageFilterId` (`MFID-`)\n\n**What this does:** Returns the keyword filter configuration: `CustomKeywords` (your own words), `SystemKeywords` (Telegent-provided categories like Profanity, Violence), and `SeverityMap` (risk level per term: `HIGH`/`MEDIUM`/`LOW`). Use this to audit exactly what words will trigger filter actions.\n\n**Next steps:**\n- Add or change keywords — `POST /v1.0/subscribers/message-filter/update` (use the `KeywordFilter` field)\n- See the rest of the filter — `GET /v1.0/subscribers/message-filter`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
            "example": "SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
          },
          {
            "name": "MessageFilterId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Message Filter ID. Format: `MFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/message-filter` (Create) or `GET /v1.0/subscribers/message-filter` (List).",
            "example": "MFID-83ee4478-3e58-40a4-a528-b5aad4687b10"
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/message-filter/keywords?SubscriberId=SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441&MessageFilterId=MFID-83ee4478-3e58-40a4-a528-b5aad4687b10' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Message Filter Keywords",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "CustomKeywords": [
                        "inappropriate",
                        "banned"
                      ],
                      "SystemKeywords": {
                        "Profanity": [
                          "word1",
                          "word2"
                        ],
                        "Violence": [
                          "threat1"
                        ]
                      },
                      "SeverityMap": {
                        "Word1": "HIGH",
                        "Inappropriate": "MEDIUM"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/guardian-features": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Configure Guardian Features",
        "description": "Enable or disable AI Guardian on a subscriber. This is the **first step** for every Guardian workflow — filters, keyword rules, and parent/child relationships will not function until Guardian is enabled here.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing Subscriber (`TSUID-`) — `POST /v1.0/subscribers/create`\n\n**What this does:** Turns AI Guardian on or off for the subscriber's calls and messages independently. Set `EnableIntelligentGuardianCalls` and `EnableIntelligentGuardianMessages` to `true` to enable monitoring; set both to `false` to fully disable Guardian.\n\n**Next steps:**\n- Confirm the change took effect — `GET /v1.0/subscribers/guardian-features`\n- Link a parent and child for supervision — `POST /v1.0/subscribers/guardians/relation`\n- Create a message filter — `POST /v1.0/subscribers/message-filter`\n- Create a call filter — `POST /v1.0/subscribers/call-filter`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d\",\n  \"EnableIntelligentGuardianCalls\": true,\n  \"EnableIntelligentGuardianMessages\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/guardian-features \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d\",\n    \"EnableIntelligentGuardianCalls\": true,\n    \"EnableIntelligentGuardianMessages\": true\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Guardian Features Saved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriberId": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                      "EnableIntelligentGuardianCalls": true,
                      "EnableIntelligentGuardianMessages": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d"
                  },
                  "EnableIntelligentGuardianCalls": {
                    "type": "boolean",
                    "description": "If `true`, AI Guardian monitors and filters this subscriber's voice calls. Must be `true` before any call filter will take effect.",
                    "example": true
                  },
                  "EnableIntelligentGuardianMessages": {
                    "type": "boolean",
                    "description": "If `true`, AI Guardian monitors and filters this subscriber's messages. Must be `true` before any message filter will take effect.",
                    "example": true
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Guardian Features",
        "description": "Check whether AI Guardian is currently enabled for a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing Subscriber (`TSUID-`)\n\n**What this does:** Returns the current `EnableIntelligentGuardianCalls` and `EnableIntelligentGuardianMessages` flags for the subscriber. Use this after toggling features to confirm the change took effect before applying filters or guardian relationships.\n\n**Next steps:**\n- Change the settings — `POST /v1.0/subscribers/guardian-features`\n- View existing filters — `GET /v1.0/subscribers/message-filter` or `GET /v1.0/subscribers/call-filter`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`."
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/guardian-features?SubscriberId=TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Guardian Features Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "SubscriberId": "TSUID-d7b3-4696-bdd9-5b407d9e99ee-3985-444b8d",
                      "EnableIntelligentGuardianCalls": true,
                      "EnableIntelligentGuardianMessages": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/guardians/relation": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Create Guardian Relation",
        "description": "Link a parent (guardian) subscriber to a child subscriber so the parent can supervise the child's communications.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Both subscribers must exist (`TSUID-`) — `POST /v1.0/subscribers/create`\n- AI Guardian must be enabled on both subscribers — `POST /v1.0/subscribers/guardian-features`\n\n**What this does:** Creates a one-way parent-to-child link. The parent gains the ability to receive filter notifications, manage filters on behalf of the child, and use age-preset modes (`CHILD`, `TEENAGER`, `ADOLESCENT`) on the child's call filters.\n\n**Next steps:**\n- Verify the link — `GET /v1.0/subscribers/guardians/relation/parent` (lookup by parent) or `GET /v1.0/subscribers/guardians/relation/child` (lookup by child)\n- Create message and call filters on the child — `POST /v1.0/subscribers/message-filter`, `POST /v1.0/subscribers/call-filter`\n- Remove the link later — `POST /v1.0/subscribers/guardians/relation/delete`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\",\n  \"Relation\": \"Guardian\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/guardians/relation \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\",\n    \"Relation\": \"Guardian\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Guardian Relation Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
                      "Relation": "Parent"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ParentSubscriberId",
                  "ChildSubscriberId",
                  "Relation"
                ],
                "properties": {
                  "ParentSubscriberId": {
                    "type": "string",
                    "description": "Subscriber ID of the parent (guardian). Format: `TSUID-` followed by a UUID. Both parent and child must already exist as subscribers and have AI Guardian enabled.",
                    "example": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "ChildSubscriberId": {
                    "type": "string",
                    "description": "Subscriber ID of the child (the subscriber being supervised). Format: `TSUID-` followed by a UUID.",
                    "example": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC"
                  },
                  "Relation": {
                    "type": "string",
                    "description": "Label describing the relationship (e.g., `Parent`, `Guardian`, `Caregiver`). Free-form string used for display and reporting.",
                    "example": "Guardian"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/guardians/relation/parent": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Guardian Relation Parent",
        "description": "List every child subscriber that a parent is currently linked to.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Parent Subscriber ID (`TSUID-`)\n\n**What this does:** Returns all guardian relations where the supplied subscriber is the parent. Use this to verify a relationship was set up correctly or to audit which children a guardian oversees.\n\n**Next steps:**\n- Look up the inverse (children's guardians) — `GET /v1.0/subscribers/guardians/relation/child`\n- Remove a relation — `POST /v1.0/subscribers/guardians/relation/delete`\n- Add a new relation — `POST /v1.0/subscribers/guardians/relation`",
        "parameters": [
          {
            "name": "ParentSubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Subscriber ID of the parent (guardian). Format: `TSUID-` followed by a UUID. Both parent and child must already exist as subscribers and have AI Guardian enabled."
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/guardians/relation/parent?ParentSubscriberId=TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Guardian Relations Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "Children": [
                        {
                          "ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                          "ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
                          "Relation": "Parent"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/guardians/relation/child": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Guardian Relation Child",
        "description": "List every parent (guardian) linked to a specific child subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Child Subscriber ID (`TSUID-`)\n\n**What this does:** Returns all guardian relations where the supplied subscriber is the child. Use this to confirm which guardians have oversight over a particular child account.\n\n**Next steps:**\n- Look up the inverse (a parent's children) — `GET /v1.0/subscribers/guardians/relation/parent`\n- Remove a relation — `POST /v1.0/subscribers/guardians/relation/delete`\n- Add a new relation — `POST /v1.0/subscribers/guardians/relation`",
        "parameters": [
          {
            "name": "ChildSubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Subscriber ID of the child (the subscriber being supervised). Format: `TSUID-` followed by a UUID."
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/guardians/relation/child?ChildSubscriberId=TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Guardian Relations Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
                      "Guardians": [
                        {
                          "ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                          "ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
                          "Relation": "Parent"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/guardians/relation/delete": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Remove Guardian Relation",
        "description": "Unlink a parent (guardian) from a child subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing parent-child relation\n\n**What this does:** Removes the guardian relation only. The subscribers themselves and their individual filters remain untouched. After removal, the parent will no longer receive filter notifications or be able to manage the child's filters.\n\n**Next steps:**\n- Confirm removal — `GET /v1.0/subscribers/guardians/relation/parent`\n- Re-establish the link later — `POST /v1.0/subscribers/guardians/relation`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/guardians/relation/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"ParentSubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"ChildSubscriberId\": \"TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Guardian Relation Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Status": "Deleted",
                      "DateDeleted": "2025-11-06T20:32:49.5228131+00:00",
                      "ParentSubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "ChildSubscriberId": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC",
                      "Relation": "Guardian"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ParentSubscriberId",
                  "ChildSubscriberId"
                ],
                "properties": {
                  "ParentSubscriberId": {
                    "type": "string",
                    "description": "Subscriber ID of the parent (guardian). Format: `TSUID-` followed by a UUID. Both parent and child must already exist as subscribers and have AI Guardian enabled.",
                    "example": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "ChildSubscriberId": {
                    "type": "string",
                    "description": "Subscriber ID of the child (the subscriber being supervised). Format: `TSUID-` followed by a UUID.",
                    "example": "TSUID-712C771C-2326-46E8-86BA-E4E58F3DABDC"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Create Call Filter",
        "description": "Create a new call filter that controls who can place or receive calls for a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing Subscriber (`TSUID-`) — `POST /v1.0/subscribers/create`\n- AI Guardian enabled for calls — `POST /v1.0/subscribers/guardian-features`\n- (Optional) For age-preset modes (`CHILD`, `TEENAGER`, `ADOLESCENT`): a parent-child guardian relation — `POST /v1.0/subscribers/guardians/relation`\n\n**What this does:** Creates a call filter and returns a `CallFilterId` (`CFID-`). Choose mode: `WHITELIST` (only allowed numbers ring through), `BLACKLIST` (block listed numbers, allow others), or an age preset that applies Telegent-recommended defaults. Configure transcription, keyword alerts, action on detection (warn/terminate/notify), and time-based restrictions. The filter takes effect immediately.\n\n**Next steps:**\n- Verify it was saved — `GET /v1.0/subscribers/call-filter`\n- Add allowed callers — `POST /v1.0/subscribers/call-filter/allowed-numbers/add`\n- Add blocked callers — `POST /v1.0/subscribers/call-filter/blocked-numbers/add`\n- Review keyword rules — `GET /v1.0/subscribers/call-filter/keywords`\n- Update later — `POST /v1.0/subscribers/call-filter/update`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"Phone\": \"+1234567890\",\n  \"FilterMode\": \"WHITELIST\",\n  \"AllowedNumbers\": [\"+1111111111\", \"+2222222222\"],\n  \"BlockedNumbers\": [\"+3333333333\"],\n  \"EnableTranscription\": true,\n  \"KeywordFilter\": \"{\\\"CustomKeywords\\\":[\\\"inappropriate\\\",\\\"banned\\\"],\\\"SystemKeywords\\\":{\\\"Profanity\\\":[\\\"word1\\\",\\\"word2\\\"],\\\"Violence\\\":[\\\"threat1\\\"]},\\\"SeverityMap\\\":{\\\"Word1\\\":\\\"HIGH\\\",\\\"Inappropriate\\\":\\\"MEDIUM\\\"}}\",\n  \"TranscriptionAction\": \"WARNING\",\n  \"WarningMessage\": \"This call may be terminated\",\n  \"NotificationPhones\": [\"+9999999999\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"Phone\": \"+1234567890\",\n    \"FilterMode\": \"WHITELIST\",\n    \"AllowedNumbers\": [\"+1111111111\", \"+2222222222\"],\n    \"BlockedNumbers\": [\"+3333333333\"],\n    \"EnableTranscription\": true,\n    \"TranscriptionAction\": \"WARNING\",\n    \"WarningMessage\": \"This call may be terminated\",\n    \"NotificationPhones\": [\"+9999999999\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Call Filter Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
                      "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "Phone": "+1234567890",
                      "FilterMode": "WHITELIST",
                      "AllowedNumbers": [
                        "+1111111111",
                        "+2222222222"
                      ],
                      "BlockedNumbers": [
                        "+3333333333"
                      ],
                      "EnableTranscription": true,
                      "KeywordFilter": "{\"CustomKeywords\":[\"inappropriate\",\"banned\"],\"SystemKeywords\":{\"Profanity\":[\"word1\",\"word2\"],\"Violence\":[\"threat1\"]},\"SeverityMap\":{\"Word1\":\"HIGH\",\"Inappropriate\":\"MEDIUM\"}}",
                      "TranscriptionAction": "WARNING",
                      "WarningMessage": "This call may be terminated",
                      "NotificationPhones": [
                        "+9999999999"
                      ],
                      "ApplyToOutbound": false,
                      "ApplyToInbound": false,
                      "BlockUnknownNumbers": false,
                      "BlockInternational": false,
                      "RecordFlaggedCalls": false,
                      "TimeRestrictions": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "Phone",
                  "FilterMode"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "Phone": {
                    "type": "string",
                    "description": "Phone number this filter applies to. Use E.164 format (e.g., `+15555555555`). Required even when `SubscriberId` is provided.",
                    "example": "+1234567890"
                  },
                  "FilterMode": {
                    "type": "string",
                    "enum": [
                      "WHITELIST",
                      "BLACKLIST",
                      "CHILD",
                      "TEENAGER",
                      "ADOLESCENT"
                    ],
                    "description": "Controls how the call filter behaves. `WHITELIST`: only allowed numbers can call — everyone else is blocked. `BLACKLIST`: blocked numbers are rejected, all others ring through. `CHILD`, `TEENAGER`, `ADOLESCENT`: age-based presets that apply Telegent's recommended defaults for that age group (combination of allowed/blocked rules and keyword sensitivity).",
                    "example": "WHITELIST"
                  },
                  "AllowedNumbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) allowed to call this subscriber. In `WHITELIST` mode, only these numbers can ring through."
                  },
                  "BlockedNumbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) blocked from calling this subscriber. Calls are rejected or silently dropped."
                  },
                  "EnableTranscription": {
                    "type": "boolean",
                    "description": "If `true`, calls are transcribed in real time and analyzed against the keyword rules. Required for any keyword-based call filtering or alerts to work."
                  },
                  "KeywordFilter": {
                    "type": "string",
                    "description": "Stringified JSON defining keyword rules. Structure: `{\"CustomKeywords\":[...],\"SystemKeywords\":{\"Profanity\":[...],\"Violence\":[...]},\"SeverityMap\":{\"keyword\":\"HIGH|MEDIUM|LOW\"}}`. `CustomKeywords` are user-added words; `SystemKeywords` are platform-provided categories; `SeverityMap` assigns a risk level to each term."
                  },
                  "TranscriptionAction": {
                    "type": "string",
                    "enum": [
                      "WARNING",
                      "TERMINATE",
                      "NOTIFY"
                    ],
                    "description": "What happens when a flagged keyword is detected during live transcription. `WARNING`: play `WarningMessage` to the caller but allow the call to continue. `TERMINATE`: end the call immediately. `NOTIFY`: alert `NotificationPhones` without interrupting the call."
                  },
                  "WarningMessage": {
                    "type": "string",
                    "description": "Text-to-speech message played to the caller when `TranscriptionAction` is set to `WARNING`. Keep it short and clear."
                  },
                  "NotificationPhones": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) that receive an alert when this filter triggers. Typically used for a guardian's phone to be notified about activity on a child's account."
                  },
                  "ApplyToOutbound": {
                    "type": "boolean",
                    "description": "If `true`, filtering applies to calls the subscriber places."
                  },
                  "ApplyToInbound": {
                    "type": "boolean",
                    "description": "If `true`, filtering applies to calls the subscriber receives."
                  },
                  "BlockUnknownNumbers": {
                    "type": "boolean",
                    "description": "If `true`, calls from any number not on the allowed list are blocked or sent to voicemail."
                  },
                  "BlockInternational": {
                    "type": "boolean",
                    "description": "If `true`, calls to or from numbers outside the subscriber's country code are blocked."
                  },
                  "RecordFlaggedCalls": {
                    "type": "boolean",
                    "description": "If `true`, any call flagged by keyword detection or other rules is recorded for later review."
                  },
                  "TimeRestrictions": {
                    "type": "object",
                    "description": "Optional schedule limiting when this filter is active (e.g., school hours, bedtime). Reserved for future use."
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Call Filters",
        "description": "List the call filters configured on a subscriber or phone number.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID or phone number to filter by (otherwise returns all)\n\n**What this does:** Returns the full configuration of each matching filter — mode, allowed/blocked number lists, transcription settings, and keyword alert rules. Use this to audit a subscriber's call controls or to find the `CallFilterId` (`CFID-`) you need for subsequent calls.\n\n**Next steps:**\n- Inspect allowed/blocked lists in detail — `GET /v1.0/subscribers/call-filter/allowed-numbers`, `GET /v1.0/subscribers/call-filter/blocked-numbers`\n- View keyword rules — `GET /v1.0/subscribers/call-filter/keywords`\n- Modify a filter — `POST /v1.0/subscribers/call-filter/update`\n- Remove a filter — `POST /v1.0/subscribers/call-filter/delete`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Return only filters belonging to this subscriber. Format: `TSUID-` followed by a UUID."
          },
          {
            "name": "Phone",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Return only filters tied to this phone number. Use E.164 format (e.g., `+15555555555`)."
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/call-filter?SubscriberId=TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Call Filters Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "examples": {
                  "example": {
                    "value": [
                      {
                        "FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
                        "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                        "Phone": "+1234567890",
                        "FilterMode": "WHITELIST",
                        "AllowedNumbers": [
                          "+1111111111",
                          "+2222222222"
                        ],
                        "BlockedNumbers": [
                          "+3333333333"
                        ],
                        "EnableTranscription": true,
                        "TranscriptionAction": "WARNING",
                        "WarningMessage": "This call may be terminated",
                        "NotificationPhones": [
                          "+9999999999"
                        ],
                        "ApplyToOutbound": false,
                        "ApplyToInbound": false,
                        "BlockUnknownNumbers": false,
                        "BlockInternational": false,
                        "RecordFlaggedCalls": false
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/update": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Update Call Filter",
        "description": "Modify an existing call filter without deleting and recreating it.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing `CallFilterId` (`CFID-`) — find one with `GET /v1.0/subscribers/call-filter`\n\n**What this does:** Replaces the configuration of the specified filter. Use this to change modes (e.g., `BLACKLIST` → `WHITELIST`), update allowed/blocked number lists, toggle transcription, change keyword alerts, or adjust restrictions like blocking unknown or international numbers. Note: the Update endpoint only accepts `WHITELIST` and `BLACKLIST` modes — age presets must be set on creation.\n\n**Next steps:**\n- Verify the change — `GET /v1.0/subscribers/call-filter`\n- Pause without deleting — use `POST /v1.0/subscribers/call-filter/update` with `EnableTranscription` off and an empty rules set, or delete the filter\n- Permanently remove — `POST /v1.0/subscribers/call-filter/delete`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"FilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\",\n  \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"Phone\": \"+1234567891\",\n  \"FilterMode\": \"WHITELIST\",\n  \"AllowedNumbers\": [\"+1111111111\", \"+2222222222\"],\n  \"BlockedNumbers\": [\"+3333333333\"],\n  \"EnableTranscription\": true,\n  \"KeywordFilter\": \"{\\\"CustomKeywords\\\":[\\\"inappropriate\\\",\\\"banned\\\"],\\\"SystemKeywords\\\":{\\\"Profanity\\\":[\\\"word1\\\",\\\"word2\\\"],\\\"Violence\\\":[\\\"threat1\\\"]},\\\"SeverityMap\\\":{\\\"Word1\\\":\\\"HIGH\\\",\\\"Inappropriate\\\":\\\"MEDIUM\\\"}}\",\n  \"TranscriptionAction\": \"WARNING\",\n  \"WarningMessage\": \"This call may be terminated\",\n  \"NotificationPhones\": [\"+9999999999\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"FilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\",\n    \"SubscriberId\": \"SID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"Phone\": \"+1234567891\",\n    \"FilterMode\": \"WHITELIST\",\n    \"AllowedNumbers\": [\"+1111111111\", \"+2222222222\"],\n    \"BlockedNumbers\": [\"+3333333333\"],\n    \"EnableTranscription\": true,\n    \"TranscriptionAction\": \"WARNING\",\n    \"WarningMessage\": \"This call may be terminated\",\n    \"NotificationPhones\": [\"+9999999999\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Call Filter Updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
                      "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "Phone": "+1234567891",
                      "FilterMode": "WHITELIST",
                      "AllowedNumbers": [
                        "+1111111111",
                        "+2222222222"
                      ],
                      "BlockedNumbers": [
                        "+3333333333"
                      ],
                      "EnableTranscription": true,
                      "TranscriptionAction": "WARNING",
                      "WarningMessage": "This call may be terminated",
                      "NotificationPhones": [
                        "+9999999999"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "FilterId"
                ],
                "properties": {
                  "FilterId": {
                    "type": "string",
                    "description": "The Call Filter ID you want to update. Format: `CFID-` followed by a UUID.",
                    "example": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499"
                  },
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`."
                  },
                  "Phone": {
                    "type": "string",
                    "description": "Phone number this filter applies to. Use E.164 format (e.g., `+15555555555`). Required even when `SubscriberId` is provided."
                  },
                  "FilterMode": {
                    "type": "string",
                    "enum": [
                      "WHITELIST",
                      "BLACKLIST"
                    ],
                    "description": "Controls how the call filter behaves. `WHITELIST`: only allowed numbers can call — everyone else is blocked. `BLACKLIST`: blocked numbers are rejected, all others ring through."
                  },
                  "AllowedNumbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) allowed to call this subscriber. In `WHITELIST` mode, only these numbers can ring through."
                  },
                  "BlockedNumbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) blocked from calling this subscriber. Calls are rejected or silently dropped."
                  },
                  "EnableTranscription": {
                    "type": "boolean",
                    "description": "If `true`, calls are transcribed in real time and analyzed against the keyword rules. Required for any keyword-based call filtering or alerts to work."
                  },
                  "KeywordFilter": {
                    "type": "string",
                    "description": "Stringified JSON defining keyword rules. Structure: `{\"CustomKeywords\":[...],\"SystemKeywords\":{\"Profanity\":[...],\"Violence\":[...]},\"SeverityMap\":{\"keyword\":\"HIGH|MEDIUM|LOW\"}}`. `CustomKeywords` are user-added words; `SystemKeywords` are platform-provided categories; `SeverityMap` assigns a risk level to each term."
                  },
                  "TranscriptionAction": {
                    "type": "string",
                    "enum": [
                      "WARNING",
                      "TERMINATE",
                      "NOTIFY"
                    ],
                    "description": "What happens when a flagged keyword is detected during live transcription. `WARNING`: play `WarningMessage` to the caller but allow the call to continue. `TERMINATE`: end the call immediately. `NOTIFY`: alert `NotificationPhones` without interrupting the call."
                  },
                  "WarningMessage": {
                    "type": "string",
                    "description": "Text-to-speech message played to the caller when `TranscriptionAction` is set to `WARNING`. Keep it short and clear."
                  },
                  "NotificationPhones": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Phone numbers (E.164 format) that receive an alert when this filter triggers. Typically used for a guardian's phone to be notified about activity on a child's account."
                  },
                  "ApplyToOutbound": {
                    "type": "boolean",
                    "description": "If `true`, filtering applies to calls the subscriber places."
                  },
                  "ApplyToInbound": {
                    "type": "boolean",
                    "description": "If `true`, filtering applies to calls the subscriber receives."
                  },
                  "BlockUnknownNumbers": {
                    "type": "boolean",
                    "description": "If `true`, calls from any number not on the allowed list are blocked or sent to voicemail."
                  },
                  "BlockInternational": {
                    "type": "boolean",
                    "description": "If `true`, calls to or from numbers outside the subscriber's country code are blocked."
                  },
                  "RecordFlaggedCalls": {
                    "type": "boolean",
                    "description": "If `true`, any call flagged by keyword detection or other rules is recorded for later review."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/delete": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Delete Call Filter",
        "description": "Permanently remove a call filter from a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- An existing `CallFilterId` (`CFID-`)\n\n**What this does:** Permanently deletes the filter and all its associated allowed/blocked numbers and keyword rules. Calls will no longer be filtered after this call. **This cannot be undone.**\n\n**Next steps:**\n- Confirm removal — `GET /v1.0/subscribers/call-filter`\n- Create a new filter — `POST /v1.0/subscribers/call-filter`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"CallFilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"CallFilterId\": \"CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Call Filter Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Status": "Deleted",
                      "FilterId": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499",
                      "DateDeleted": "2025-11-07T00:23:57.4465319+00:00"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "CallFilterId"
                ],
                "properties": {
                  "CallFilterId": {
                    "type": "string",
                    "description": "The Call Filter ID you want to permanently delete. Format: `CFID-` followed by a UUID. This cannot be undone.",
                    "example": "CFID-05c3d6d2-21c2-4fab-8c7c-12746cad1499"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/allowed-numbers": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Allowed Numbers",
        "description": "View the list of phone numbers allowed to call a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `CallFilterId` (`CFID-`) — find one with `GET /v1.0/subscribers/call-filter`\n\n**What this does:** Returns every phone number on the allowed list. In `WHITELIST` mode, only these numbers can ring through to the subscriber — all other callers are blocked or sent to voicemail.\n\n**Next steps:**\n- Add a new trusted caller — `POST /v1.0/subscribers/call-filter/allowed-numbers/add`\n- Remove someone from the list — `POST /v1.0/subscribers/call-filter/allowed-numbers/remove`\n- View the blocked side — `GET /v1.0/subscribers/call-filter/blocked-numbers`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`."
          },
          {
            "name": "CallFilterId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Call Filter ID. Format: `CFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/call-filter` (Create) or `GET /v1.0/subscribers/call-filter` (List)."
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/call-filter/allowed-numbers?SubscriberId=TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441&CallFilterId=CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Allowed Numbers Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "examples": {
                  "example": {
                    "value": [
                      "+1111111111"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/allowed-numbers/add": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Add Allowed Numbers",
        "description": "Add trusted phone numbers that are allowed to call a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and an existing `CallFilterId` (`CFID-`)\n- Filter is in `WHITELIST` mode for the allow list to actively gate callers (in other modes, the list is informational)\n\n**What this does:** Adds one or more phone numbers to the allowed callers list. In `WHITELIST` mode, only numbers on this list can ring the subscriber — all others are blocked or sent to voicemail. Common use case: family members, doctors, or known business contacts.\n\n**Next steps:**\n- Verify the addition — `GET /v1.0/subscribers/call-filter/allowed-numbers`\n- Undo — `POST /v1.0/subscribers/call-filter/allowed-numbers/remove`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"CallFilterId\": \"CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6\",\n  \"Numbers\": [\"+15555555555\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter/allowed-numbers/add \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"CallFilterId\": \"CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6\",\n    \"Numbers\": [\"+15555555555\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Allowed Numbers Added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6",
                      "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "AllowedNumbers": [
                        "+1111111111",
                        "+15555555555"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "CallFilterId",
                  "Numbers"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "CallFilterId": {
                    "type": "string",
                    "description": "Call Filter ID. Format: `CFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/call-filter` (Create) or `GET /v1.0/subscribers/call-filter` (List).",
                    "example": "CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6"
                  },
                  "Numbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "One or more phone numbers (E.164 format) to add to the list. Each number must start with `+` and country code, e.g., `+15555555555`.",
                    "example": [
                      "+15555555555"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/allowed-numbers/remove": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Remove Allowed Numbers",
        "description": "Remove phone numbers from the allowed callers list.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `CallFilterId` (`CFID-`)\n- Numbers must currently be on the allowed list — confirm with `GET /v1.0/subscribers/call-filter/allowed-numbers`\n\n**What this does:** Removes one or more phone numbers from the allowed list. In `WHITELIST` mode, calls from those numbers will no longer ring through and are treated like any other non-allowed caller.\n\n**Next steps:**\n- Verify the removal — `GET /v1.0/subscribers/call-filter/allowed-numbers`\n- Block the caller instead — `POST /v1.0/subscribers/call-filter/blocked-numbers/add`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"CallFilterId\": \"CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6\",\n  \"Numbers\": [\"+15555555555\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter/allowed-numbers/remove \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"CallFilterId\": \"CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6\",\n    \"Numbers\": [\"+15555555555\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Allowed Numbers Removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6",
                      "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "AllowedNumbers": [
                        "+1111111111"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "CallFilterId",
                  "Numbers"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "CallFilterId": {
                    "type": "string",
                    "description": "Call Filter ID. Format: `CFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/call-filter` (Create) or `GET /v1.0/subscribers/call-filter` (List).",
                    "example": "CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6"
                  },
                  "Numbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "One or more phone numbers (E.164 format) to remove from the list.",
                    "example": [
                      "+15555555555"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/blocked-numbers": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Blocked Numbers",
        "description": "View the list of phone numbers blocked from calling a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `CallFilterId` (`CFID-`)\n\n**What this does:** Returns every phone number currently blocked. Calls from blocked numbers are rejected or silently dropped — the caller may hear a disconnect tone or nothing at all.\n\n**Next steps:**\n- Block a new caller — `POST /v1.0/subscribers/call-filter/blocked-numbers/add`\n- Unblock someone — `POST /v1.0/subscribers/call-filter/blocked-numbers/remove`\n- View the allowed side — `GET /v1.0/subscribers/call-filter/allowed-numbers`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`."
          },
          {
            "name": "CallFilterId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Call Filter ID. Format: `CFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/call-filter` (Create) or `GET /v1.0/subscribers/call-filter` (List)."
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/call-filter/blocked-numbers?SubscriberId=TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441&CallFilterId=CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Blocked Numbers Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "examples": {
                  "example": {
                    "value": [
                      "+3333333333"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/blocked-numbers/add": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Add Blocked Numbers",
        "description": "Block phone numbers from calling a subscriber.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and an existing `CallFilterId` (`CFID-`)\n\n**What this does:** Adds one or more phone numbers to the blocked list. Calls from blocked numbers are rejected or silently dropped — the caller may hear a disconnect tone or nothing at all. Common use case: preventing unwanted, scam, or harassing callers from reaching a subscriber.\n\n**Next steps:**\n- Verify the addition — `GET /v1.0/subscribers/call-filter/blocked-numbers`\n- Undo — `POST /v1.0/subscribers/call-filter/blocked-numbers/remove`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"CallFilterId\": \"CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6\",\n  \"Numbers\": [\"+15555555555\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter/blocked-numbers/add \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"CallFilterId\": \"CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6\",\n    \"Numbers\": [\"+15555555555\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Blocked Numbers Added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6",
                      "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "BlockedNumbers": [
                        "+3333333333",
                        "+15555555555"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "CallFilterId",
                  "Numbers"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "CallFilterId": {
                    "type": "string",
                    "description": "Call Filter ID. Format: `CFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/call-filter` (Create) or `GET /v1.0/subscribers/call-filter` (List).",
                    "example": "CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6"
                  },
                  "Numbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "One or more phone numbers (E.164 format) to add to the list. Each number must start with `+` and country code, e.g., `+15555555555`.",
                    "example": [
                      "+15555555555"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/blocked-numbers/remove": {
      "post": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Remove Blocked Numbers",
        "description": "Unblock phone numbers so they can call the subscriber again.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `CallFilterId` (`CFID-`)\n- Numbers must currently be on the blocked list — confirm with `GET /v1.0/subscribers/call-filter/blocked-numbers`\n\n**What this does:** Removes one or more phone numbers from the blocked list. After removal, calls from those numbers are handled normally according to the active filter mode (e.g., they will ring through in `BLACKLIST` mode unless they're caught by another rule).\n\n**Next steps:**\n- Verify the removal — `GET /v1.0/subscribers/call-filter/blocked-numbers`\n- Add to allowed instead — `POST /v1.0/subscribers/call-filter/allowed-numbers/add`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"SubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n  \"CallFilterId\": \"CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6\",\n  \"Numbers\": [\"+15555555555\"]\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/subscribers/call-filter/blocked-numbers/remove \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"SubscriberId\": \"TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441\",\n    \"CallFilterId\": \"CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6\",\n    \"Numbers\": [\"+15555555555\"]\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Blocked Numbers Removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FilterId": "CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6",
                      "SubscriberId": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441",
                      "BlockedNumbers": [
                        "+3333333333"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "SubscriberId",
                  "CallFilterId",
                  "Numbers"
                ],
                "properties": {
                  "SubscriberId": {
                    "type": "string",
                    "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`.",
                    "example": "TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441"
                  },
                  "CallFilterId": {
                    "type": "string",
                    "description": "Call Filter ID. Format: `CFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/call-filter` (Create) or `GET /v1.0/subscribers/call-filter` (List).",
                    "example": "CFID-8e966d20-08b8-42bf-a11f-2fdf72c663d6"
                  },
                  "Numbers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "One or more phone numbers (E.164 format) to remove from the list.",
                    "example": [
                      "+15555555555"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/workgroups": {
      "post": {
        "tags": [
          "Workgroups"
        ],
        "summary": "Create Workgroup",
        "description": "**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Required:** Voice Route ID (CRID) — `POST /v1.0/voice/routes`\n\n---\n\nCreate a new workgroup for intelligent call routing. Workgroups support types such as IVR, simultaneous ring, and round-robin distribution. Returns a unique WorkgroupId.\n\n**What this does:** Returns the new workgroup's `WorkgroupId` (`WG-`) and full configuration. Once created, add members using `POST /v1.0/workgroups/activity` and assign the workgroup to a voice route.\n\n**Next steps:**\n- Add members — `POST /v1.0/workgroups/activity`\n- View account workgroups — `GET /v1.0/account/workgroups`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"Name\": \"IVR Workgroup\",\n  \"TelegentPhone\": \"+1234567890\",\n  \"Type\": \"IVR\",\n  \"CallOrder\": \"1\",\n  \"AnnouncementText\": \"Hello, welcome to Telegent. Press 1 for Sales, Press 2 for Support.\",\n  \"ScheduleId\": \"SID-3741d220-0663-4289-85df-c203f43db5a6\",\n  \"RecordCalls\": true,\n  \"TranscribeRecordings\": false\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/workgroups \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"Name\": \"IVR Workgroup\",\n    \"TelegentPhone\": \"+1234567890\",\n    \"Type\": \"IVR\",\n    \"ScheduleId\": \"SID-3741d220-0663-4289-85df-c203f43db5a6\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns the new Workgroup ID (WID-) and configuration",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "WorkgroupId": "WID-12345-abc-12345",
                      "Name": "IVR Workgroup",
                      "TelegentPhone": "+1234567890",
                      "Type": "IVR",
                      "CallOrder": "1",
                      "AnnouncementText": "Hello, welcome to Telegent. Press 1 for Sales, Press 2 for Support.",
                      "ScheduleId": "SID-3741d220-0663-4289-85df-c203f43db5a6",
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "Name",
                  "Type"
                ],
                "properties": {
                  "Name": {
                    "type": "string",
                    "description": "Friendly name for the workgroup",
                    "example": "IVR Workgroup"
                  },
                  "TelegentPhone": {
                    "type": "string",
                    "description": "Phone number assigned to this workgroup (E.164 format)",
                    "example": "+1234567890"
                  },
                  "Type": {
                    "type": "string",
                    "enum": [
                      "IVR",
                      "simultaneous",
                      "round-robin"
                    ],
                    "description": "Workgroup routing type",
                    "example": "IVR"
                  },
                  "CallOrder": {
                    "type": "string",
                    "description": "Call distribution order",
                    "example": "1"
                  },
                  "AnnouncementText": {
                    "type": "string",
                    "description": "Text-to-speech announcement played to callers"
                  },
                  "AnnouncementUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "URL of audio file for announcement"
                  },
                  "InternalExtension": {
                    "type": "string",
                    "description": "Internal extension number"
                  },
                  "CallerIdType": {
                    "type": "string",
                    "description": "Caller ID type configuration"
                  },
                  "CallerIdName": {
                    "type": "string",
                    "description": "Caller ID name"
                  },
                  "RecordCalls": {
                    "type": "boolean",
                    "description": "Enable call recording",
                    "example": true
                  },
                  "TranscribeRecordings": {
                    "type": "boolean",
                    "description": "Enable transcription of recordings",
                    "example": false
                  },
                  "ScheduleId": {
                    "type": "string",
                    "description": "Schedule ID to associate with this workgroup",
                    "example": "SID-3741d220-0663-4289-85df-c203f43db5a6"
                  },
                  "TimeZone": {
                    "type": "string",
                    "description": "Timezone for schedule (e.g., America/New_York)"
                  },
                  "HoldMusicId": {
                    "type": "string",
                    "description": "ID of hold music to play"
                  },
                  "AiRecording": {
                    "type": "boolean",
                    "description": "Enable AI-enhanced recording"
                  },
                  "OffHoursType": {
                    "type": "string",
                    "description": "Off-hours routing type (User or Workgroup)"
                  },
                  "OffHoursId": {
                    "type": "string",
                    "description": "User ID or Workgroup ID for off-hours routing"
                  },
                  "OnHoursType": {
                    "type": "string",
                    "description": "On-hours routing type (User or Workgroup)"
                  },
                  "OnHoursId": {
                    "type": "string",
                    "description": "User ID or Workgroup ID for on-hours routing"
                  },
                  "WaitBetween": {
                    "type": "string",
                    "description": "Wait time between call attempts"
                  },
                  "TollFreeNumber": {
                    "type": "string",
                    "description": "Toll-free number associated with workgroup"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID to associate workgroup with"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Workgroups"
        ],
        "summary": "Get Workgroup Details",
        "description": "Retrieve configuration details for a specific workgroup by its WorkgroupId. Returns the workgroup's name, type, members, schedule, and routing settings.\n\n**What this does:** Returns the full workgroup configuration including name, type, assigned phone number, schedule, timezone, hold music, off-hours forwarding rules, and member activities. Use this to audit a workgroup or retrieve the `WG-` ID for use in route configuration.\n\n**Next steps:**\n- Add a member — `POST /v1.0/workgroups/activity`\n- Update the workgroup — `POST /v1.0/workgroups/update`\n- Attach to a voice route — `POST /v1.0/voice/routes/update`",
        "parameters": [
          {
            "name": "WorkgroupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The workgroup ID to retrieve details for"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/workgroups?WorkgroupId=WG-abc123' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns workgroup configuration details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "WorkgroupId": "WG-abc123",
                      "Name": "Support Team",
                      "Type": "ring",
                      "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "Active": true,
                      "ScheduleId": "SCH-abc123"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/workgroups/update": {
      "post": {
        "tags": [
          "Workgroups"
        ],
        "summary": "Update Workgroup",
        "description": "Update an existing workgroup configuration. Requires the WorkgroupId of the workgroup to modify.\n\n**What this does:** Returns the updated workgroup configuration. Only fields you send are changed; omitted fields retain their current values. Changes apply immediately to all calls routing through this workgroup.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/workgroups`\n- View members — `POST /v1.0/workgroups/activity`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"WorkgroupId\": \"WID-12345-abc-12345\",\n  \"Name\": \"Updated IVR Workgroup\",\n  \"Type\": \"round-robin\",\n  \"ScheduleId\": \"SID-3741d220-0663-4289-85df-c203f43db5a6\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/workgroups/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"WorkgroupId\": \"WID-12345-abc-12345\",\n    \"Name\": \"Updated IVR Workgroup\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Workgroup Updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "WorkgroupId": "WID-12345-abc-12345",
                      "Name": "Updated IVR Workgroup",
                      "Type": "round-robin"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "WorkgroupId"
                ],
                "properties": {
                  "WorkgroupId": {
                    "type": "string",
                    "description": "Unique identifier of the workgroup to update",
                    "example": "WID-12345-abc-12345"
                  },
                  "Name": {
                    "type": "string",
                    "description": "New name for the workgroup"
                  },
                  "TelegentPhone": {
                    "type": "string",
                    "description": "Phone number assigned to this workgroup"
                  },
                  "Type": {
                    "type": "string",
                    "enum": [
                      "IVR",
                      "simultaneous",
                      "round-robin"
                    ],
                    "description": "Workgroup routing type"
                  },
                  "CallOrder": {
                    "type": "string",
                    "description": "Call distribution order"
                  },
                  "AnnouncementText": {
                    "type": "string",
                    "description": "Text-to-speech announcement"
                  },
                  "AnnouncementUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "URL of audio file for announcement"
                  },
                  "ScheduleId": {
                    "type": "string",
                    "description": "Schedule ID to associate"
                  },
                  "TimeZone": {
                    "type": "string",
                    "description": "Timezone for schedule"
                  },
                  "RecordCalls": {
                    "type": "boolean",
                    "description": "Enable call recording"
                  },
                  "TranscribeRecordings": {
                    "type": "boolean",
                    "description": "Enable transcription"
                  },
                  "OffHoursType": {
                    "type": "string",
                    "description": "Off-hours routing type"
                  },
                  "OffHoursId": {
                    "type": "string",
                    "description": "User or Workgroup ID for off-hours"
                  },
                  "OnHoursType": {
                    "type": "string",
                    "description": "On-hours routing type"
                  },
                  "OnHoursId": {
                    "type": "string",
                    "description": "User or Workgroup ID for on-hours"
                  },
                  "AccountId": {
                    "type": "string",
                    "description": "Account ID"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/workgroups/activity": {
      "post": {
        "tags": [
          "Workgroups"
        ],
        "summary": "Create Workgroup Activity",
        "description": "Add a member (user or nested workgroup) to an existing workgroup. Each activity defines how calls are distributed to that member including their position (DigitOrder) and notification preferences.\n\n**What this does:** Returns the new activity record including the `ActivityId` and member configuration. Each activity represents one member in the workgroup ring sequence. The `CallOrder` field determines ring priority.\n\n**Next steps:**\n- Update a member — `POST /v1.0/workgroups/activity/update`\n- Remove a member — `POST /v1.0/workgroups/activity/delete`\n- View the workgroup — `GET /v1.0/workgroups`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"DigitOrder\": 1,\n  \"PhoneNumber\": \"+1234567890\",\n  \"WorkgroupId\": \"WID-12345-abc-12345\",\n  \"Type\": \"Workgroup\",\n  \"ReferenceWorkgroupId\": \"WID-12345-abc-12345\",\n  \"ReferenceUserId\": \"\",\n  \"SmsNotification\": true,\n  \"EmailNotification\": false\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/workgroups/activity \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"DigitOrder\": 1,\n    \"WorkgroupId\": \"WID-12345-abc-12345\",\n    \"Type\": \"User\",\n    \"ReferenceUserId\": \"USER-abc-123\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Workgroup Activity Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "WorkgroupActivityStatus": "Created",
                      "WorkgroupActivityId": "WAID-4dec6beb-3985-444b-8c06-8baa70dc1416"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "WorkgroupId",
                  "Type"
                ],
                "properties": {
                  "DigitOrder": {
                    "type": "integer",
                    "description": "IVR digit or ring order position for this member",
                    "example": 1
                  },
                  "PhoneNumber": {
                    "type": "string",
                    "description": "Phone number for this activity member (E.164 format)",
                    "example": "+1234567890"
                  },
                  "WorkgroupId": {
                    "type": "string",
                    "description": "Parent workgroup ID to add this activity to",
                    "example": "WID-12345-abc-12345"
                  },
                  "Type": {
                    "type": "string",
                    "enum": [
                      "User",
                      "Workgroup"
                    ],
                    "description": "Member type - User or nested Workgroup",
                    "example": "Workgroup"
                  },
                  "ReferenceWorkgroupId": {
                    "type": "string",
                    "description": "Referenced workgroup ID (when Type is Workgroup)",
                    "example": "WID-12345-abc-12345"
                  },
                  "ReferenceUserId": {
                    "type": "string",
                    "description": "Referenced user ID (when Type is User)"
                  },
                  "SmsNotification": {
                    "type": "boolean",
                    "description": "Enable SMS notification for this member",
                    "example": true
                  },
                  "EmailNotification": {
                    "type": "boolean",
                    "description": "Enable email notification for this member",
                    "example": false
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/workgroups/activity/update": {
      "post": {
        "tags": [
          "Workgroups"
        ],
        "summary": "Update Workgroup Activity",
        "description": "Update the configuration of a member within a workgroup. A workgroup activity represents an individual agent, destination, or nested workgroup within a ring group. Modify fields such as dial order (DigitOrder), forwarding number, or notification preferences. Requires the WorkgroupActivityId (WAID-) of the activity to update.\n\n**What this does:** Returns the updated activity record. Use this to change a member's ring order, SIP details, or timeout settings within the workgroup.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/workgroups`\n- Remove the member — `POST /v1.0/workgroups/activity/delete`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"WorkgroupActivityId\": \"WAID-12345-abc-123456\",\n  \"DigitOrder\": 2,\n  \"PhoneNumber\": \"+1234567890\",\n  \"WorkgroupId\": \"WID-12345-abc-12345\",\n  \"Type\": \"User\",\n  \"ReferenceUserId\": \"USER-abc-456\",\n  \"SmsNotification\": true,\n  \"EmailNotification\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/workgroups/activity/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"WorkgroupActivityId\": \"WAID-12345-abc-123456\",\n    \"DigitOrder\": 2\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Workgroup Activity Updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "WorkgroupActivityStatus": "Updated",
                      "WorkgroupActivityId": "WAID-12345-abc-123456"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "WorkgroupActivityId"
                ],
                "properties": {
                  "WorkgroupActivityId": {
                    "type": "string",
                    "description": "Unique identifier of the workgroup activity to update",
                    "example": "WAID-12345-abc-123456"
                  },
                  "DigitOrder": {
                    "type": "integer",
                    "description": "IVR digit or ring order position",
                    "example": 2
                  },
                  "PhoneNumber": {
                    "type": "string",
                    "description": "Phone number to ring or forward to for this activity. Use E.164 format (e.g., `+15555555555`).",
                    "example": "+1234567890"
                  },
                  "WorkgroupId": {
                    "type": "string",
                    "description": "Parent workgroup ID",
                    "example": "WID-12345-abc-12345"
                  },
                  "Type": {
                    "type": "string",
                    "enum": [
                      "User",
                      "Workgroup"
                    ],
                    "description": "Member type"
                  },
                  "ReferenceWorkgroupId": {
                    "type": "string",
                    "description": "Referenced workgroup ID"
                  },
                  "ReferenceUserId": {
                    "type": "string",
                    "description": "Referenced user ID"
                  },
                  "SmsNotification": {
                    "type": "boolean",
                    "description": "Enable SMS notification"
                  },
                  "EmailNotification": {
                    "type": "boolean",
                    "description": "Enable email notification"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/workgroups/activity/delete": {
      "post": {
        "tags": [
          "Workgroups"
        ],
        "summary": "Delete Workgroup Activity",
        "description": "Remove a member activity from a workgroup. The workgroup itself is not deleted.\n\n**What this does:** Returns a deletion confirmation. Removing the activity removes that member from the workgroup's ring sequence. The workgroup itself is not affected.\n\n**Next steps:**\n- View the updated workgroup — `GET /v1.0/workgroups`\n- Add a replacement member — `POST /v1.0/workgroups/activity`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"WorkgroupActivityId\": \"WAID-4dec6beb-3985-444b-8c06-8baa70dc1416\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/workgroups/activity/delete \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"WorkgroupActivityId\": \"WAID-4dec6beb-3985-444b-8c06-8baa70dc1416\"\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Workgroup Activity Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "WorkgroupActivityStatus": "Deleted",
                      "WorkgroupActivityId": "WAID-4dec6beb-3985-444b-8c06-8baa70dc1416"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "WorkgroupActivityId"
                ],
                "properties": {
                  "WorkgroupActivityId": {
                    "type": "string",
                    "description": "Unique identifier of the workgroup activity to delete",
                    "example": "WAID-4dec6beb-3985-444b-8c06-8baa70dc1416"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/workgroups/delete": {
      "post": {
        "tags": [
          "Workgroups"
        ],
        "summary": "Delete Workgroup",
        "description": "Permanently remove a workgroup. Before deleting, ensure the workgroup is not assigned to any active voice routes or numbers.\n\n**What this does:** Returns a deletion confirmation. Ensure the workgroup is not assigned to any active voice routes before deleting to avoid call routing failures.\n\n**Next steps:**\n- View account workgroups — `GET /v1.0/account/workgroups`\n- Create a replacement — `POST /v1.0/workgroups`",
        "parameters": [
          {
            "name": "WorkgroupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The workgroup ID to delete"
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X POST 'https://api.telegent.com/v1.0/workgroups/delete?WorkgroupId=WG-abc123' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Success — returns deletion confirmation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "WorkgroupId": "WG-abc123",
                      "Successful": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/account/schedules": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Account Schedules",
        "description": "Retrieve a list of all schedules configured for your account.\n\n**What this does:** Returns a list of schedule IDs and names configured on the account. Schedules control business-hours routing for workgroups. Use this to look up a `SCH-` ID before attaching it to a workgroup.\n\n**Next steps:**\n- Get full schedule details — `GET /v1.0/schedules`\n- Create a schedule — `POST /v1.0/schedules`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/account/schedules' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Account Schedules List",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "AccountID": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                      "TotalSchedules": 2,
                      "Results": [
                        {
                          "ScheduleId": "SID-12345-abc-12345",
                          "Name": "Business Hours",
                          "AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
                          "MondayStartTime": "8:00 AM",
                          "MondayEndTime": "5:00 PM",
                          "TuesdayStartTime": "8:00 AM",
                          "TuesdayEndTime": "5:00 PM",
                          "WednesdayStartTime": "8:00 AM",
                          "WednesdayEndTime": "5:00 PM",
                          "ThursdayStartTime": "8:00 AM",
                          "ThursdayEndTime": "5:00 PM",
                          "FridayStartTime": "8:00 AM",
                          "FridayEndTime": "5:00 PM",
                          "SaturdayStartTime": "",
                          "SaturdayEndTime": "",
                          "SundayStartTime": "",
                          "SundayEndTime": ""
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/subscribers/call-filter/keywords": {
      "get": {
        "tags": [
          "Subscribers"
        ],
        "summary": "Get Call Filter Keywords",
        "description": "View the keyword monitoring rules attached to a call filter.\n\n**Prerequisites:**\n- Bearer token — `POST /v1.0/oauth2/tokens`\n- Subscriber ID and `CallFilterId` (`CFID-`)\n- Call transcription must be enabled on the filter for keywords to take effect at runtime — set `EnableTranscription` to `true` via `POST /v1.0/subscribers/call-filter/update`\n\n**What this does:** Returns the keyword filter configuration: `CustomKeywords` (your own words), `SystemKeywords` (Telegent-provided categories like Profanity, Threats), and `SeverityMap` (risk level per term: `HIGH`/`MEDIUM`/`LOW`). When transcription is on, calls are analyzed against these keywords and the configured `TranscriptionAction` is taken when a match is found.\n\n**Next steps:**\n- Add or change keywords — `POST /v1.0/subscribers/call-filter/update` (use the `KeywordFilter` field)\n- See the rest of the filter — `GET /v1.0/subscribers/call-filter`",
        "parameters": [
          {
            "name": "SubscriberId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Telegent Subscriber ID. Format: `TSUID-` followed by a UUID. Create one via `POST /v1.0/subscribers/create` or look up existing IDs with `GET /v1.0/subscribers/get`."
          },
          {
            "name": "CallFilterId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Call Filter ID. Format: `CFID-` followed by a UUID. Returned by `POST /v1.0/subscribers/call-filter` (Create) or `GET /v1.0/subscribers/call-filter` (List)."
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-codeSamples": [
          {
            "lang": "cURL",
            "source": "curl -X GET 'https://api.telegent.com/v1.0/subscribers/call-filter/keywords?SubscriberId=TSUID-C7AB61E0-9AD9-4512-ACA8-EDA284131441&CallFilterId=CFID-4bb4817b-7399-4949-97e9-ecad885a190f' \\\n  -H 'Authorization: Bearer YOUR_TOKEN'"
          }
        ],
        "responses": {
          "200": {
            "description": "Keywords Retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "CustomKeywords": [
                        "inappropriate",
                        "banned"
                      ],
                      "SystemKeywords": {
                        "Profanity": [
                          "word1",
                          "word2"
                        ],
                        "Violence": [
                          "threat1"
                        ]
                      },
                      "SeverityMap": {
                        "Word1": "HIGH",
                        "Inappropriate": "MEDIUM"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/numbers/data-usage/update-renewal-info": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Data Usage Update Renewal Info",
        "description": "Configure the monthly or weekly data usage renewal cycle for one or more phone numbers. Use this endpoint to set the day usage resets, enable or disable auto-renew, and optionally zero out current usage immediately.\n\n**What this does:** Updates the renewal schedule anchored to each number's individual  — this is not a global calendar reset. Set  to zero out a number's current usage immediately without waiting for the next cycle.\n\n**Next steps:**\n- Confirm current usage after a reset — \n- Review configured thresholds — ",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumbers\": [\n    { \"Number\": \"+18014730876\" }\n  ],\n  \"ResetUsage\": false,\n  \"AutoRenew\": true,\n  \"PeriodType\": \"M\",\n  \"PeriodValue\": 1,\n  \"RenewalDay\": 1\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/data-usage/update-renewal-info \\n  -H 'Authorization: Bearer YOUR_TOKEN' \\n  -H 'Content-Type: application/json' \\n  -d '{\n    \"PhoneNumbers\": [\n      { \"Number\": \"+18014730876\" }\n    ],\n    \"ResetUsage\": false,\n    \"AutoRenew\": true,\n    \"PeriodType\": \"M\",\n    \"PeriodValue\": 1,\n    \"RenewalDay\": 1\n  }'"
          }
        ],
        "responses": {
          "200": {
            "description": "Renewal settings updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Status": "Complete",
                      "StatusMessage": "",
                      "PhoneNumbers": [
                        {
                          "Number": "+18014730876",
                          "Status": "Success",
                          "StatusMessage": ""
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "PhoneNumbers",
                  "AutoRenew",
                  "PeriodType",
                  "RenewalDay"
                ],
                "properties": {
                  "PhoneNumbers": {
                    "type": "array",
                    "description": "Array of phone numbers to update renewal settings for",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Number": {
                          "type": "string",
                          "description": "Phone number in E.164 format",
                          "example": "+18014730876"
                        }
                      }
                    }
                  },
                  "ResetUsage": {
                    "type": "boolean",
                    "description": "Set to true to zero out current usage immediately without waiting for the next renewal cycle",
                    "example": false
                  },
                  "AutoRenew": {
                    "type": "boolean",
                    "description": "Whether data usage automatically resets on the configured RenewalDay each period",
                    "example": true
                  },
                  "PeriodType": {
                    "type": "string",
                    "enum": [
                      "M",
                      "W"
                    ],
                    "description": "Renewal period type. M for monthly, W for weekly",
                    "example": "M"
                  },
                  "PeriodValue": {
                    "type": "integer",
                    "description": "Number of periods between renewals. Typically 1",
                    "example": 1
                  },
                  "RenewalDay": {
                    "type": "integer",
                    "description": "Day on which usage resets. 1-31 for monthly periods, 1-7 for weekly periods",
                    "example": 1
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/account/webhooks": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Account Webhooks",
        "description": "Retrieves all webhooks configured on the specified account, including their target URLs, HTTP methods, authentication settings, subscribed event types, and active status. Use this to audit webhook configuration or to locate a specific `WebhookId` for updates or deletion.",
        "parameters": [
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Webhook_Result"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Webhook_Result"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Webhook_Result"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"AccountId\": \"AID-1234567\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X GET \"https://api.telegent.com/v1.0/account/webhooks?AccountId=AID-1234567\" \\\n  -H \"Authorization: Bearer <token>\" \\\n  -H \"Content-Type: application/json\""
          }
        ]
      }
    },
    "/v1.0/numbers/cancel-order-request": {
      "post": {
        "tags": [ "Numbers" ],
        "summary": "Numbers - Cancel Order Request",
        "description": "> **Beta — now live in production.** This endpoint is live and currently in beta.\n\nStage 1 of the two-stage number cancellation flow. Validates the numbers, creates a cancel order, and returns an `AuthCode` (valid 5 minutes) plus the `ConsentStatement` to review. **No numbers are cancelled at this stage.**\n\n**What this does:** Checks that every number exists, belongs to your account, and is Active, then returns an `OrderId`, a single-use `AuthCode`, `AuthCodeExpiresAt`, the `NumbersChange` list, and the consent statement. If any number fails validation the whole request is refused and no order is created.\n\nSee the [Cancelling Numbers guide](/guides/cancelling-numbers) for the full flow and AuthCode rules.\n\n**Next step:**\n- Confirm the cancellation — `POST /v1.0/numbers/cancel-order-submit` (within 5 minutes)",
        "parameters": [],
        "x-codeSamples": [
          { "lang": "JSON", "source": "{\n  \"PhoneNumbers\": [\n    { \"Number\": \"+12015550101\" }\n  ]\n}" },
          { "lang": "cURL", "source": "curl -X POST https://api.telegent.com/v1.0/numbers/cancel-order-request \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumbers\": [ { \"Number\": \"+12015550101\" } ]\n  }'" }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [ "PhoneNumbers" ],
                "properties": {
                  "PhoneNumbers": {
                    "type": "array",
                    "description": "Numbers to cancel. Each must exist, belong to your account, and be Active.",
                    "items": {
                      "type": "object",
                      "required": [ "Number" ],
                      "properties": {
                        "Number": { "type": "string", "description": "Phone number in E.164 format.", "example": "+12015550101" }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Cancel order created — review and submit within 5 minutes",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "OrderId": { "type": "string", "description": "Identifier for this cancel order. Pass it to cancel-order-submit." },
                    "OrderDate": { "type": "string", "format": "date-time", "description": "When the order was created (UTC)." },
                    "OrderStatus": { "type": "string", "description": "Order state — `Pending Confirmation` until submitted." },
                    "AuthCode": { "type": "string", "description": "Single-use confirmation code, valid 5 minutes. Returned once and only as a hash afterwards." },
                    "AuthCodeExpiresAt": { "type": "string", "format": "date-time", "description": "UTC expiry of the AuthCode." },
                    "NumbersChange": { "type": "array", "description": "The numbers that will be cancelled when you submit.", "items": { "type": "object", "properties": { "Number": { "type": "string", "description": "Phone number in E.164 format." } } } },
                    "ConsentStatement": { "type": "string", "description": "The statement you accept by submitting." },
                    "Instructions": { "type": "string", "description": "Human-readable next-step instructions." }
                  }
                },
                "examples": {
                  "example": {
                    "value": {
                      "OrderId": "JNUOID-6b1e2c4a-7d3f-4b2a-9c1e-2f5a8d9e0b11",
                      "OrderDate": "2026-10-08T16:05:00Z",
                      "OrderStatus": "Pending Confirmation",
                      "AuthCode": "7K4Q9M",
                      "AuthCodeExpiresAt": "2026-10-08T16:10:00Z",
                      "NumbersChange": [ { "Number": "+12015550101" } ],
                      "ConsentStatement": "I confirm that the 1 number(s) listed (+12015550101) will be cancelled and deactivated with the carrier immediately, and service on them will stop. A cancelled number can be reactivated within 30 days for a $5 recovery fee per number; after 30 days it is permanently released and cannot be recovered.",
                      "Instructions": "To proceed, submit POST /v1.0/numbers/cancel-order-submit with this OrderId and AuthCode within 5 minutes. Submitting confirms the consent statement above. If the code expires, send a new cancel-order-request."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — for example: \"Invalid request. Please include phone-numbers to 'cancel'.\", \"Number not found!\", \"Number does not belong to account ...\", or \"Number is not active '...'.\"",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/BadRequest_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BadRequest_Result" },
                "examples": { "example": { "value": { "StatusCode": 400, "Message": "Number is not active '+12015550101'." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/BadRequest_Result" } }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/Unauthorized_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Unauthorized_Result" },
                "examples": { "example": { "value": { "StatusCode": 401, "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/Unauthorized_Result" } }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/Forbidden_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Forbidden_Result" },
                "examples": { "example": { "value": { "StatusCode": 403, "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/Forbidden_Result" } }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/NotFound_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/NotFound_Result" },
                "examples": { "example": { "value": { "StatusCode": 404, "Message": "Not found: the requested resource does not exist or belongs to a different account." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/NotFound_Result" } }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/MethodNotAllowed_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/MethodNotAllowed_Result" },
                "examples": { "example": { "value": { "StatusCode": 405, "Message": "Method not allowed: verify the HTTP method required for this endpoint." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/MethodNotAllowed_Result" } }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/RequestTimeout_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/RequestTimeout_Result" },
                "examples": { "example": { "value": { "StatusCode": 408, "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/RequestTimeout_Result" } }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/TooManyRequests_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/TooManyRequests_Result" },
                "examples": { "example": { "value": { "StatusCode": 429, "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/TooManyRequests_Result" } }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/InternalServerError_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/InternalServerError_Result" },
                "examples": { "example": { "value": { "StatusCode": 500, "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/InternalServerError_Result" } }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/ServiceUnavailable_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ServiceUnavailable_Result" },
                "examples": { "example": { "value": { "StatusCode": 503, "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/ServiceUnavailable_Result" } }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/GatewayTimeout_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/GatewayTimeout_Result" },
                "examples": { "example": { "value": { "StatusCode": 504, "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/GatewayTimeout_Result" } }
            }
          }
        }
      }
    },
    "/v1.0/numbers/cancel-order-submit": {
      "post": {
        "tags": [ "Numbers" ],
        "summary": "Numbers - Cancel Order Submit",
        "description": "> **Beta — now live in production.** This endpoint is live and currently in beta.\n\nStage 2 of the two-stage number cancellation flow. Submits the `OrderId` and `AuthCode` from `cancel-order-request` and **cancels the numbers immediately with the carrier.**\n\n**What this does:** Validates the AuthCode (single-use, 5-minute expiry, 5-wrong-attempt lockout) and deactivates the order's numbers. Returns `OrderStatus` `Complete` (numbers in `NumbersChange` deactivated) or `Failed` (every number refused). Numbers refused by the carrier — or already cancelled — are returned in `FailedChange` and stay Active. Successfully cancelled numbers become `Cancelled - Pending Delete` for 30 days.\n\nYou do not resend the numbers; they come from the order created in stage 1. See the [Cancelling Numbers guide](/guides/cancelling-numbers).\n\n**Next step:**\n- Confirm the result — `GET /v1.0/numbers/order?OrderId=...`",
        "parameters": [],
        "x-codeSamples": [
          { "lang": "JSON", "source": "{\n  \"OrderId\": \"JNUOID-6b1e2c4a-7d3f-4b2a-9c1e-2f5a8d9e0b11\",\n  \"AuthCode\": \"7K4Q9M\"\n}" },
          { "lang": "cURL", "source": "curl -X POST https://api.telegent.com/v1.0/numbers/cancel-order-submit \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"OrderId\": \"JNUOID-6b1e2c4a-7d3f-4b2a-9c1e-2f5a8d9e0b11\",\n    \"AuthCode\": \"7K4Q9M\"\n  }'" }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [ "OrderId", "AuthCode" ],
                "properties": {
                  "OrderId": { "type": "string", "description": "The OrderId returned by cancel-order-request.", "example": "JNUOID-6b1e2c4a-7d3f-4b2a-9c1e-2f5a8d9e0b11" },
                  "AuthCode": { "type": "string", "description": "The single-use AuthCode returned by cancel-order-request. Valid for 5 minutes; not case-sensitive.", "example": "7K4Q9M" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submission processed — OrderStatus is Complete or Failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "OrderId": { "type": "string", "description": "The cancel order that was submitted." },
                    "OrderDate": { "type": "string", "format": "date-time", "description": "When the order was created (UTC). Present on `Complete` orders; may be absent when `OrderStatus` is `Failed`." },
                    "OrderStatus": { "type": "string", "description": "`Complete` (numbers in NumbersChange were deactivated) or `Failed` (every number refused)." },
                    "NumbersChange": { "type": "array", "description": "Numbers the carrier deactivated. Now `Cancelled - Pending Delete`.", "items": { "type": "object", "properties": { "Number": { "type": "string", "description": "Phone number in E.164 format." } } } },
                    "FailedChange": { "type": "array", "description": "Numbers the carrier refused, or that were already cancelled. These stay Active.", "items": { "type": "object", "properties": { "Number": { "type": "string", "description": "Phone number in E.164 format." }, "Error": { "type": "string", "description": "Why this number was not cancelled." } } } }
                  }
                },
                "examples": {
                  "success": {
                    "summary": "Complete — numbers cancelled",
                    "value": {
                      "OrderId": "JNUOID-6b1e2c4a-7d3f-4b2a-9c1e-2f5a8d9e0b11",
                      "OrderDate": "2026-10-08T16:05:00Z",
                      "OrderStatus": "Complete",
                      "NumbersChange": [ { "Number": "+12015550101" } ],
                      "FailedChange": []
                    }
                  },
                  "alreadyCancelled": {
                    "summary": "Failed — number already cancelled",
                    "value": {
                      "OrderId": "JNUOID-6b1e2c4a-7d3f-4b2a-9c1e-2f5a8d9e0b11",
                      "OrderStatus": "Failed",
                      "NumbersChange": [],
                      "FailedChange": [ { "Number": "+12015550101", "Error": "Number is already cancelled '+12015550101' (Cancelled - Pending Delete)." } ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — for example: \"Invalid request. OrderId and AuthCode are required.\", \"Cancel order not found.\", \"Auth code has expired. Send a new cancel-order-request.\", \"Invalid auth code.\", or \"Cancel order has already been submitted.\"",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/BadRequest_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BadRequest_Result" },
                "examples": { "example": { "value": { "StatusCode": 400, "Message": "Auth code has expired. Send a new cancel-order-request." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/BadRequest_Result" } }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/Unauthorized_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Unauthorized_Result" },
                "examples": { "example": { "value": { "StatusCode": 401, "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/Unauthorized_Result" } }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/Forbidden_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Forbidden_Result" },
                "examples": { "example": { "value": { "StatusCode": 403, "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/Forbidden_Result" } }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/NotFound_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/NotFound_Result" },
                "examples": { "example": { "value": { "StatusCode": 404, "Message": "Not found: the requested resource does not exist or belongs to a different account." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/NotFound_Result" } }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/MethodNotAllowed_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/MethodNotAllowed_Result" },
                "examples": { "example": { "value": { "StatusCode": 405, "Message": "Method not allowed: verify the HTTP method required for this endpoint." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/MethodNotAllowed_Result" } }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/RequestTimeout_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/RequestTimeout_Result" },
                "examples": { "example": { "value": { "StatusCode": 408, "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/RequestTimeout_Result" } }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/TooManyRequests_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/TooManyRequests_Result" },
                "examples": { "example": { "value": { "StatusCode": 429, "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/TooManyRequests_Result" } }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/InternalServerError_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/InternalServerError_Result" },
                "examples": { "example": { "value": { "StatusCode": 500, "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/InternalServerError_Result" } }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/ServiceUnavailable_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ServiceUnavailable_Result" },
                "examples": { "example": { "value": { "StatusCode": 503, "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/ServiceUnavailable_Result" } }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": { "schema": { "$ref": "#/components/schemas/GatewayTimeout_Result" } },
              "application/json": {
                "schema": { "$ref": "#/components/schemas/GatewayTimeout_Result" },
                "examples": { "example": { "value": { "StatusCode": 504, "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff." } } }
              },
              "text/json": { "schema": { "$ref": "#/components/schemas/GatewayTimeout_Result" } }
            }
          }
        }
      }
    },
    "/v1.0/numbers/reactivate": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Reactivate",
        "description": "> **Beta — now live in production.** Self-service reactivation is live and currently in beta.\n\n> **Reactivation window:** A cancelled number can be reactivated within **30 days** of cancellation — while it is in the `Cancelled - Pending Delete` status. After 30 days it moves to `Cancelled` and is permanently released.\n\nRestore a cancelled phone number back to active status on your account. Reactivation preserves the original MSISDN ↔ ICCID relationship, so the number and SIM do not need to be reprovisioned.\n\n**Recovery fee:** a **$5 recovery fee per number** is billed on a successful reactivation. If the carrier refuses the reactivation, the number stays `Cancelled - Pending Delete` and **nothing is charged**.\n\n**Eligibility:** only numbers in `Cancelled - Pending Delete` can be reactivated. Once a number is `Cancelled` (after the 30-day window), the request is rejected: `Number '<MSISDN>' is not eligible for reactivation. Only numbers with status 'Cancelled - Pending Delete' can be reactivated.` A new provision is required instead — `POST /v1.0/numbers/provision`.\n\nSee the [Cancelling Numbers guide](/guides/cancelling-numbers) for how numbers enter the 30-day window.\n\n**Error responses** (all **HTTP 400**, nothing is reactivated). Business errors come back as **plain text** with a trailing `TransactionLogId` line; model validation errors come back as a **JSON object**.\n- **Not eligible / wrong status** (plain text): `Number '<MSISDN>' is not eligible for reactivation. Only numbers with status 'Cancelled - Pending Delete' can be reactivated.`\n- **Number not found** (plain text): `Number not found!`\n- **Missing `AccountId` on a multi-account token** (plain text): `AccountId is required for distributors with multiple accounts.`\n- **Validation error** — for example a missing `PhoneNumber` (JSON object): `StatusMessage` reads `One or more validation errors occurred. The PhoneNumber field is required.`",
        "requestBody": {
          "description": "ReactivateNumber_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReactivateNumber_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReactivateNumber_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReactivateNumber_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReactivateNumber_Result"
                },
                "examples": {
                  "example1": {
                    "summary": "Success - Number Reactivated",
                    "value": {
                      "PhoneNumber": "+12345678901",
                      "AccountId": "AID-8f3c2a91b4d7",
                      "Status": "Success",
                      "StatusMessage": "Number reactivated. A $5 recovery fee has been charged."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. Business errors (not eligible, not found, missing AccountId) are returned as plain text with a trailing `TransactionLogId` line; model validation errors (e.g. a missing PhoneNumber) are returned as a JSON object.",
            "content": {
              "text/plain": {
                "schema": { "type": "string" },
                "examples": {
                  "notEligible": {
                    "summary": "Not eligible / wrong status (plain text)",
                    "value": "Number '+12345678901' is not eligible for reactivation. Only numbers with status 'Cancelled - Pending Delete' can be reactivated.\nTransactionLogId: T-00000000"
                  },
                  "numberNotFound": {
                    "summary": "Number not found (plain text)",
                    "value": "Number not found!\nTransactionLogId: T-00000000"
                  },
                  "accountIdRequired": {
                    "summary": "AccountId required for a multi-account token (plain text)",
                    "value": "AccountId is required for distributors with multiple accounts.\nTransactionLogId: T-00000000"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "Status": { "type": "string", "description": "`Failed` on a validation error." },
                    "StatusCode": { "type": "integer", "description": "HTTP status code (400)." },
                    "StatusMessage": { "type": "string", "description": "Describes the validation failure." },
                    "PartnerId": { "type": "string" },
                    "TransactionId": { "type": "string" }
                  }
                },
                "examples": {
                  "validation": {
                    "summary": "Model validation error — missing PhoneNumber (JSON)",
                    "value": { "Status": "Failed", "StatusCode": 400, "StatusMessage": "One or more validation errors occurred. The PhoneNumber field is required.", "PartnerId": "", "TransactionId": "" }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+12345678901\",\n  \"AccountId\": \"AID-8f3c2a91b4d7\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/reactivate \\\n  -H \"Authorization: Bearer <token>\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"PhoneNumber\": \"+12345678901\",\n    \"AccountId\": \"AID-8f3c2a91b4d7\"\n  }'"
          }
        ]
      }
    },
    "/v1.0/subscriptions/thresholds": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get Threshold",
        "parameters": [
          {
            "name": "ThresholdId",
            "in": "query",
            "description": "ThresholdId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Threshold details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ThresholdId": "THID-a1b2c3d4-0000-0000-0000-000000000001",
                      "AccountId": "AID-1234567",
                      "ThresholdName": "80% Data Alert",
                      "ThresholdType": "Data",
                      "ThresholdAmount": 80,
                      "ThresholdUnit": "MB",
                      "ThresholdAction": "Alert",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Retrieve the details of a specific usage threshold by its `ThresholdId`. Thresholds define a resource limit (data, SMS, or voice) and the action to take when that limit is reached.\n\n**What this does:** Returns the threshold record including its name, type, amount, unit, and action. Use the `ThresholdId` query parameter to look up a single threshold.\n\n**Next steps:**\n- Create a threshold — `POST /v1.0/subscriptions/thresholds/add`\n- Assign it to a subscription — `POST /v1.0/subscriptions/thresholds/assignments/add`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/thresholds/add": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Create Threshold",
        "requestBody": {
          "description": "Threshold object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Threshold_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Threshold_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Threshold_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success — returns the new threshold ID and record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ThresholdId": "THID-a1b2c3d4-0000-0000-0000-000000000001",
                      "AccountId": "AID-1234567",
                      "ThresholdName": "80% Data Alert",
                      "ThresholdType": "Data",
                      "ThresholdAmount": 80,
                      "ThresholdUnit": "MB",
                      "ThresholdAction": "Alert",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Create a new usage threshold that can be assigned to subscriptions. A threshold specifies a resource type, a trigger amount, and the action to take when that amount is reached — such as sending an alert or pausing service.\n\n**What this does:** Returns the new `ThresholdId` and full threshold record. After creating a threshold, assign it to one or more subscriptions using `POST /v1.0/subscriptions/thresholds/assignments/add`.\n\n**Next steps:**\n- Assign the threshold to a subscription — `POST /v1.0/subscriptions/thresholds/assignments/add`\n- View threshold details — `GET /v1.0/subscriptions/thresholds`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/thresholds/update": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Update Threshold",
        "requestBody": {
          "description": "Update_Threshold_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Threshold_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Threshold_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Threshold_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated threshold record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ThresholdId": "THID-a1b2c3d4-0000-0000-0000-000000000001",
                      "AccountId": "AID-1234567",
                      "ThresholdName": "80% Data Alert",
                      "ThresholdType": "Data",
                      "ThresholdAmount": 80,
                      "ThresholdUnit": "MB",
                      "ThresholdAction": "Alert",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Update the configuration of an existing threshold. Only the fields you include in the request body are changed; omitted fields retain their current values.\n\n**What this does:** Returns the updated threshold record. Changes take effect on all subscriptions already assigned this threshold.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/subscriptions/thresholds`\n- View assignments — `GET /v1.0/subscriptions/thresholds/assignments`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/thresholds/delete": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Delete Threshold",
        "requestBody": {
          "description": "Delete_Threshold_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Threshold_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Threshold_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Threshold_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Threshold deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ThresholdId": "THID-a1b2c3d4-0000-0000-0000-000000000001",
                      "ThresholdStatus": "Deleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Permanently delete a threshold by its `ThresholdId`. Deleting a threshold also removes all of its assignments from associated subscriptions.\n\n**What this does:** Returns a deletion confirmation. Any subscriptions previously assigned this threshold will no longer have a threshold applied.\n\n**Next steps:**\n- Create a replacement threshold — `POST /v1.0/subscriptions/thresholds/add`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/thresholds/assignments": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get Threshold Assignments",
        "parameters": [
          {
            "name": "ThresholdId",
            "in": "query",
            "description": "ThresholdId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of threshold assignments",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": [
                      {
                        "ThresholdAssignmentId": "TAID-00000001-0000-0000-0000-000000000001",
                        "ThresholdId": "THID-a1b2c3d4-0000-0000-0000-000000000001",
                        "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                        "Active": true
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Retrieve all assignments for a given threshold. Each assignment links a threshold to a subscription, enabling the threshold to trigger on that subscription's usage.\n\n**What this does:** Returns a list of assignment records for the specified `ThresholdId`, including the linked `SubscriptionId` and assignment status.\n\n**Next steps:**\n- Add an assignment — `POST /v1.0/subscriptions/thresholds/assignments/add`\n- Remove an assignment — `POST /v1.0/subscriptions/thresholds/assignments/delete`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/thresholds/assignments/add": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Create Threshold Assignment",
        "requestBody": {
          "description": "Threshold_Assignment object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Threshold_Assignment_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Threshold_Assignment_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Threshold_Assignment_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success — returns the new threshold assignment ID and record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ThresholdAssignmentId": "TAID-00000001-0000-0000-0000-000000000001",
                      "ThresholdId": "THID-a1b2c3d4-0000-0000-0000-000000000001",
                      "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Assign an existing threshold to a subscription. Once assigned, the threshold monitors that subscription's resource usage and fires its configured action when the limit is reached.\n\n**What this does:** Returns the new `ThresholdAssignmentId` and assignment record. A threshold can be assigned to multiple subscriptions; each assignment is tracked independently.\n\n**Next steps:**\n- View all assignments for this threshold — `GET /v1.0/subscriptions/thresholds/assignments`\n- Remove the assignment — `POST /v1.0/subscriptions/thresholds/assignments/delete`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/thresholds/assignments/update": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Update Threshold Assignment",
        "requestBody": {
          "description": "Update_Threshold_Assignment_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Threshold_Assignment_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Threshold_Assignment_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Threshold_Assignment_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated threshold assignment record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ThresholdAssignmentId": "TAID-00000001-0000-0000-0000-000000000001",
                      "ThresholdId": "THID-a1b2c3d4-0000-0000-0000-000000000001",
                      "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Update an existing threshold assignment — for example, to re-point it to a different subscription or threshold. Only included fields are changed.\n\n**What this does:** Returns the updated assignment record.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/subscriptions/thresholds/assignments`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/thresholds/assignments/delete": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Delete Threshold Assignment",
        "requestBody": {
          "description": "ThresholdAssignment object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Threshold_Assignment_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Threshold_Assignment_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Threshold_Assignment_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Threshold assignment removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "ThresholdAssignmentId": "TAID-00000001-0000-0000-0000-000000000001",
                      "ThresholdAssignmentStatus": "Deleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Remove a threshold assignment by its `ThresholdAssignmentId`. This unlinks the threshold from the associated subscription; the threshold itself is not deleted.\n\n**What this does:** Returns a deletion confirmation. The subscription will no longer have this threshold applied to its usage.\n\n**Next steps:**\n- Re-assign the threshold — `POST /v1.0/subscriptions/thresholds/assignments/add`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/features": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get Feature",
        "parameters": [
          {
            "name": "FeatureId",
            "in": "query",
            "description": "FeatureId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Feature details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FeatureId": "FEID-00000001-0000-0000-0000-000000000001",
                      "AccountId": "AID-1234567",
                      "FeatureName": "International Roaming",
                      "FeatureType": "Roaming",
                      "FeatureDescription": "Enables data and voice while roaming internationally.",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Retrieve the details of a specific feature by its `FeatureId`. Features represent add-on capabilities (such as roaming, VoIP, or data boosters) that can be assigned to subscriptions.\n\n**What this does:** Returns the feature record including its name, type, and description. Use the `FeatureId` query parameter to look up a single feature.\n\n**Next steps:**\n- Create a feature — `POST /v1.0/subscriptions/features/add`\n- Assign it to a subscription — `POST /v1.0/subscriptions/features/assignments/add`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/features/add": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Create Feature",
        "requestBody": {
          "description": "Feature object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Feature_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Feature_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Feature_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success — returns the new feature ID and record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FeatureId": "FEID-00000001-0000-0000-0000-000000000001",
                      "AccountId": "AID-1234567",
                      "FeatureName": "International Roaming",
                      "FeatureType": "Roaming",
                      "FeatureDescription": "Enables data and voice while roaming internationally.",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Create a new feature that can be assigned to subscriptions. Features represent optional add-on capabilities such as international roaming, VoIP, SMS bundles, or data speed tiers.\n\n**What this does:** Returns the new `FeatureId` and full feature record. After creating a feature, assign it to subscriptions using `POST /v1.0/subscriptions/features/assignments/add`.\n\n**Next steps:**\n- Assign to a subscription — `POST /v1.0/subscriptions/features/assignments/add`\n- View feature details — `GET /v1.0/subscriptions/features`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/features/update": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Update Feature",
        "requestBody": {
          "description": "Update_Feature_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Feature_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Feature_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Feature_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated feature record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FeatureId": "FEID-00000001-0000-0000-0000-000000000001",
                      "AccountId": "AID-1234567",
                      "FeatureName": "International Roaming",
                      "FeatureType": "Roaming",
                      "FeatureDescription": "Enables data and voice while roaming internationally.",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Update the details of an existing feature. Only the fields you include in the request body are changed; omitted fields retain their current values.\n\n**What this does:** Returns the updated feature record. Changes apply to all subscriptions currently assigned this feature.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/subscriptions/features`\n- View assignments — `GET /v1.0/subscriptions/features/assignments`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/features/delete": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Delete Feature",
        "requestBody": {
          "description": "Delete_Feature_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Feature_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Feature_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Feature_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Feature deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FeatureId": "FEID-00000001-0000-0000-0000-000000000001",
                      "FeatureStatus": "Deleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Permanently delete a feature by its `FeatureId`. Deleting a feature also removes all of its assignments from associated subscriptions.\n\n**What this does:** Returns a deletion confirmation. Subscriptions previously assigned this feature will lose access to the capability it provided.\n\n**Next steps:**\n- Create a replacement feature — `POST /v1.0/subscriptions/features/add`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/features/assignments": {
      "get": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Get Feature Assignments",
        "parameters": [
          {
            "name": "FeatureId",
            "in": "query",
            "description": "FeatureId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of feature assignments",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": [
                      {
                        "FeatureAssignmentId": "FAID-00000001-0000-0000-0000-000000000001",
                        "FeatureId": "FEID-00000001-0000-0000-0000-000000000001",
                        "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                        "Active": true
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Retrieve all assignments for a given feature. Each assignment links a feature to a subscription, enabling that subscription to use the feature's capability.\n\n**What this does:** Returns a list of assignment records for the specified `FeatureId`, including the linked `SubscriptionId` and assignment status.\n\n**Next steps:**\n- Add an assignment — `POST /v1.0/subscriptions/features/assignments/add`\n- Remove an assignment — `POST /v1.0/subscriptions/features/assignments/delete`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/features/assignments/add": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Create Feature Assignment",
        "requestBody": {
          "description": "Feature_Assignment object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Feature_Assignment_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Feature_Assignment_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Feature_Assignment_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success — returns the new feature assignment ID and record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FeatureAssignmentId": "FAID-00000001-0000-0000-0000-000000000001",
                      "FeatureId": "FEID-00000001-0000-0000-0000-000000000001",
                      "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Assign an existing feature to a subscription, enabling that subscription to use the feature's capability.\n\n**What this does:** Returns the new `FeatureAssignmentId` and assignment record. A feature can be assigned to multiple subscriptions; each assignment is tracked independently.\n\n**Next steps:**\n- View all assignments for this feature — `GET /v1.0/subscriptions/features/assignments`\n- Remove the assignment — `POST /v1.0/subscriptions/features/assignments/delete`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/features/assignments/update": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Update Feature Assignment",
        "requestBody": {
          "description": "Update_Feature_Assignment_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Feature_Assignment_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Feature_Assignment_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Feature_Assignment_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated feature assignment record",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FeatureAssignmentId": "FAID-00000001-0000-0000-0000-000000000001",
                      "FeatureId": "FEID-00000001-0000-0000-0000-000000000001",
                      "SubscriptionId": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c",
                      "Active": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Update an existing feature assignment — for example, to re-point it to a different subscription or feature. Only included fields are changed.\n\n**What this does:** Returns the updated assignment record.\n\n**Next steps:**\n- Confirm the update — `GET /v1.0/subscriptions/features/assignments`",
        "x-internal": true
      }
    },
    "/v1.0/subscriptions/features/assignments/delete": {
      "post": {
        "tags": [
          "Subscriptions"
        ],
        "summary": "Delete Feature Assignment",
        "requestBody": {
          "description": "FeatureAssignment object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Feature_Assignment_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Feature_Assignment_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Feature_Assignment_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Feature assignment removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "FeatureAssignmentId": "FAID-00000001-0000-0000-0000-000000000001",
                      "FeatureAssignmentStatus": "Deleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "description": "Remove a feature assignment by its `FeatureAssignmentId`. This unlinks the feature from the associated subscription; the feature itself is not deleted.\n\n**What this does:** Returns a deletion confirmation. The subscription will no longer have access to the capability provided by this feature.\n\n**Next steps:**\n- Re-assign the feature — `POST /v1.0/subscriptions/features/assignments/add`",
        "x-internal": true
      }
    },
    "/v1.0/webhook": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Get Webhook",
        "description": "Retrieves the full configuration of a single webhook by its `WebhookId`, including the target URL, HTTP method, data format, authentication details, and subscribed events. Use this to inspect or audit an existing webhook before updating or deleting it.\n\n**What this returns:** A `Webhook_Result` object containing the `WebhookUrl`, `Method`, `DataFormat`, `AuthenticationType` and credentials, `SubscribedEvents`, and the webhook's `Active` status.\n\n**Prerequisites:**\n- **Required:** Bearer token — `POST /v1.0/oauth2/tokens`\n- **Required:** `WebhookId` from a prior `POST /v1.0/webhook` call",
        "parameters": [
          {
            "name": "WebhookId",
            "in": "query",
            "description": "WebhookId string",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountId",
            "in": "query",
            "description": "AccountId string",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"AccountId\": \"AID-1234567\",\n  \"WebhookId\": \"WHID-1234567\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X GET \"https://api.telegent.com/v1.0/webhook?AccountId=AID-1234567&WebhookId=WHID-1234567\" \\\n  -H \"Authorization: Bearer <token>\" \\\n  -H \"Content-Type: application/json\""
          }
        ]
      }
    },
    "/v1.0/webhook/create": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Create Webhook",
        "description": "Register a webhook endpoint to receive event notifications from your Telegent account. Use this to subscribe to events such as order updates, message status changes, or other platform activity, with optional Basic or Token authentication for callback security.\n\n**Available subscribable events:** `Order_Update`, `New_Sms`, `Call_Completed`, `Call_On_Hold`, `Call_Recording`, `Call_In_Progress`, `Call_Ringing`\n\nAfter you register, Telegent POSTs a JSON payload to your `Url` each time a subscribed event fires. See [Webhook Event Payloads](/resources/reference#43-receiving-events--webhook-payloads) for the delivered body shape per event type.",
        "requestBody": {
          "description": "Webhooks object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Webhook_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Webhook_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Webhook_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"AccountId\": \"AID-1234567\",\n  \"WebhookUrl\": \"https://api.example.com/telegent/events\",\n  \"Method\": \"POST\",\n  \"DataFormat\": \"json\",\n  \"AuthenticationType\": \"Basic\",\n  \"AuthenticationUsername\": \"webhook_user\",\n  \"AuthenticationPassword\": \"s3cureP@ss\",\n  \"AuthenticationToken\": \"\",\n  \"SubscribedEvents\": \"Order_Update\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/webhook/create \\\n  -H \"Authorization: Bearer <token>\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"AccountId\": \"AID-1234567\",\n    \"WebhookUrl\": \"https://api.example.com/telegent/events\",\n    \"Method\": \"POST\",\n    \"DataFormat\": \"json\",\n    \"AuthenticationType\": \"Basic\",\n    \"AuthenticationUsername\": \"webhook_user\",\n    \"AuthenticationPassword\": \"s3cureP@ss\",\n    \"AuthenticationToken\": \"\",\n    \"SubscribedEvents\": \"Order_Update\"\n  }'"
          }
        ]
      }
    },
    "/v1.0/webhook/update": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Update Webhook",
        "description": "Update the configuration of an existing webhook, including its destination URL, HTTP method, authentication credentials, and the list of subscribed events. Use this to rotate credentials, change the callback endpoint, or modify which events trigger notifications without recreating the webhook.",
        "requestBody": {
          "description": "Update_Webhook_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Webhook_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Webhook_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Webhook_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook_Result"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"WebhookId\": \"WID-1234567\",\n  \"AccountId\": \"AID-1234567\",\n  \"WebhookUrl\": \"https://api.telegent.com/test\",\n  \"Method\": \"POST\",\n  \"DataFormat\": \"json\",\n  \"AuthenticationType\": \"Basic\",\n  \"AuthenticationUsername\": \"User\",\n  \"AuthenticationPassword\": \"pw\",\n  \"AuthenticationToken\": \"\",\n  \"SubscribedEvents\": \"Order_Update, New_SMS\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/webhook/update \\\n  -H \"Authorization: Bearer <token>\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"WebhookId\": \"WID-1234567\",\n    \"AccountId\": \"AID-1234567\",\n    \"WebhookUrl\": \"https://api.telegent.com/test\",\n    \"Method\": \"POST\",\n    \"DataFormat\": \"json\",\n    \"AuthenticationType\": \"Basic\",\n    \"AuthenticationUsername\": \"User\",\n    \"AuthenticationPassword\": \"pw\",\n    \"AuthenticationToken\": \"\",\n    \"SubscribedEvents\": \"Order_Update, New_SMS\"\n  }'"
          }
        ]
      }
    },
    "/v1.0/webhook/delete": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Delete Webhook",
        "description": "Permanently deletes a webhook subscription, stopping all future event deliveries to its configured URL. Use this to remove webhooks that are no longer needed or to clean up obsolete event subscriptions on an account.",
        "requestBody": {
          "description": "Delete_Webhook_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Webhook_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Webhook_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Delete_Webhook_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Delete_Webhook_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Delete_Webhook_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Delete_Webhook_Result"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"WebhookId\": \"WID-1234567\",\n  \"AccountId\": \"AID-1234567\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/webhook/delete \\\n  -H \"Authorization: Bearer <token>\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"WebhookId\": \"WID-1234567\",\n    \"AccountId\": \"AID-1234567\"\n  }'"
          }
        ]
      }
    },
    "/v1.0/numbers/roaming/update": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Update roaming settings of a number",
        "description": "Enable or disable international roaming on a provisioned phone number. Use this to allow a subscriber's device to register on partner networks outside their home country, or to disable roaming to prevent unexpected usage charges.",
        "requestBody": {
          "description": "Update_Roaming_Request object",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Roaming_Request"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Roaming_Request"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Update_Roaming_Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Update_Roaming_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Update_Roaming_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Update_Roaming_Result"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service is unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+12345678901\",\n  \"EnableRoaming\": true,\n  \"AccountId\": \"AID-1234567\"\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/roaming/update \\\n  -H \"Authorization: Bearer <token>\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"PhoneNumber\": \"+12345678901\",\n    \"EnableRoaming\": true,\n    \"AccountId\": \"AID-1234567\"\n  }'"
          }
        ]
      }
    },
    "/v1.0/numbers/mms/update": {
      "post": {
        "tags": [
          "Numbers"
        ],
        "summary": "Numbers - Update MMS Settings",
        "description": "Enable or disable MMS (multimedia messaging) on a provisioned phone number. Use this to turn picture, video and group messaging on for a line, or to disable it while leaving SMS in place.\n\n**What this does:** Sets the MMS feature flag on the line and returns the resulting state. SMS is unaffected either way — disabling MMS does not stop the line sending or receiving text messages.\n\n**Reading the response:** `MMS` reflects the state of the line after the update (`Enabled` or `Disabled`). Check `Status` — `Success` means the change was applied; any other value means it was not, and `StatusMessage` carries the reason.\n\n**Next steps:**\n- Confirm the line's current service state — `POST /v1.0/numbers/status`\n- Update other number settings (including `MessageEnabled` for SMS) — `POST /v1.0/numbers/update`\n- Review the account's message routing — `GET /v1.0/message/routes`",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{\n  \"PhoneNumber\": \"+13156120726\",\n  \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n  \"EnableMms\": true\n}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/numbers/mms/update \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"PhoneNumber\": \"+13156120726\",\n    \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n    \"EnableMms\": true\n  }'"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "EnableMms",
                  "PhoneNumber"
                ],
                "type": "object",
                "properties": {
                  "PhoneNumber": {
                    "type": "string",
                    "description": "The phone number to update, in E.164 format (e.g. `+13156120726`). Required.",
                    "example": "+13156120726"
                  },
                  "AccountId": {
                    "type": "string",
                    "nullable": true,
                    "description": "Account identifier (`AID-` prefix) that the number belongs to. Conditional — required for distributors whose Bearer token has access to more than one account, and optional otherwise.",
                    "example": "AID-eab92510-1040-45a5-bb9c-xxxx"
                  },
                  "EnableMms": {
                    "type": "boolean",
                    "description": "Set to `true` to enable MMS on the number, or `false` to disable it. Required.",
                    "example": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success — returns the line's MMS state after the update",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "PhoneNumber": "+13156120726",
                      "AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
                      "MMS": "Enabled",
                      "Status": "Success",
                      "StatusMessage": "MMS settings updated successfully."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/health-status": {
      "post": {
        "tags": [
          "Health Status"
        ],
        "summary": "Health Status",
        "description": "Check that the Telegent platform and its upstream dependencies are reachable. Use this as a pre-flight check before a batch of provisioning calls, or as the target for an uptime monitor.\n\n**What this checks:**\n- **`Database`** — the Telegent platform database connection.\n- **`TMobile_Api`** — reachability of the upstream T-Mobile API, verified with a live available-products call.\n\nEach check reports its own `Status`, how long it took in `Duration_Ms`, and an `Error` string that is `null` while the dependency is healthy. The top-level `Status` summarises both, and `Checked_On_UTC` is the UTC timestamp the checks ran.\n\n**Reading the response:** A dependency being unreachable does not fail the request — this endpoint returns HTTP `200` and reports the problem in the payload. Always read `Status` rather than relying on the HTTP status code alone, and check each dependency's `Error` for the underlying cause.\n\n**Note on `Duration_Ms`:** these are live round-trip times against the dependency, not cached values, so a slow-but-healthy upstream shows up as a large `Duration_Ms` with `Status: \"Ok\"`.",
        "parameters": [],
        "x-codeSamples": [
          {
            "lang": "JSON",
            "source": "{}"
          },
          {
            "lang": "cURL",
            "source": "curl -X POST https://api.telegent.com/v1.0/health-status \\\n  -H 'Authorization: Bearer YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{}'"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ProductId": {
                    "type": "string",
                    "nullable": true,
                    "description": "Optional product identifier forwarded to the upstream T-Mobile available-products call. Leave blank — the usual case — to check against every available product."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success — returns platform and dependency health",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example": {
                    "value": {
                      "Status": "Healthy",
                      "Checked_On_UTC": "2026-08-10T18:15:37.9459153Z",
                      "Database": {
                        "Status": "Ok",
                        "Duration_Ms": 1335,
                        "Error": null
                      },
                      "TMobile_Api": {
                        "Status": "Ok",
                        "Duration_Ms": 2157,
                        "Error": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 400,
                      "Message": "Bad request: one or more required fields are missing or contain an invalid value."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequest_Result"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 401,
                      "Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized_Result"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 403,
                      "Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forbidden_Result"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 404,
                      "Message": "Not found: the requested resource does not exist or belongs to a different account."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound_Result"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 405,
                      "Message": "Method not allowed: verify the HTTP method required for this endpoint."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MethodNotAllowed_Result"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 408,
                      "Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTimeout_Result"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 429,
                      "Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequests_Result"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 500,
                      "Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError_Result"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 503,
                      "Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUnavailable_Result"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                },
                "examples": {
                  "example": {
                    "value": {
                      "StatusCode": 504,
                      "Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayTimeout_Result"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Enter the token obtained from the Authentication endpoint"
      }
    },
    "schemas": {
      "Delete_Webhook_Request": {
        "type": "object",
        "properties": {
          "WebhookId": {
            "type": "string",
            "nullable": true,
            "description": "The unique identifier of the webhook to delete, prefixed with `WID-`. Returned when the webhook was originally created."
          },
          "AccountId": {
            "type": "string",
            "nullable": true,
            "description": "The Telegent account identifier that owns the webhook, prefixed with `AID-`."
          }
        },
        "additionalProperties": false
      },
      "Delete_Webhook_Result": {
        "type": "object",
        "properties": {
          "WebhookId": {
            "type": "string",
            "nullable": true
          },
          "WebhookStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GatewayTimeout_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InternalServerError_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MethodNotAllowed_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Number_RenewalInfo": {
        "type": "object",
        "properties": {
          "AutoRenew": {
            "type": "boolean"
          },
          "PeriodType": {
            "type": "string",
            "nullable": true
          },
          "PeriodValue": {
            "type": "integer",
            "format": "int32"
          },
          "RenewalDay": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Phone_Number": {
        "type": "object",
        "properties": {
          "Number": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Phone_Number_With_RenewalInfo_And_Status": {
        "type": "object",
        "properties": {
          "Number": {
            "type": "string",
            "nullable": true
          },
          "Status": {
            "type": "string",
            "nullable": true
          },
          "StatusMessage": {
            "type": "string",
            "nullable": true
          },
          "RenewalInfo": {
            "$ref": "#/components/schemas/Number_RenewalInfo"
          }
        },
        "additionalProperties": false
      },
      "ReactivateNumber_Request": {
        "required": [
          "PhoneNumber"
        ],
        "type": "object",
        "properties": {
          "PhoneNumber": {
            "minLength": 1,
            "type": "string",
            "description": "Required. The phone number to reactivate, in E.164 format (e.g. `+12345678901`)."
          },
          "AccountId": {
            "type": "string",
            "nullable": true,
            "description": "Optional account identifier (`AID-` prefix) that the number belongs to. Required when your token has access to multiple accounts."
          }
        },
        "additionalProperties": false
      },
      "ReactivateNumber_Result": {
        "type": "object",
        "properties": {
          "PhoneNumber": {
            "type": "string",
            "nullable": true
          },
          "AccountId": {
            "type": "string",
            "nullable": true
          },
          "Status": {
            "type": "string",
            "nullable": true
          },
          "StatusMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RequestTimeout_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceUnavailable_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TooManyRequests_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Unauthorized_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Update_RenewalInfo_Request": {
        "required": [
          "PhoneNumbers"
        ],
        "type": "object",
        "properties": {
          "PhoneNumbers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Phone_Number"
            }
          },
          "ResetUsage": {
            "type": "boolean"
          },
          "AutoRenew": {
            "type": "boolean"
          },
          "PeriodType": {
            "type": "string",
            "nullable": true
          },
          "PeriodValue": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "RenewalDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Update_RenewalInfo_Result": {
        "type": "object",
        "properties": {
          "PhoneNumbers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Phone_Number_With_RenewalInfo_And_Status"
            },
            "nullable": true
          },
          "Status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Update_Webhook_Request": {
        "type": "object",
        "properties": {
          "AccountId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true,
            "description": "Your Telegent account identifier (prefixed `AID-`). Max 100 characters."
          },
          "WebhookUrl": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "The destination URL that Telegent will call when a subscribed event fires. Must be a reachable HTTPS endpoint, max 255 characters."
          },
          "Method": {
            "maxLength": 10,
            "type": "string",
            "nullable": true,
            "description": "HTTP method used to deliver the webhook payload, typically `POST` or `PUT`. Max 10 characters."
          },
          "DataFormat": {
            "maxLength": 50,
            "type": "string",
            "nullable": true,
            "description": "Payload format for the webhook body, e.g. `json` or `xml`. Max 50 characters."
          },
          "AuthenticationType": {
            "maxLength": 10,
            "type": "string",
            "nullable": true,
            "description": "Authentication scheme used when calling your endpoint. Supported values include `Basic`, `Bearer`, or `None`. Max 10 characters."
          },
          "AuthenticationUsername": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "Username used when `AuthenticationType` is `Basic`. Max 255 characters."
          },
          "AuthenticationPassword": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "Password used when `AuthenticationType` is `Basic`. Max 255 characters."
          },
          "AuthenticationToken": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "Bearer token or API key used when `AuthenticationType` is `Bearer`. Max 255 characters."
          },
          "SubscribedEvents": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "Comma-separated list of event names this webhook should receive (e.g. `Order_Update, New_SMS`). Max 255 characters."
          },
          "WebhookId": {
            "type": "string",
            "nullable": true,
            "description": "Identifier of the webhook to update (prefixed `WID-`). Required to locate the existing record."
          }
        },
        "additionalProperties": false
      },
      "Webhook_Request": {
        "type": "object",
        "properties": {
          "AccountId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true,
            "description": "Your Telegent account identifier in the format `AID-XXXXXXX`. Max 100 characters."
          },
          "WebhookUrl": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "The HTTPS URL Telegent will call when subscribed events fire. Max 255 characters."
          },
          "Method": {
            "maxLength": 10,
            "type": "string",
            "nullable": true,
            "description": "HTTP method Telegent should use when invoking the webhook, typically `POST` or `PUT`. Max 10 characters."
          },
          "DataFormat": {
            "maxLength": 50,
            "type": "string",
            "nullable": true,
            "description": "Payload format sent to your endpoint, such as `json` or `xml`. Max 50 characters."
          },
          "AuthenticationType": {
            "maxLength": 10,
            "type": "string",
            "nullable": true,
            "description": "Authentication scheme used when calling the webhook: `None`, `Basic`, or `Token`. Max 10 characters."
          },
          "AuthenticationUsername": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "Username for Basic authentication. Required when `AuthenticationType` is `Basic`. Max 255 characters."
          },
          "AuthenticationPassword": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "Password for Basic authentication. Required when `AuthenticationType` is `Basic`. Max 255 characters."
          },
          "AuthenticationToken": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "Bearer token sent in the `Authorization` header. Required when `AuthenticationType` is `Token`. Max 255 characters."
          },
          "SubscribedEvents": {
            "maxLength": 255,
            "type": "string",
            "nullable": true,
            "description": "Comma-separated list of events to subscribe to. Available events: `Order_Update`, `New_Sms`, `Call_Completed`, `Call_On_Hold`, `Call_Recording`, `Call_In_Progress`, `Call_Ringing`. Max 255 characters."
          }
        },
        "additionalProperties": false
      },
      "Webhook_Result": {
        "type": "object",
        "properties": {
          "AccountId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "WebhookUrl": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "Method": {
            "maxLength": 10,
            "type": "string",
            "nullable": true
          },
          "DataFormat": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "AuthenticationType": {
            "maxLength": 10,
            "type": "string",
            "nullable": true
          },
          "AuthenticationUsername": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "AuthenticationPassword": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "AuthenticationToken": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "SubscribedEvents": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "WebhookId": {
            "type": "string",
            "nullable": true
          },
          "Active": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Threshold_Request": {
        "type": "object",
        "properties": {
          "AccountId": {
            "type": "string",
            "nullable": true,
            "description": "Your Telegent account identifier (`AID-`). Scopes the threshold to this account.",
            "example": "AID-1234567"
          },
          "ThresholdName": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable name for this threshold.",
            "example": "80% Data Alert"
          },
          "ThresholdType": {
            "type": "string",
            "nullable": true,
            "description": "Resource the threshold applies to. Supported values: `Data`, `SMS`, `Voice`.",
            "example": "Data"
          },
          "ThresholdAmount": {
            "type": "integer",
            "description": "Numeric limit at which the threshold triggers (e.g. `80` for 80 MB).",
            "example": 80
          },
          "ThresholdUnit": {
            "type": "string",
            "nullable": true,
            "description": "Unit of measurement for `ThresholdAmount`. Supported values: `MB`, `GB`, `Count`.",
            "example": "MB"
          },
          "ThresholdAction": {
            "type": "string",
            "nullable": true,
            "description": "Action taken when the threshold is reached. Supported values: `Alert`, `Pause`, `Restrict`.",
            "example": "Alert"
          }
        },
        "additionalProperties": false
      },
      "Update_Threshold_Request": {
        "type": "object",
        "required": [
          "ThresholdId"
        ],
        "properties": {
          "ThresholdId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the threshold to update (`THID-`).",
            "example": "THID-a1b2c3d4-0000-0000-0000-000000000001"
          },
          "ThresholdName": {
            "type": "string",
            "nullable": true,
            "description": "Updated threshold name.",
            "example": "90% Data Alert"
          },
          "ThresholdType": {
            "type": "string",
            "nullable": true,
            "description": "Updated resource type: `Data`, `SMS`, or `Voice`.",
            "example": "Data"
          },
          "ThresholdAmount": {
            "type": "integer",
            "nullable": true,
            "description": "Updated trigger amount.",
            "example": 90
          },
          "ThresholdUnit": {
            "type": "string",
            "nullable": true,
            "description": "Updated unit: `MB`, `GB`, or `Count`.",
            "example": "MB"
          },
          "ThresholdAction": {
            "type": "string",
            "nullable": true,
            "description": "Updated action: `Alert`, `Pause`, or `Restrict`.",
            "example": "Pause"
          }
        },
        "additionalProperties": false
      },
      "Delete_Threshold_Request": {
        "type": "object",
        "required": [
          "ThresholdId"
        ],
        "properties": {
          "ThresholdId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the threshold to delete (`THID-`).",
            "example": "THID-a1b2c3d4-0000-0000-0000-000000000001"
          }
        },
        "additionalProperties": false
      },
      "Threshold_Assignment_Request": {
        "type": "object",
        "required": [
          "ThresholdId",
          "SubscriptionId"
        ],
        "properties": {
          "ThresholdId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the threshold to assign (`THID-`).",
            "example": "THID-a1b2c3d4-0000-0000-0000-000000000001"
          },
          "SubscriptionId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the subscription to assign the threshold to (`SUB-`).",
            "example": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c"
          }
        },
        "additionalProperties": false
      },
      "Update_Threshold_Assignment_Request": {
        "type": "object",
        "required": [
          "ThresholdAssignmentId"
        ],
        "properties": {
          "ThresholdAssignmentId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the threshold assignment to update (`TAID-`).",
            "example": "TAID-00000001-0000-0000-0000-000000000001"
          },
          "ThresholdId": {
            "type": "string",
            "nullable": true,
            "description": "Replacement threshold ID (`THID-`).",
            "example": "THID-a1b2c3d4-0000-0000-0000-000000000001"
          },
          "SubscriptionId": {
            "type": "string",
            "nullable": true,
            "description": "Replacement subscription ID (`SUB-`).",
            "example": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c"
          }
        },
        "additionalProperties": false
      },
      "Delete_Threshold_Assignment_Request": {
        "type": "object",
        "required": [
          "ThresholdAssignmentId"
        ],
        "properties": {
          "ThresholdAssignmentId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the threshold assignment to remove (`TAID-`).",
            "example": "TAID-00000001-0000-0000-0000-000000000001"
          }
        },
        "additionalProperties": false
      },
      "Feature_Request": {
        "type": "object",
        "properties": {
          "AccountId": {
            "type": "string",
            "nullable": true,
            "description": "Your Telegent account identifier (`AID-`). Scopes the feature to this account.",
            "example": "AID-1234567"
          },
          "FeatureName": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable name for this feature.",
            "example": "International Roaming"
          },
          "FeatureType": {
            "type": "string",
            "nullable": true,
            "description": "Category of the feature. Examples: `Data`, `Voice`, `SMS`, `Roaming`, `VoIP`.",
            "example": "Roaming"
          },
          "FeatureDescription": {
            "type": "string",
            "nullable": true,
            "description": "Optional description of what this feature provides.",
            "example": "Enables data and voice while roaming internationally."
          }
        },
        "additionalProperties": false
      },
      "Update_Feature_Request": {
        "type": "object",
        "required": [
          "FeatureId"
        ],
        "properties": {
          "FeatureId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the feature to update (`FEID-`).",
            "example": "FEID-00000001-0000-0000-0000-000000000001"
          },
          "FeatureName": {
            "type": "string",
            "nullable": true,
            "description": "Updated feature name.",
            "example": "Global Roaming Plus"
          },
          "FeatureType": {
            "type": "string",
            "nullable": true,
            "description": "Updated category: `Data`, `Voice`, `SMS`, `Roaming`, or `VoIP`.",
            "example": "Roaming"
          },
          "FeatureDescription": {
            "type": "string",
            "nullable": true,
            "description": "Updated description.",
            "example": "Enables data, voice, and SMS while roaming internationally."
          }
        },
        "additionalProperties": false
      },
      "Delete_Feature_Request": {
        "type": "object",
        "required": [
          "FeatureId"
        ],
        "properties": {
          "FeatureId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the feature to delete (`FEID-`).",
            "example": "FEID-00000001-0000-0000-0000-000000000001"
          }
        },
        "additionalProperties": false
      },
      "Feature_Assignment_Request": {
        "type": "object",
        "required": [
          "FeatureId",
          "SubscriptionId"
        ],
        "properties": {
          "FeatureId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the feature to assign (`FEID-`).",
            "example": "FEID-00000001-0000-0000-0000-000000000001"
          },
          "SubscriptionId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the subscription to assign the feature to (`SUB-`).",
            "example": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c"
          }
        },
        "additionalProperties": false
      },
      "Update_Feature_Assignment_Request": {
        "type": "object",
        "required": [
          "FeatureAssignmentId"
        ],
        "properties": {
          "FeatureAssignmentId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the feature assignment to update (`FAID-`).",
            "example": "FAID-00000001-0000-0000-0000-000000000001"
          },
          "FeatureId": {
            "type": "string",
            "nullable": true,
            "description": "Replacement feature ID (`FEID-`).",
            "example": "FEID-00000001-0000-0000-0000-000000000001"
          },
          "SubscriptionId": {
            "type": "string",
            "nullable": true,
            "description": "Replacement subscription ID (`SUB-`).",
            "example": "SUB-ef84c0b5-d750-4a5a-99b1-4705089cd20c"
          }
        },
        "additionalProperties": false
      },
      "Delete_Feature_Assignment_Request": {
        "type": "object",
        "required": [
          "FeatureAssignmentId"
        ],
        "properties": {
          "FeatureAssignmentId": {
            "type": "string",
            "nullable": false,
            "description": "ID of the feature assignment to remove (`FAID-`).",
            "example": "FAID-00000001-0000-0000-0000-000000000001"
          }
        },
        "additionalProperties": false
      },
      "BadRequest_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Forbidden_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NotFound_Result": {
        "required": [
          "StatusCode"
        ],
        "type": "object",
        "properties": {
          "StatusCode": {
            "type": "integer",
            "format": "int32"
          },
          "Message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Update_Roaming_Request": {
        "required": [
          "EnableRoaming",
          "PhoneNumber"
        ],
        "type": "object",
        "properties": {
          "PhoneNumber": {
            "minLength": 1,
            "type": "string",
            "description": "The phone number to update, in E.164 format (e.g. `+12345678901`). Required."
          },
          "EnableRoaming": {
            "type": "boolean",
            "description": "Set to `true` to enable international roaming on the number, or `false` to disable it. Required."
          },
          "AccountId": {
            "type": "string",
            "nullable": true,
            "description": "Optional account identifier (`AID-` prefix) used to scope the request to a specific account when your Bearer token has access to multiple accounts."
          }
        },
        "additionalProperties": false
      },
      "Update_Roaming_Result": {
        "type": "object",
        "properties": {
          "PhoneNumber": {
            "type": "string",
            "nullable": true
          },
          "Roaming": {
            "type": "string",
            "nullable": true
          },
          "Status": {
            "type": "string",
            "nullable": true
          },
          "StatusMessage": {
            "type": "string",
            "nullable": true
          },
          "AccountId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "OAuth2"
    },
    {
      "name": "Accounts"
    },
    {
      "name": "Distributors"
    },
    {
      "name": "Message"
    },
    {
      "name": "Numbers"
    },
    {
      "name": "Voicemail"
    },
    {
      "name": "Packages"
    },
    {
      "name": "Products"
    },
    {
      "name": "Services"
    },
    {
      "name": "Sims"
    },
    {
      "name": "Subscribers"
    },
    {
      "name": "Subscriptions"
    },
    {
      "name": "Voice"
    },
    {
      "name": "Workgroups"
    },
    {
      "name": "Health Status"
    }
  ]
}
