# Store

16 endpoints at `https://api.kosa8.com`, sent with `Authorization: Bearer $KOSA8_API_KEY`. Generated from the API's own [OpenAPI description](https://api.kosa8.com/openapi.json), which a test holds to the router.

## Published kosa8 Store items (public)[#]

GET`/v1/store/items`public

Parameters

`q`query · string

Search text

`category`query · string

Category

`kind`query · string

Kind

Responses

200

```
curl -s -X GET https://api.kosa8.com/v1/store/items
```

## Create a Store listing (picks the org's creator handle the first time)[#]

POST`/v1/store/items`scope admin

JSON body

`creator`string

—

`name`requiredstring

—

`kind`required"template" | "save_state" | "environment" | "mcp_server" | "function"

—

`title`requiredstring

—

`summary`requiredstring

—

`category`requiredstring

—

Responses

201400401403409

```
curl -s -X POST https://api.kosa8.com/v1/store/items \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

## One published Store item, with README and review checks (public)[#]

GET`/v1/store/items/{creator}/{name}`public

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

Responses

200404

```
curl -s -X GET https://api.kosa8.com/v1/store/items/$CREATOR/$NAME
```

## Store Guidelines, creator agreement, fee and kickback rates (public)[#]

GET`/v1/store/terms`public

Responses

200

```
curl -s -X GET https://api.kosa8.com/v1/store/terms
```

## This org's Store listings, versions and posts[#]

GET`/v1/store/mine`scope sandboxes:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/store/mine \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Add a draft version[#]

POST`/v1/store/items/{creator}/{name}/versions`scope admin

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

JSON body

`version`requiredstring

MAJOR.MINOR.PATCH; immutable once submitted

`source`requiredobject

—

`source.template`requiredstring

A kosa8 Cloud template key

`source.image`string

—

`source.checkpoint`string

—

`egress`array of string

Every host the item contacts (or *.domain)

`env_names`array of string

Environment variable NAMES it reads; never values

`smoke_test`requiredarray of string

A command that must exit 0

`tools`array of object

mcp_server only: pinned tool descriptions

`readme`string

—

`changelog`string

—

`price_model`"free" | "per_run" | "per_hour" | "monthly"

—

`price_usd`number

—

Responses

201400401403404409

```
curl -s -X POST https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/versions \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

## A version of your item, with its checks and reviewer notes[#]

GET`/v1/store/items/{creator}/{name}/versions/{version}`scope sandboxes:read

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

`version`requiredpath · string

Version, MAJOR.MINOR.PATCH

Responses

200401403404

```
curl -s -X GET https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/versions/$VERSION \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Change a draft version[#]

PATCH`/v1/store/items/{creator}/{name}/versions/{version}`scope admin

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

`version`requiredpath · string

Version, MAJOR.MINOR.PATCH

Responses

200400401403404409

```
curl -s -X PATCH https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/versions/$VERSION \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

## Submit for review: needs two posts on two platforms and accept_agreement[#]

POST`/v1/store/items/{creator}/{name}/versions/{version}/submit`scope admin

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

`version`requiredpath · string

Version, MAJOR.MINOR.PATCH

JSON body

`accept_agreement`requiredboolean

—

Responses

200400401403404409

```
curl -s -X POST https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/versions/$VERSION/submit \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

## Publish an approved version[#]

POST`/v1/store/items/{creator}/{name}/versions/{version}/publish`scope admin

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

`version`requiredpath · string

Version, MAJOR.MINOR.PATCH

Responses

200401403404409

```
curl -s -X POST https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/versions/$VERSION/publish \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Appeal a rejection, once[#]

POST`/v1/store/items/{creator}/{name}/versions/{version}/appeal`scope admin

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

`version`requiredpath · string

Version, MAJOR.MINOR.PATCH

JSON body

`note`requiredstring

—

Responses

200400401403404409

```
curl -s -X POST https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/versions/$VERSION/appeal \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

## Add a public post about the item (X, LinkedIn, YouTube, Reddit, Hacker News, dev.to/Hashnode/Medium, GitHub)[#]

POST`/v1/store/items/{creator}/{name}/proofs`scope admin

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

JSON body

`url`requiredstring

—

Responses

201400401403404409

```
curl -s -X POST https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/proofs \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

## Remove an unverified post[#]

DELETE`/v1/store/items/{creator}/{name}/proofs/{id}`scope admin

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

`id`requiredpath · string

Id

Responses

200401403404

```
curl -s -X DELETE https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/proofs/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Rate 1–5 stars; only orgs that ran the item[#]

PUT`/v1/store/items/{creator}/{name}/rating`scope sandboxes:write

Parameters

`creator`requiredpath · string

Store creator handle

`name`requiredpath · string

Store item name

JSON body

`stars`requiredinteger

Min 1. Max 5.

Responses

200400401403404

```
curl -s -X PUT https://api.kosa8.com/v1/store/items/$CREATOR/$NAME/rating \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

## Creator earnings: royalties owed (held, available, paid) and kickback credit[#]

GET`/v1/store/earnings`scope sandboxes:read

Responses

200401403

```
curl -s -X GET https://api.kosa8.com/v1/store/earnings \
  -H "Authorization: Bearer $KOSA8_API_KEY"
```

## Where payouts go (PayPal or Wise). Never send a tax id[#]

PUT`/v1/store/payout-profile`scope admin

JSON body

`method`required"paypal" | "wise"

—

`payout_email`requiredstring

—

`country`requiredstring

—

`legal_name`requiredstring

—

Responses

200400401403

```
curl -s -X PUT https://api.kosa8.com/v1/store/payout-profile \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json
```

---
Source: https://docs.kosa8.com/api/store/
