DocsPlayground

Playground

How to use the UI Playground for schema vs prompt extractions.

Overview

This section covers Playground. In production, this content is rendered from structured documentation or markdown.

Example request

fetch
const response = await fetch('https://api.veralens.ai/v1/extract', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer vl_live_...',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    url: 'https://example.com/article',
    schema: {
      title: 'string',
      author: 'string',
      publishDate: 'string'
    }
  })
});

const data = await response.json();
console.log(data);

Next steps