Skip to main content
All endpoints on this page require a token with write permission.
Write endpoints are POST only.

POST /play

Starts playback. You can provide a track_id to play a specific track. Request body:
track_id is optional. Without it, Velora can treat the request as a resume depending on current player state. Success response:

POST /pause

Pauses playback.

POST /next

Skips to the next track.

POST /previous

Skips to the previous track.

POST /seek

Seeks playback to a position in milliseconds. Request body:
Rules:
  • position must be a number
  • position must be greater than or equal to 0
Invalid position response (400):
Success response:

POST /toggle and POST /toggle-play

Both paths toggle play and pause. Success response:

cURL examples