Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt

Use this file to discover all available pages before exploring further.

The Edit endpoint is not yet available in the Go SDK. Please use the REST API directly or check back for future SDK updates.
For now, you can use the client’s Post method to make direct API calls:
package main

import (
    "context"
    "encoding/json"
    "fmt"
    "io"
    "os"
    
    reducto "github.com/reductoai/reducto-go-sdk"
    "github.com/reductoai/reducto-go-sdk/option"
)

func main() {
    client := reducto.NewClient(option.WithAPIKey(os.Getenv("REDUCTO_API_KEY")))
    
    // Prepare edit request
    editParams := map[string]interface{}{
        "document_url": "reducto://...",
        "edit_instructions": "Fill the form with: name='John Doe', email='john@example.com'",
    }
    
    var result map[string]interface{}
    err := client.Post(context.Background(), "edit", editParams, &result)
    if err != nil {
        fmt.Printf("Edit error: %v\n", err)
        return
    }
    
    fmt.Printf("Result: %+v\n", result)
}

Next Steps