Skip to main content

How do I use the Coinstash API?

Connect to the Coinstash API—generate keys, set permissions and pull market or account data.

Updated over 2 months ago

The Coinstash API is a GraphQL server.

A GraphQL server is a backend server that implements the GraphQL query language to handle and respond to client requests for data. Unlike traditional REST APIs, where each endpoint is responsible for a specific resource (e.g., /users, /posts), GraphQL allows clients to request exactly the data they need and nothing more, often from a single endpoint.

To explore the API:

  1. Go to the Apollo GraphQL Studio: https://studio.apollographql.com/sandbox/explorer

  1. Switch to the Coinstash GraphQL endpoint: https://graph.coinstash.com.au/graphql

  1. In the bottom right corner set the Authorization Header to:

Header key: Authorization

Value: Bearer {{YOUR-API-KEY}} (don't forget the space)

  1. Now you can test the API with a sample query:

query UserProfile {
userProfile {
email
}
}

Did this answer your question?