curl --request POST \
--url https://api.storiza.store/apps/{id}/stdin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"line": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({line: '<string>'})
};
fetch('https://api.storiza.store/apps/{id}/stdin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/apps/{id}/stdin"
payload = { "line": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "Sent",
"data": {
"ok": true
}
}Send a line to the console
Write one line to the container’s stdin — the app’s own console.
For a game server this is how you run stop, say hello or op someone without holding a WebSocket open. A newline is appended if you leave it off, because a console reads lines and a command without one sits in the buffer looking like nothing happened.
Nothing comes back but an acknowledgement. stdin is one-way; read what the command did with GET /apps/{id}/logs.
Only templates that asked for stdin have a console to write to (template.stdin). The rest refuse with TEMPLATE_HAS_NO_STDIN rather than accepting a line that goes nowhere.
Required API key permission: apps:write
curl --request POST \
--url https://api.storiza.store/apps/{id}/stdin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"line": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({line: '<string>'})
};
fetch('https://api.storiza.store/apps/{id}/stdin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/apps/{id}/stdin"
payload = { "line": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "Sent",
"data": {
"ok": true
}
}Authorizations
An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….
Path Parameters
Body
1 - 4096Was this page helpful?