Skip to content

Conversation

@alexjustesen
Copy link
Owner

@alexjustesen alexjustesen commented May 19, 2025

📃 Description

This PR introduces a new POST request endpoint /api/v1/speedtests/run to run a speedtest via the API. The API will respond with the result ID and a new status of "waiting".

This PR expands on the work started in #2201.

📖 Documentation

https://docs.speedtest-tracker.dev/api/v1#run-speedtest

🪵 Changelog

➕ Added

  • API abilities for results:read and speedtests:run, on deployment/update all existing token will be scoped to the results:read ability only. To use speedtests:run a new API token needs to be created.
  • "waiting" result status for when a speedtest was created in the database but has not been picked up by a queue worker.

✏️ Changed

  • removed ID column from API tokens list and added created_at date.

@alexjustesen alexjustesen self-assigned this May 19, 2025
@alexjustesen alexjustesen added the feature New feature or request label May 19, 2025
@alexjustesen alexjustesen marked this pull request as ready for review May 19, 2025 17:43
@alexjustesen alexjustesen merged commit 789198b into main May 19, 2025
2 checks passed
@alexjustesen alexjustesen deleted the run-speedtests-from-the-api branch May 19, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remotely trigger speedtests

2 participants