Making Requests
Examples for calling Amboss GraphQL APIs using common tools and languages.
cURL
Unauthenticated request:
request.sh
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query":"query{getHello}"}' \
https://api.amboss.space/graphqlAuthenticated request:
request.sh
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer [API_KEY]" \
-d '{"query":"query{getHello}"}' \
https://api.amboss.space/graphqlAPI Endpoints
Replace the URL in the examples above with the endpoint for the product you’re using:
| Product | GraphQL Endpoint | Apollo Studio Explorer |
|---|---|---|
| Space | https://api.amboss.space/graphql | Open Explorer |
| Reflex | https://reflex.amboss.tech/graphql | Open Explorer |
| Magma | https://magma.amboss.tech/graphql | Open Explorer |
| Rails | https://rails.amboss.tech/graphql | Open Explorer |