API Endpoints With Sample CallPRO

A developer section that lists common endpoints as hairline rows pairing tone-coded method chips with monospace paths, beside a dark code panel holding a full sample request and its response.

Devtools94: API Endpoints With Sample Call

Developer section that lists the common endpoints as hairline rows pairing tone-coded method chips with monospace paths and a line of explanation, beside a dark code panel holding a full sample request and the response it returns.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/devtools94?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/devtools94?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/devtools94.tsx plus the badge23 and button21 components it uses for the eyebrow and the docs action.

Quick start

The installed file exports devtools94Demo alongside the block: the exact props behind the preview above. Spread it to get a working API section in one line.

tsx
import { Devtools94, devtools94Demo } from "@/components/beste/block/devtools94";

export default function ApiPage() {
  return <Devtools94 {...devtools94Demo} />;
}

Then replace the demo with your own props. The code sample is one string, so a template literal keeps the request readable:

tsx
import { Devtools94 } from "@/components/beste/block/devtools94";

const sample = `curl https://api.example.com/v1/appointments \\
  -H "Authorization: Bearer $API_KEY" \\
  -d starts_at=2026-05-14T14:30:00Z`;

export default function ApiPage() {
  return (
    <Devtools94
      badge={{ label: "Developers" }}
      heading="Everything the interface does, the API does too"
      description="One REST API over the same records your team works in."
      endpointsLabel="Common endpoints"
      endpoints={[
        {
          method: "GET",
          path: "/v1/members",
          description: "List members with cursor pagination and field filters.",
        },
        {
          method: "POST",
          path: "/v1/appointments",
          description: "Book a slot, with conflict checks across clinician and room.",
        },
      ]}
      code={{ label: "Book an appointment", content: sample }}
      footnote={{
        label: "Sandbox keys are free, and the test workspace resets nightly.",
        button: { label: "Read the API docs", href: "/docs/api" },
      }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Monospace eyebrow above the hairline rule, rendered via Badge23
headingstringSection heading in the left column
descriptionstringSupporting paragraph, right-aligned from md up
endpointsLabelstringHeading above the endpoint list
endpointsEndpoint[][]Hairline rows of method, path, and purpose
code{ label: string; content: string }Dark panel holding one sample call
footnote{ label: string; button: ActionLink }Closing line and outline button
classNamestringExtra classes for the outer <section>
ts
type ActionLink = { label: string; href: string };

type Endpoint = { method: string; path: string; description: string };

Behavior notes

More DevTools blocks

View all DevTools
PRO

devtools1

API Endpoint Explorer

Interactive REST API endpoint reference with method badges, expandable parameter details, and response types. Grouped by resource.

PRO

devtools38

API Usage Analytics

API analytics dashboard with endpoint usage table. Stats cards for requests, latency, error rate, and active users. Trend indicators and method badges.

PRO

devtools33

Network Request Monitor

Real-time HTTP request interceptor with recording controls. Method badges, status codes, duration timing, size info, and filterable by method/type.

PRO

devtools7

API Response Examples

API documentation cards showing response examples with color-coded status badges. Headers section, JSON body with copy button, success/error variants.

PRO

devtools6

Application Log Viewer

Terminal-style structured log viewer with level filtering. Color-coded INFO, WARN, ERROR, and DEBUG entries with timestamps and source labels.

PRO

devtools95

Feeds And Archive API

A hairline list of every way to follow a publication, each row naming the feed, what it carries and its address, over a copyable one-line request that stands in for the whole API.

Markdown version