Integration

Pathly Go SDK

Module github.com/pathlyhq/pathly-sdk-go — idempotency and Retry-After like the Terraform provider.

OpenAPI contractIssue an API keyFree Solo account

Full document, no authentication, ready for your client generator.

Go SDK

Module github.com/pathlyhq/pathly-sdk-go, tag v0.1.0 indexed by proxy.golang.org and pkg.go.dev. Same model as the Terraform provider: idempotency, Retry-After, 404 vs transport error.

Useful in internal CLIs, light Kubernetes controllers and batch jobs. Pass context.Context on every call to honour CI timeouts.

go get + create

go get github.com/pathlyhq/pathly-sdk-go@v0.1.0
export PATHLY_API_TOKEN=sp_…

package main

import (
  "context"
  "fmt"
  "os"

  pathly "github.com/pathlyhq/pathly-sdk-go"
)

func main() {
  client := pathly.NewClient(os.Getenv("PATHLY_API_TOKEN"))
  s, err := client.CreateScenario(context.Background(), pathly.ScenarioInput{
    Name:        "Checkout",
    URL:         "https://www.example.com/cart",
    IntervalSec: 300,
    ExpectText:  "Your cart",
  })
  if err != nil { panic(err) }
  fmt.Println(s.ID)
}