@delvry/client
v1.0.0
Published
TypeScript HTTP client for Delvry — agent-friendly Q&A surveys.
Readme
@delvry/client
TypeScript HTTP client for Delvry — agent-friendly Q&A surveys.
Install
npm i @delvry/clientUse
import { DelverClient } from "@delvry/client";
const client = new DelverClient({
endpoint: "https://delvry.ai",
apiKey: process.env.DELVRY_API_KEY!,
});
const { survey_id, anonymous_url } = await client.createSurvey({
version: "1",
title: "Q4 retro",
audience_mode: "anonymous",
max_responses: 50,
questions: [
{ id: "q1", type: "long_text", prompt: "What slowed us down?", required: true },
],
});
const responses = await client.getResponses(survey_id);The full surface mirrors the Delvry HTTP API: surveys CRUD, recipients, responses, webhooks, summarization, key management, account info.
Bootstrap
To create an account programmatically:
const r = await fetch("https://delvry.ai/v1/accounts/signup", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ email: "[email protected]", account_name: "My project" }),
});
const { first_api_key } = await r.json();Docs
- https://delvry.ai
- https://delvry.ai/llms.txt
