GraphQL API
Boost daemon exposes a GraphQL API that is used by the Web UI to query and update information about storage and retrieval deals.
The GraphQL API query endpoint is at http://localhost:8080/graphql/query
You can also run your own queries against the GraphQL API using curl
or a programming language that has a GraphQL client.
Boost has a built-in GraphQL explorer at http://localhost:8080/graphiql
You can test out queries, or explore the GraphQL API by clicking on the < Docs
link at the top right of the page:
![](https://boost.filecoin.io/~gitbook/image?url=https%3A%2F%2F437316145-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FfZMqMjrWeFXMBES7ehiI%252Fuploads%252F0TxmNcPzTZyOMjiNzCQg%252FScreen%2520Shot%25202022-04-21%2520at%252010.06.16%2520AM.png%3Falt%3Dmedia%26token%3D861edbcf-884a-4f55-8873-615983aadfe4&width=768&dpr=4&quality=100&sign=c3889a60&sv=1)
To run a GraphQL query with curl
:
This 1m video shows how to use these tools to build an run a GraphQL query against Boost:
Example Queries
1. Query failed deals
2. Cancel a deal where ab12345c-5678-90de-12f3-45a6b78cd9ef
is the deal ID
Last updated