HTTP Endpoints
Documentation for xTimer API HTTP endpoints
HTTP Endpoints
The xTimer API enables you to remotely control your timer using scripts and external tools. The HTTP API provides endpoints for various timer operations including starting, stopping, and resetting timers, as well as managing messages and rooms.
Authentication
xTimer uses token-based authentication, requiring an API key. Authenticate by sending your API key using the api_key
query parameter, or send it as a "bearer token" in the HTTP Authorization
header. All API requests must be authenticated and made over HTTPS.
Base URL
All API endpoints are relative to the base URL:
Room Endpoints
Generate a New Room PID
Creates a new room with a unique PID and default 10-minute timer.
Query Parameters:
timezone
(required): Timezone for the roomteamId
(optional): Team ID for the roomview
(optional): View type
Response:
Get Room Information
Retrieves all information for a specific room.
Path Parameters:
pid
: Room PID
Query Parameters:
view
(optional): View type (CONTROLLER, VIEWER, AGENDA, MODERATOR)role
(optional): Role type (alias for view)
Response:
Update Room Name
Updates the name of a specific room.
Path Parameters:
pid
: Room PID
Request Body:
Response:
Timer Endpoints
Start a Timer
Starts a specific timer in a room.
Path Parameters:
pid
: Room PIDtimerId
: Timer ID
Response:
Stop a Timer
Stops a specific timer in a room.
Path Parameters:
pid
: Room PIDtimerId
: Timer ID
Response:
Reset a Timer
Resets a specific timer in a room.
Path Parameters:
pid
: Room PIDtimerId
: Timer ID
Response:
Tweak a Timer
Adjusts the time of a specific timer in a room.
Path Parameters:
pid
: Room PIDtimerId
: Timer ID
Request Body:
Response:
Create a New Timer
Creates a new timer in the room.
Path Parameters:
pid
: Room PID
Request Body:
Response: Returns the created timer object.
Update Timer Settings
Unified endpoint to update any timer settings.
Path Parameters:
pid
: Room PIDtimerId
: Timer ID
Request Body:
Response:
Message Endpoints
Create a New Message
Creates a new message in a room.
Path Parameters:
pid
: Room PID
Request Body:
Response:
Toggle Message Visibility
Shows or hides a specific message in a room.
Path Parameters:
pid
: Room PIDmessageId
: Message ID
Response:
Flash a Message
Flashes a specific message to call attention to it.
Path Parameters:
pid
: Room PIDmessageId
: Message ID
Response:
Other Endpoints
Toggle Blackout Mode
Toggles the blackout mode for the specified room.
Path Parameters:
pid
: Room PID
Request Body:
Response:
Synchronize Playback
Synchronizes timer playback across all clients in the room.
Path Parameters:
pid
: Room PID
Response: