VEYNDO
Handbook
docs/reference/host.mdView source ↗

English source · 2 min

Host API reference

Process entry, route registry, worker roles, migrations and command-line tools. Contract version 1.0.0, generated from contracts/http/host.openapi.json. 1 HTTP operations, 0 MCP tools. All components · Build your first app.

Set up a client

Every example below uses these three values. VEYNDO_TOKEN is needed only for merchant operations; keep it on your server.

export VEYNDO_URL=https://api.veyndo.ai
export VEYNDO_SHOP=<your-shop-id>
export VEYNDO_TOKEN=<personal-session-or-integration-key>

curl

curl -fsS "$VEYNDO_URL/health"

TypeScript

import { Auth, VeyndoClient } from "@veyndo/commerce-client";

const client = new VeyndoClient({
  baseUrl: process.env.VEYNDO_URL!,
  tenant: process.env.VEYNDO_SHOP,
  auth: process.env.VEYNDO_TOKEN ? Auth.personalSession(process.env.VEYNDO_TOKEN) : undefined,
});

Python

import os
from veyndo_sdk import Auth, VeyndoClient

token = os.environ.get("VEYNDO_TOKEN")
client = VeyndoClient(os.environ["VEYNDO_URL"], tenant=os.environ["VEYNDO_SHOP"],
                      auth=Auth.personal_session(token) if token else None)

Rust

use serde_json::json;
use veyndo_sdk::{Auth, Client, ClientOptions, RequestOptions};

let client = Client::new(ClientOptions {
    base_url: std::env::var("VEYNDO_URL")?,
    tenant: std::env::var("VEYNDO_SHOP").ok(),
    auth: std::env::var("VEYNDO_TOKEN").ok().map(Auth::PersonalSession),
    ..ClientOptions::default()
});

The host API object, method names and argument order are those of the generated SDKs.

Operations

Operation Permission In the docs
GET /health public Try it

Public HTTP

Anonymous storefront, discovery and protocol routes. Name the shop with x-tenant.

GET /health

Permission: public, no credential. Source: src/routes.rs. SDK method: getHealth.

curl

curl -fsS -X GET "$VEYNDO_URL/health" \
  -H "x-tenant: $VEYNDO_SHOP"

TypeScript

const result = await client.host.getHealth();

Python

result = client.host.get_health()

Rust

let result = client.host().get_health(RequestOptions::default()).await?;