Documentation Index
Fetch the complete documentation index at: https://docs.letmepost.dev/llms.txt
Use this file to discover all available pages before exploring further.
The Go SDK is a post-launch deliverable. Until then, net/http is the supported integration path:
package main
import (
"bytes"
"encoding/json"
"errors"
"net/http"
"os"
)
func PostLetmepost(body map[string]any, idempotencyKey string) error {
buf, _ := json.Marshal(body)
req, _ := http.NewRequest("POST", "https://api.letmepost.dev/v1/posts", bytes.NewReader(buf))
req.Header.Set("Authorization", "Bearer "+os.Getenv("LMP_KEY"))
req.Header.Set("Idempotency-Key", idempotencyKey)
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil { return err }
defer res.Body.Close()
if res.StatusCode >= 400 { return errors.New(res.Status) }
return nil
}
Watch the GitHub releases for the SDK announcement.