Skip to content

FluxSend Go SDK

Use the FluxSend Go SDK to add file uploads, downloads, sharing and workspace automation to Go services. The SDK handles authentication, request encoding, response decoding, retries and typed errors.

**Go 1.27.4 or newer is required.** The current SDK release is `v0.1.1`.

Install

go get github.com/tscrond/fluxsend-sdk@v0.1.1

The public package name is fluxsend:

import fluxsend "github.com/tscrond/fluxsend-sdk"

Send your first request

Create a client with the deployment URL and an API key, then call a typed operation. Always pass a context so requests can be cancelled or bounded:

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

client, err := fluxsend.NewClient(fluxsend.Config{
    BaseURL: "https://fluxsend.app",
    APIKey:  os.Getenv("FLUXSEND_API_KEY"),
})
if err != nil {
    return err
}

workspaces, err := client.ListWorkspaces(ctx)
if err != nil {
    return err
}

Keep API keys in server-side configuration or a secrets manager. Do not embed them in browser code.

What it covers

The SDK exposes every operation in the FluxSend CLI API contract:

Surface Count Authentication
API-key-backed operations 60 Private or workspace API key
Public sharing operations 3 No API key
Total 63

Operation methods use stable names such as ListWorkspaces, UploadFileSession and DownloadPrivateFile. Request bodies use typed SDK models, and successful responses are decoded into typed Go values.

Choose a guide

Known limits

  • The SDK is Go-only.
  • v0.x releases may contain breaking changes before v1.0.0.
  • Chunked-upload resume is not persisted across processes.
  • Browser OAuth and CLI credential storage are outside the SDK.

See operations and versions for the complete coverage and compatibility policy, or browse the generated API reference for exact endpoint parameters and response schemas.