Create a fictional workflow run, inspect a static response and understand the frontend interface states.
Overview
This guide demonstrates a coherent developer experience for the template. A real product must provide its own package, endpoint, credentials, validation and error behavior.
1. Initialize the client
Use an explicit endpoint and keep credentials outside public frontend source code.
const nexora = createClient({
endpoint: "https://api.example.test",
token: process.env.NEXORA_TOKEN
});2. Trigger a workflow
const run = await nexora.workflows.trigger({
workflow: "lead-enrichment",
input: { email: "ava@example.test" }
});run = nexora.workflows.trigger(
workflow="lead-enrichment",
input={"email": "ava@example.test"}
)curl -X POST https://api.example.test/v1/workflows/run3. Handle the response
Use status and structured error fields rather than parsing message text.
{
"id": "run_demo_8f2",
"status": "queued",
"created_at": "2026-07-11T12:00:00Z"
}Next steps
- Add a review checkpoint.
- Map one fictional integration.
- Define visible exception states.
- Replace all demonstration content with real API behavior.