createCountdownBarInstance
const url = 'https://example.com/api/v1/plugins/countdown-bar/instances';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","message":"example","scheduleType":"weekly","targetTime":"example","daysOfWeek":[1],"oneTimeAt":"2026-04-15T12:00:00Z","timezone":"example","leadTimeSeconds":1,"completionText":"example","showConfetti":false,"displayMode":"overlay","heightPx":1,"progressFill":"none","contentPadding":4,"textScale":100,"fontId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","urgencyEnabled":false,"startingSoonSeconds":300,"urgentSeconds":60,"pulseSeconds":10,"enabled":true,"priority":1,"targetScope":"all","targetIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/plugins/countdown-bar/instances \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "message": "example", "scheduleType": "weekly", "targetTime": "example", "daysOfWeek": [ 1 ], "oneTimeAt": "2026-04-15T12:00:00Z", "timezone": "example", "leadTimeSeconds": 1, "completionText": "example", "showConfetti": false, "displayMode": "overlay", "heightPx": 1, "progressFill": "none", "contentPadding": 4, "textScale": 100, "fontId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "urgencyEnabled": false, "startingSoonSeconds": 300, "urgentSeconds": 60, "pulseSeconds": 10, "enabled": true, "priority": 1, "targetScope": "all", "targetIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Create a Countdown Bar instance. Requires an Owner or Administrator.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters”Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Show a short confetti fall from the top of the Player when the countdown reaches zero. This does not require completion text.
Background treatment behind the bar text. “drain” starts the bar fully tinted when the lead window opens and retreats the tint leftward as the target approaches, leaving only the bar background at zero. Omitted means “none”.
Share of each side left as a gutter, as a percentage of the bar width. Lowering it gives a long message or a larger type size more room. The default 4 matches the bar’s original gutters.
Percentage applied to the height-derived type size, so a bar can carry larger text without changing its height. 100 is the original appearance.
An organization font library family the bar draws with, from GET /api/v1/fonts. Omit it, or send null, to keep the Player’s own face. A Player draws the library family only when it hosts Plugin API 2 and the font service; every other Player keeps its own face. A family that is not in the library is rejected, and the library refuses to remove a family a bar uses.
Enable automatic starting-soon, urgent, and final pulse stages.
Final seconds during which the urgent bar pulses and grows by 25 percent.
Responses
Section titled “ Responses ”Countdown Bar instance created
Typed configuration or targets are invalid
Owner or Administrator required