Share and sellOffers

An Offer is a link (akua.dev/i/<hash>, where the hash is an 8-character code) that sends a customer into a guided install of one Product. The form is generated from the pinned Package version’s input schema, so customers configure their install without a custom form from you.

Create an Offer from the Sell section of the dashboard (the customer sees it as an invitation) or with POST /v1/offers.

The flow

YouOffera link to one Product
customer signs in
Your customerOrder draftWorkspace, Cluster, inputs
redeem
Your customerInstallin their Workspace

The customer opens the link, signs in, chooses or creates a Workspace and a server (Cluster), fills the generated form, and Akua starts the install. Each redemption is tracked as an order draft.

What an Offer controls

ControlWhat it does
ProductAn active Product of your Workspace. The Offer installs exactly the Package version the Product pins.
Termsno-charge is the only term today.
Audienceanyone-signed-in lets anyone signed in with the link redeem. emails limits redemption to people whose verified email is on the list (up to 500).
Field valuesPrefills Package inputs by JSON pointer and can lock them so the customer cannot change them.
Max redemptionsHow many customer Workspaces may redeem the Offer (1 to 1000).
ExpiryOptional time after which nobody can redeem.

An input marked sensitive must be a locked string. Akua keeps it in the Offer’s own vault and never shows it again, so a saved Offer shows that a value exists, not what it is.

Archive an Offer to stop new redemptions. Redemptions already made keep their access.

End a customer’s access

A redemption gives the customer’s Workspace access to your Package, including versions you publish later. List the Workspaces that hold access, newest first, with the Offer each one redeemed and when:

akua packages list-grants pkg_j572abc123def456

The list shows only the Workspace ID, the redeemed version, the Offer and the times, nothing else about the customer. To end one Workspace’s access, revoke its grant:

akua packages revoke-grant pkg_j572abc123def456 ws_9177x8shcx0niswcn

From then on that Workspace can’t see, install or update any version of the Package, or read the saved settings of its Installs, and redeeming the same Offer again gives it nothing. Installs the customer already runs keep running unchanged, and they stay the customer’s to delete.

Any other Offer for the Package that the Workspace hasn’t redeemed yet still grants access when it does. Archive the Offers you don’t want it to redeem. To give access again, send the customer a new Offer.

Generated fields

Each Package input becomes a form field. Akua uses:

  • KCL docstrings as help text.
  • @ui(order=...) to sort fields.
  • @ui(group=...) to group related fields.
  • @ui(widget=...) for controls such as sliders, password fields, text areas, and selects.
  • @ui(placeholder=...), @ui(min=...), and @ui(max=...) for form hints and bounds.

See Package format for authoring details.

API