SaasKit.API (saas_kit v3.0.0)

Copy Markdown

Thin wrapper around the livesaaskit.com HTTP API.

Tasks call through this module so URL construction, auth handling, and HTTP client setup live in one place.

Summary

Functions

Returns the configured base URL, or the livesaaskit.com default.

Fetches the feature list for the configured boilerplate.

Returns the configured boilerplate token, or nil if unconfigured.

Functions

base_url()

Returns the configured base URL, or the livesaaskit.com default.

fetch_features(token \\ token())

Fetches the feature list for the configured boilerplate.

Returns:

  • {:ok, boilerplate, features} on success
  • {:error, :not_found} when the token does not resolve
  • {:error, :api_unreachable} on network / non-200 failure

token()

Returns the configured boilerplate token, or nil if unconfigured.