Skip to content

Listings & Categories ​

Read marketplace listing records and category reference data. Listing reads are scoped to the publishing account in the caller’s context; they are not an unrestricted public catalog search.

Use an interactive JWT and any required account entitlement.

Listings ​

GET /agents/marketplace/listings ​

List records belonging to the current publishing account, including drafts.

Request ​

Use offset pagination, not a cursor.

ParameterTypeRequiredDescription
limitintegerNo1–50; default 20
offsetintegerNoZero or greater; default 0

When meta.hasNextPage is true, add meta.limit to meta.offset for the next page.

Response ​

Response Example ​
json
{
  "data": [],
  "meta": { "limit": 20, "offset": 0, "total": 0, "hasNextPage": false }
}
Response Fields ​

data is an array; meta contains limit, offset, total, and hasNextPage. Listing record names use snake_case, including title, short_description, long_description, agent_definition_id, agent_version_id, category_id, is_free, credit_cost_per_use, created_at, and updated_at.

Code Examples ​

curl "https://api.chainabit.com/api/v1/agents/marketplace/listings?limit=20&offset=0" \
  -H "Authorization: Bearer $TOKEN"

GET /agents/marketplace/listings/:id ​

Retrieve a listing visible in the current publishing account. Use the id from a list response. A matching record is returned under data; a missing or inaccessible record returns { "data": null }.

curl "https://api.chainabit.com/api/v1/agents/marketplace/listings/$LISTING_ID" \
  -H "Authorization: Bearer $TOKEN"

DELETE /agents/marketplace/listings/:id ​

Deletes a listing in the current publishing account. This is a destructive action, not a request to mark a listing inactive. A referenced listing may be protected from deletion.

The response is { "data": { "count": 1 } } when one record is deleted, or count 0 when none matches. It is not an empty 204 response. Review the target before deleting it.

Categories ​

Category reads return shared reference data.

GET /agents/marketplace/categories ​

Use offset pagination, not a cursor.

ParameterTypeRequiredDescription
limitintegerNo1–50; default 20
offsetintegerNoZero or greater; default 0

When meta.hasNextPage is true, add meta.limit to meta.offset for the next page.

json
{
  "data": [],
  "meta": { "limit": 20, "offset": 0, "total": 0, "hasNextPage": false }
}

A category record uses id, slug, name, description, icon_url, parent_id, sort_order, is_active, and created_at.

curl "https://api.chainabit.com/api/v1/agents/marketplace/categories?limit=20&offset=0" \
  -H "Authorization: Bearer $TOKEN"

GET /agents/marketplace/categories/:id ​

Use a category id from the list. The response is { "data": <category> }, or { "data": null } if no record matches.

Built with purpose. chainabit.com