Update Live Stream
curl --request PATCH \
--url https://api.snipp.gg/live \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"title": "Ranked grind",
"moderators": [
"9876543210"
],
"chat_slow_seconds": 10
}
'import requests
url = "https://api.snipp.gg/live"
payload = {
"title": "Ranked grind",
"moderators": ["9876543210"],
"chat_slow_seconds": 10
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Ranked grind', moderators: ['9876543210'], chat_slow_seconds: 10})
};
fetch('https://api.snipp.gg/live', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.snipp.gg/live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Ranked grind',
'moderators' => [
'9876543210'
],
'chat_slow_seconds' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.snipp.gg/live"
payload := strings.NewReader("{\n \"title\": \"Ranked grind\",\n \"moderators\": [\n \"9876543210\"\n ],\n \"chat_slow_seconds\": 10\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.snipp.gg/live")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Ranked grind\",\n \"moderators\": [\n \"9876543210\"\n ],\n \"chat_slow_seconds\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snipp.gg/live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Ranked grind\",\n \"moderators\": [\n \"9876543210\"\n ],\n \"chat_slow_seconds\": 10\n}"
response = http.request(request)
puts response.read_body{
"live_stream": {
"ingest_url": "rtmps://live.snipp.gg:443/live/",
"stream_key": "a1b2c3d4e5f6",
"live": true,
"title": "Ranked grind",
"started_at": "2026-11-03T08:00:00.000Z",
"viewers": 17,
"watch_url": "https://snipp.live/nitcord",
"minutes": {
"used": 42,
"limit": 300,
"used_percent": 14,
"resets_at": "2026-11-20T19:30:00.000Z"
},
"moderators": [
{
"id": "9876543210",
"username": "snipp",
"nickname": "Snipp",
"avatar": "https://cdn.snipp.gg/avatar.png",
"verified": true,
"plan": "free",
"suspended": false
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}Live
Update Live Stream
Change the title or the moderator list.
PATCH
/
live
Update Live Stream
curl --request PATCH \
--url https://api.snipp.gg/live \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"title": "Ranked grind",
"moderators": [
"9876543210"
],
"chat_slow_seconds": 10
}
'import requests
url = "https://api.snipp.gg/live"
payload = {
"title": "Ranked grind",
"moderators": ["9876543210"],
"chat_slow_seconds": 10
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Ranked grind', moderators: ['9876543210'], chat_slow_seconds: 10})
};
fetch('https://api.snipp.gg/live', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.snipp.gg/live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Ranked grind',
'moderators' => [
'9876543210'
],
'chat_slow_seconds' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.snipp.gg/live"
payload := strings.NewReader("{\n \"title\": \"Ranked grind\",\n \"moderators\": [\n \"9876543210\"\n ],\n \"chat_slow_seconds\": 10\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.snipp.gg/live")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Ranked grind\",\n \"moderators\": [\n \"9876543210\"\n ],\n \"chat_slow_seconds\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.snipp.gg/live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"Ranked grind\",\n \"moderators\": [\n \"9876543210\"\n ],\n \"chat_slow_seconds\": 10\n}"
response = http.request(request)
puts response.read_body{
"live_stream": {
"ingest_url": "rtmps://live.snipp.gg:443/live/",
"stream_key": "a1b2c3d4e5f6",
"live": true,
"title": "Ranked grind",
"started_at": "2026-11-03T08:00:00.000Z",
"viewers": 17,
"watch_url": "https://snipp.live/nitcord",
"minutes": {
"used": 42,
"limit": 300,
"used_percent": 14,
"resets_at": "2026-11-20T19:30:00.000Z"
},
"moderators": [
{
"id": "9876543210",
"username": "snipp",
"nickname": "Snipp",
"avatar": "https://cdn.snipp.gg/avatar.png",
"verified": true,
"plan": "free",
"suspended": false
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"retry_at": "2023-11-07T05:31:56Z",
"missing": [
123
]
}
}Change your stream title, your chat settings, or replace your list of chat moderators.
Behavior
- Needs an API key with gallery access, like the gallery endpoints. Other keys get
403with typeforbidden. See Authentication. - Send any of
title,moderators,chat_enabledandchat_slow_seconds. Sending none is400. titleis up to 140 characters. An empty string ornullclears it, and the watch page shows a default title instead.moderatorsis the complete list of user IDs, up to 10, and replaces the current list. Send[]to remove everyone. You cannot add yourself. A user who does not exist or is suspended gives404, and a user who blocked you, or whom you blocked, gives403with typeblocked.- Moderators can remove messages, time people out and ban people in your chat. Only you and staff can time out or ban a moderator.
chat_enabled: falseturns the chat off: nobody, you included, can read or send messages until you turn it back on. Nothing is deleted.chat_slow_secondsis0(off),5,10,30or60: how long each viewer waits between messages. You, your moderators and staff are exempt.- Returns
404if streaming is not set up.
Example
curl -X PATCH "https://api.snipp.gg/live" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Ranked grind", "moderators": ["987654321098765432"]}'
Body
application/json