Skip to main content
This guide shows the fastest way to extract data from documents using an existing template. Perfect for getting started quickly.
This example assumes you already have a workspace and template set up. For creating templates from scratch, see the Full Workflow guide.
Building with an AI assistant? Use the Integrate Raydocs with AI ✨ guide to provide full documentation context.

Prerequisites

  • A Raydocs API token with sessions-write ability
  • An existing extraction template ID
  • Documents to process (PDF, PNG, JPG)

The 3-Step Process

1

Upload Files

Upload your documents to temporary storage using signed URLs
2

Create Sessions

Create extraction sessions with auto_extract: true to start processing automatically
3

Get Results

Poll for completion and retrieve your structured data

Complete Example

Understanding the Response

When extraction completes, you get structured data matching your template schema:

Error Handling

If you hit rate limits, implement exponential backoff:
Check the result status and handle failures gracefully:

Next Steps

Full Workflow

Create templates and set up complete extraction pipelines

Extraction Schema

Design powerful extraction schemas