How do I connect a custom integration to the Endless GraphQL API?
Send HTTP POST requests to the GraphQL endpoint shown with your integration, using its access token and your company ID or handle.
| Header | Value |
|---|---|
| Content-Type | application/json |
| X-EC-Access-Token | Your integration’s access token, without a Bearer prefix |
| X-Company-Id | Your Endless company ID or handle |
The production endpoint is https://api.endlesscommerce.com/graphql. Test it with placeholder values replaced in your own trusted environment:
curl --request POST \
--url https://api.endlesscommerce.com/graphql \
--header 'Content-Type: application/json' \
--header 'X-EC-Access-Token: YOUR_ACCESS_TOKEN' \
--header 'X-Company-Id: YOUR_COMPANY_ID' \
--data '{"query":"query ConnectionCheck { __typename }"}'
A successful response contains:
{"data":{"__typename":"Query"}}
This checks the endpoint and basic request structure. Test a query for the records you need as well; the connection check does not confirm that a particular operation or company dataset is accessible.
Use the API reference for current queries, mutations, arguments, and response types. See custom integration credentials and rotation and handling API responses.