GO

There is no Qntyx Go module yet

This page used to document go get github.com/qntyx/go-sdk and a qntyx.NewClient with .Veil / .Audit services. That repository does not exist and that module was never published — the examples were aspirational. Use net/http against the product APIs.

Calling a product API

package main

import (
    "bytes"
    "fmt"
    "io"
    "net/http"
)

func main() {
    apiKey := "qntyx_veil_xxx" // from any product dashboard → API Keys

    body := []byte(`{"credential_type":"aws_key","plant_location":"github","label":"my-first-trap"}`)
    req, _ := http.NewRequest("POST",
        "https://veil-api.qntyx.io/api/v1/credentials/generate",
        bytes.NewReader(body))
    req.Header.Set("Authorization", "Bearer "+apiKey)
    req.Header.Set("Content-Type", "application/json")

    res, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer res.Body.Close()

    out, _ := io.ReadAll(res.Body)
    fmt.Println(res.StatusCode, string(out))
}

Each product has its own host and paths — check that product's page, and note that only some use an /api/v1 prefix. There is no published Go client for QuantumRand either; call it over HTTP the same way.