Wetel
Go back

Can I try Wetel's API in my browser before writing code?

Yes: open Wetel’s GraphQL endpoint in a browser and you land in an interactive GraphQL workbench, connected to the live API, with nothing to install and no separate sign-up. Add the platform header and your credential in its headers panel, and you can run any query or mutation by hand before you write a line of client code.

Think of it as the test kitchen next to the restaurant: same ingredients, same ovens, but nobody is waiting for the plate. It is where you check that a call does what you expect before it goes into your app.

Where do I open it?

At the GraphQL endpoint itself. The docs use https://api.wetel.dev/graphql in their examples; use the hostname you were given for your environment. Staging and production are separate, and a key from one is rejected by the other.

Which headers do I need?

Two, added in the workbench’s headers panel. The workbench does not log you in; you attach credentials the same way any API client does.

The platform header, on every request:

x-huat-platform: customer

Forget it and you get "Platform is not specified!", which looks like an auth error but is not. Check this header first.

Then one credential, depending on what you are calling:

A first safe query

Start with something that only reads. With a dashboard login, list your agents:

query ListAgents {
agents {
id
name
status
useCase
}
}

It changes nothing, and it proves your header and credential are right. The workbench’s docs panel, built from the live schema, then lets you browse every type and field from there.

Which two mistakes does it help you catch?

Name your mutations. A mutation that returns a plain Boolean, such as sdkSendMessage, fails with a confusing "syntax error: invalid number" if you send it without an operation name. Always write mutation SendIt { ... }, not a bare mutation { ... }:

mutation SendIt {
sdkSendMessage(input: { sessionId: 42, text: "hello" })
}

Put JSON in variables. Workflow nodes and edges are JSON values. Writing them inline in the query fails with a parse error (Expected Name, found String). Reference them as a variable in the operation and put the JSON in the variables panel instead.

What can’t it do?

It is not a good tool for watching live events. It runs one request and shows one response; it is not built to show a stream of session events as they arrive, so the AI employee’s replies will not appear there. For that, write a small test script with a GraphQL WebSocket client (see events and subscriptions).

What should I not do?

If you are working with an AI coding assistant, the workbench is a good place to check the calls it writes; see a skill file for your AI coding assistant. Whatever you try here, changes reach customers only when a person in your workspace publishes them.

To open it and run your first query, read the Workbench guide.


Share this post:

Next Post
A model that decides, a workflow that acts: how decision models fit AI workflows
Previous Post
A skill file that teaches your AI coding assistant to build on Wetel