Skip to main content
Methods: client.ListFiles(), client.RetrieveFile(), client.RetrieveFileContent().
import (
  "fmt"
  "context"
  phaseo "github.com/phaseoteam/Phaseo/packages/sdk/sdk-go"
)

client := phaseo.New(apiKey, "https://api.phaseo.ai/v1")

file, err := client.RetrieveFile(context.Background(), "file_123")
if err != nil {
  panic(err)
}

content, err := client.RetrieveFileContent(context.Background(), "file_123")
if err != nil {
  panic(err)
}

fmt.Println(file)
fmt.Println(string(content))
ListFiles() is available in the wrapper, but GET /files currently returns file_list_not_supported_with_shared_gateway_key when you use the shared gateway key. Persist uploaded file ids and retrieve them directly instead.
The Go wrapper still does not provide a first-class multipart upload helper for POST /files. Use direct REST or the generated client if you need to experiment with upload wiring.
Last modified on July 9, 2026