Skip to main content
This guide walks through the complete Raydocs workflow from scratch: creating a workspace, designing an extraction template, uploading documents, and retrieving results.

What You’ll Build

A complete invoice extraction pipeline that:
  1. Creates a dedicated workspace
  2. Defines a template to extract invoice data
  3. Processes multiple invoices with auto-extraction
  4. Retrieves structured results

Prerequisites

  • A Raydocs API token with full permissions (workspaces-write, templates-write, sessions-write)
  • Invoice documents to process (PDF format)

Complete Implementation

Schema Design Tips

Group Organization

Organize fields into logical groups based on where they appear in documents:

Field Types

Extraction Prompts

Write clear, specific prompts:

Handling Results

Accessing Nested Data

Exporting Results

Next Steps

Extraction Schema

Master advanced schema features

API Reference

Explore all API endpoints

Batch Operations

Process documents at scale

Data Model

Understand resource relationships