Send input
curl --request POST \ --url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/input \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "text": "example", "keys": [ "example" ], "cols": 1, "rows": 1 }'Sends text verbatim, then tmux-style keys, starting the pane’s shell if no client has yet.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Pane ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Sent verbatim, before keys.
Tmux-style key names, e.g. ["Enter"] or ["C-c"].
Only used if the PTY hasn’t been spawned yet (no browser has attached to this pane). Ignored once a shell is already running.
Example generated
{ "text": "example", "keys": [ "example" ], "cols": 1, "rows": 1}Responses
Section titled “Responses”Sent
object
True if this call caused the shell to spawn. Callers polling
/output afterward should expect a short delay before the shell
prints its first prompt.
Example generated
{ "newly_spawned": true}An unknown key name, no text or keys, or more than 64 KiB; or a malformed ID or JSON body
Missing or wrong access token
The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)
No such pane
A body over the size limit
No Content-Type: application/json
A body that doesn’t match its schema
The shell failed to start, or the pane closed