> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Offers

> A short customer link with prefilled inputs, an audience, and a redemption limit

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](https://docs.akua.dev/products.md). 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](https://akua.dev/offers/create) (the customer sees it as an invitation) or with `POST /v1/offers`.

## The flow

You

Offer
a link to one Product

customer signs in

Your customer

Order draft
Workspace, Cluster, inputs

redeem

Your customer

Install
in 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](https://docs.akua.dev/marketplace/order-drafts.md).

## What an Offer controls

| Control | What it does |
| - | - |
| **Product** | An active Product of your Workspace. The Offer installs exactly the Package version the Product pins. |
| **Terms** | `no-charge` is the only term today. |
| **Audience** | `anyone-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 values** | Prefills Package inputs by JSON pointer and can lock them so the customer cannot change them. |
| **Max redemptions** | How many customer Workspaces may redeem the Offer (1 to 1000). |
| **Expiry** | Optional 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:

```bash
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:

```bash
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](https://docs.akua.dev/akua/package-format#@ui-annotations) for authoring details.

## API

> [card] [Offers API](https://docs.akua.dev/api-reference/offers/list-offers-in-workspace.md)
>
> Create, list, resolve, and archive Offers.

> [card] [Order Drafts API](https://docs.akua.dev/api-reference/order-drafts/create-order-draft.md)
>
> Start and complete a redemption.

> [card] [Authentication](https://docs.akua.dev/apis/authentication.md)
>
> Set up API tokens for automation.

## Related topics

> [card] [Order drafts](https://docs.akua.dev/marketplace/order-drafts.md)
>
> Follow the customer flow an Offer starts.

> [card] [Products](https://docs.akua.dev/products.md)
>
> The Package versions Offers install.

> [card] [Packages](https://docs.akua.dev/packages.md)
>
> Versioned install definitions and input schemas.
