POST /functions/v1/api with resource: "marketplace".
Access control
The
list, all, get, categories, and stats actions are publicly accessible. The create, update, and delete actions require internal admin authentication.sortBy values
| Value | Description |
|---|---|
"popular" | Sort by view count (most viewed first) |
"newest" | Sort by creation date (most recent first) — default |
"rating" | Sort by rating (highest rated first) |
"clones" | Sort by clone count (most cloned first) |
List genies (slim)
Retrieves a simplified list of marketplace genies optimized for dropdowns and compact listings. Returns only essential fields without nested relations.Must be
"marketplace"Must be
"list"Response
List genies (complete)
Retrieves the full marketplace genie listing with all fields and nested relations (category, brand, and creator in admin mode).Must be
"marketplace"Must be
"all"Response
Get a genie
Retrieves a specific marketplace genie by slug or ID. Automatically increments the view count and includes related genies from the same category.Must be
"marketplace"Must be
"get"The genie slug (preferred) or UUID.
Response
All fields from the genie object, plus:
Create a listing
Creates a new marketplace listing. Automatically marks the agent as a marketplace template and links the listing back to the agent.Only internal admins can create marketplace listings.
Must be
"marketplace"Must be
"create"Response (status 201)
The created marketplace genie with all fields. See genie object.
Update a listing
Updates an existing marketplace listing.Only internal admins can update marketplace listings.
Must be
"marketplace"Must be
"update"The listing ID.
Response
The updated marketplace genie with all fields.
Delete a listing
Permanently deletes a marketplace listing and unlinks the agent from the marketplace.Only internal admins can delete marketplace listings.
Must be
"marketplace"Must be
"delete"The listing ID.
Response
List categories
Retrieves all marketplace categories ordered by display order. No authentication required.Must be
"marketplace"Must be
"categories"Response
Get statistics
Retrieves aggregate statistics about the marketplace. No authentication required.Must be
"marketplace"Must be
"stats"Response
Genie object
The full genie object returned byall, get, create, and update actions.
Error responses
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Missing required parameters |
| 401 | UNAUTHORIZED | Missing or invalid authentication token |
| 403 | FORBIDDEN | Non-admin attempting a write operation |
| 404 | NOT_FOUND | Marketplace genie not found |
| 500 | INTERNAL_ERROR | Server error |

