Skip to content
API

Agent API

How an agent reaches a member's room. This page is drawn from the server's own description, so it matches what the server serves.

Overview

The agent API lets a paid member's own agent work in their room. It is described by an OpenAPI document, which this page is drawn from, and it speaks JSON over HTTPS.

Base URL

https://app.tommyskaraoke.com
Document
TommysKaraoke agent API
Version
1.20.4
Commands
5

Read from the server on 2026-11-24.

Prerequisites

To call the API you need:

  • A paid Tommy's Karaoke membership.
  • A room of your own to work in.

Reading this page needs no account. To begin, sign in to the app with your member account.

Sign in

How an agent finds what is live

The server publishes its agent API as an OpenAPI document. Read it first, every time: it names each command, the scope that command needs and its inputs, and it wins over this page if the two ever differ.

curl "https://app.tommyskaraoke.com/api/agent/openapi.json"

The tk-agent command-line tool is generated from that same document each time it runs, so the commands it offers are the commands the server offers. Anything missing from the document is not for agents.

Open the document

Authentication

A bearer token in the Authorization header. Send it with every call, over HTTPS. A call without it is refused.

Authorization: Bearer <key>

Keep the key out of prompts, logs and shared files. It belongs to the member who owns the room.

Make a request

The quickest call reads something and changes nothing. Here is queue, the first read in the document.

curl "https://app.tommyskaraoke.com/api/agent/rooms/<room>/queue" \
  -H "Authorization: Bearer <key>"

Swap each <placeholder> for your own value. The next section lists what a key may do.

Scopes

A key carries scopes, and each command needs one.

Commands

queue

queue:read

GET /api/agent/rooms/{room}/queue

The room's queue: titles, singers and the entries this token added (`is_mine`).

Parameters

room path, string, required
 

Responses

  • 200 Successful Response
  • 422 Validation Error

Example

curl "https://app.tommyskaraoke.com/api/agent/rooms/<room>/queue" \
  -H "Authorization: Bearer <key>"

add

queue:add

POST /api/agent/rooms/{room}/queue

Add a song inside the room's per-guest cap (and its request approval), stamped as the agent's.

Parameters

room path, string, required
 

Body

song string, required
a song id from `search` (its library path). 1 to 1024 characters

Responses

  • 200 Successful Response
  • 422 Validation Error

Example

curl -X POST "https://app.tommyskaraoke.com/api/agent/rooms/<room>/queue" \
  -H "Authorization: Bearer <key>" \
  -H "Content-Type: application/json" \
  -d '{"song":"<song>"}'

remove

queue:add

DELETE /api/agent/rooms/{room}/queue

Remove one song this token added: another entry answers 403.

Parameters

room path, string, required
 
song query, string, required
 

Responses

  • 200 Successful Response
  • 422 Validation Error

Example

curl -X DELETE "https://app.tommyskaraoke.com/api/agent/rooms/<room>/queue?song=<song>" \
  -H "Authorization: Bearer <key>"

status

room:read

GET /api/agent/rooms/{room}/status

The room at a glance: what plays, how long the queue is and what this token may add.

Parameters

room path, string, required
 

Responses

  • 200 Successful Response
  • 422 Validation Error

Example

curl "https://app.tommyskaraoke.com/api/agent/rooms/<room>/status" \
  -H "Authorization: Bearer <key>"

Errors

The API answers with ordinary HTTP status codes. These are the ones the document lists; a refusal that is not listed still arrives as a status and a body that says why.

200
Successful Response Returned by every command.
422
Validation Error Returned by every command.

Rate limits

The server may refuse a call for a plan, a scope, an expired key or a rate limit, and the status and body say which. This page gives no figures, because the document carries none: when a call is limited, wait as the response says and try once more.

Next steps