Workbench (GraphQL console)
The API serves a browser-based GraphQL console at its own URL: open https://api.wetel.dev/graphql (the test environment) in a browser and you get the Wetel GraphQL console, a GraphiQL editor connected to the API. There is nothing to install or sign up for. Whether an environment serves the console with its starter tabs, and allows schema introspection, is a setting of that environment; your production URL is issued when you go live.
Authenticating in the console
Section titled “Authenticating in the console”The console does not sign you in. Open the Headers panel under the editor and send the same headers as any client:
{ "x-huat-platform": "customer", "Authorization": "Bearer <dashboard JWT or avatarToken>"}Use "X-Api-Key": "<API key>" instead of Authorization for API-key operations such as sdkStart. The starter tabs come with these headers filled in as placeholders. Which operation takes which credential is in Authentication.
What it is good for
Section titled “What it is good for”- Running one operation by hand. Write it, fill in variables, run it and read the raw response before you write client code.
- Browsing the schema. The docs panel shows every type, field, argument and description from the live schema, which complements the API Reference.
- Checking names as you type. The editor validates field names and argument shapes against the schema.
Name every mutation that returns a plain Boolean (mutation SendIt { sdkSendMessage(...) }); an anonymous one can fail with syntax error: invalid number.
What it cannot do
Section titled “What it cannot do”- Subscriptions. The console is configured with no WebSocket URL, so you cannot watch
sessionEventsin it. Use a short script with agraphql-wsclient: see Events and Subscriptions. - Other origins. The page only talks to the API it is served from.
For an interactive reference of the documented operations with ready-made requests, see the Interactive API reference.