docs/current_docs/extending/modules/playground.mdx
The API Playground was an in-browser tool for testing, running and sharing Dagger API queries. It has since been decommissioned.
The recommended approach is to use the dagger query sub-command, which provides an easy way to send raw GraphQL queries to the Dagger API from the command line.
In order to run the GraphQL API locally and explore, you can follow these steps:
:::note
This will start the Dagger GraphQL server and allow CORS requests on http://127.0.0.1:8080/query.
You can then use a GraphQL client like Altair to connect to the API server and explore the Dagger API/schema. :::
dagger.json file)DAGGER_SESSION_TOKEN environment variable to test (or your desired token)env DAGGER_SESSION_TOKEN=test dagger listen --allow-corsDAGGER_SESSION_TOKEN value as the username and password (e.g. test would be the header Authorization: Basic dGVzdDo=)