Skip to main content
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='[email protected]'",
    }
    
    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