Skip to main content
The Hey Chocolate API is a GraphQL API that provides a single endpoint for all operations. GraphQL allows you to request exactly the data you need and combine multiple resources in a single request.

Endpoint

Sandbox environment:

Making requests

All requests are POST requests with a JSON body containing the GraphQL query:

Request format

Response format

Every response follows the standard GraphQL response format:

Pagination

The API uses cursor-based pagination following the Relay Connection specification:

Introspection

The GraphQL schema is fully introspectable. Use your favorite GraphQL client (GraphiQL, Apollo Studio, Insomnia) to explore the schema:

Schema overview

Queries

Read data: products, customers, orders, supply chains, search, and DPPs.

Mutations

Write data and trigger actions: calculations, scenarios, orders, and asset generation.

Types

Core data types: Customer, Product, Order, SupplyChain, Transaction, ShoppingCart, DPP.

Enums

Sector tags, transport methods, energy sources, lifecycle phases, and more.