Bots.Business API v2
  1. User account
Bots.Business API v2
  • Bots.Business API v2
    • BB Api docs
    • Authentication
      • Sign in
      • Get Telegram login URL
      • Sign up
      • Telegram login
      • Reset Password
    • User account
      • Update password
        PUT
      • Get user details
        GET
      • Update email
        POST
      • Get linked telegram accounts
        GET
      • Get telegram link url
        GET
      • Get users session token
        GET
      • Reset api key
        POST
      • Log out all device
        DELETE
      • Get iteration usage
        GET
      • Turn ON or OFF ads
        POST
      • Get payment plan
        GET
    • Bots
      • Create Bot
      • Get Bots
      • Get single bot
      • Edit Bot
      • Delete Bot
      • Start or Stop bot
      • Start CSV import
      • CSV import task status
      • Copy Bot
      • Git export
      • Git import
      • Get installed libraries
      • Install Lib
      • Uninstall lib
      • Get error log
      • Clear error logs
    • Commands
      • Folders
        • Create a folder
        • Get all folders
        • Delete a folder
      • Get Commands
      • Create Command
      • Get Command Details
      • Edit Command
      • Delete Command
    • Broadcast
      • Get broadcast tasks
      • Delete Broadcast task
      • Pause broadcast task
      • Resume broadcast task
    • Chats
      • Get chats
      • Block chat
      • Unblock chat
    • Properties
      • Get properties
      • Delete property
    • Libraries
      • Get libraries
    • Admin Panel
      • Get admin panels
      • Update admin panel values
    • Demo Store
      • Get store bots
      • Install demo bot
    • Get cloud plans
      GET
    • Schemas
      • Command Schema
      • User Public
      • Create & Edit Bot
      • Bot
  1. User account

Turn ON or OFF ads

POST
https://api.bots.business/v2/user/iterations/toggle_ads
Last modified:2025-11-01 13:19:19
Use this endpoint to enable or disable advertisements in your bot. When ads are enabled, you receive increased iteration limits and potential earnings, but advertisements will be displayed to your bot's users.

Request

Query Params

Responses

🟢200Success
application/json
Body

🟠401Unauthorized
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.bots.business/v2/user/iterations/toggle_ads?api_key=UKDZu-c68cubrIbniuE2P_nWj0p5r4IHARNrAV-I'
Response Response Example
200 - Success
{
    "id": 238460,
    "limit": 7500,
    "progress": 477,
    "quotum_type_id": 1,
    "user_id": 22425807,
    "started_at": "2025-10-23T13:48:40.419Z",
    "created_at": "2023-11-30T04:02:45.971Z",
    "updated_at": "2025-10-28T04:47:12.877Z",
    "extra_points": 46,
    "ended_at": "2025-11-23T13:48:40.419Z",
    "paid_cycles_count": 0,
    "have_ads": false,
    "quotum_type": {
        "id": 1,
        "name": "IterationQuota",
        "base_limit": 7500,
        "payment_plan_id": 1,
        "created_at": "2018-12-17T04:44:36.388Z",
        "updated_at": "2025-04-08T14:16:12.369Z",
        "ads_limit": 3000000
    }
}
Modified at 2025-11-01 13:19:19
Previous
Get iteration usage
Next
Get payment plan
Built with