{ "openapi": "3.1.0", "info": { "title": "Agent Marketplace", "description": "Tectonic Agentic AI Platform \u2014 Module 24: internal catalogue of built agents with governance, reuse tracking and (future) external monetisation.", "version": "0.1.0" }, "paths": { "/v1/agent-marketplace/listings": { "post": { "tags": [ "agent-marketplace" ], "summary": "Submit Listing", "operationId": "submit_listing_v1_agent_marketplace_listings_post", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmitListingRequest" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListingSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "agent-marketplace" ], "summary": "Search Listings", "operationId": "search_listings_v1_agent_marketplace_listings_get", "parameters": [ { "name": "tenant_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Tenant Id" } }, { "name": "status", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "offset", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 0, "default": 0, "title": "Offset" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListingListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-marketplace/listings/{listing_id}": { "get": { "tags": [ "agent-marketplace" ], "summary": "Get Listing", "operationId": "get_listing_v1_agent_marketplace_listings__listing_id__get", "parameters": [ { "name": "listing_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Listing Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListingSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-marketplace/listings/{listing_id}/approve": { "post": { "tags": [ "agent-marketplace" ], "summary": "Approve Listing", "operationId": "approve_listing_v1_agent_marketplace_listings__listing_id__approve_post", "parameters": [ { "name": "listing_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Listing Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApproveListingRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListingSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-marketplace/listings/{listing_id}/reject": { "post": { "tags": [ "agent-marketplace" ], "summary": "Reject Listing", "operationId": "reject_listing_v1_agent_marketplace_listings__listing_id__reject_post", "parameters": [ { "name": "listing_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Listing Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RejectListingRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListingSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-marketplace/listings/{listing_id}/deprecate": { "post": { "tags": [ "agent-marketplace" ], "summary": "Deprecate Listing", "operationId": "deprecate_listing_v1_agent_marketplace_listings__listing_id__deprecate_post", "parameters": [ { "name": "listing_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Listing Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListingSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-marketplace/listings/{listing_id}/sync": { "post": { "tags": [ "agent-marketplace" ], "summary": "Sync Listing", "operationId": "sync_listing_v1_agent_marketplace_listings__listing_id__sync_post", "parameters": [ { "name": "listing_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Listing Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListingSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-marketplace/listings/{listing_id}/record-usage": { "post": { "tags": [ "agent-marketplace" ], "summary": "Record Usage", "operationId": "record_usage_v1_agent_marketplace_listings__listing_id__record_usage_post", "parameters": [ { "name": "listing_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Listing Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordUsageRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReuseMetricsSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-marketplace/listings/{listing_id}/reuse-metrics": { "get": { "tags": [ "agent-marketplace" ], "summary": "Reuse Metrics", "operationId": "reuse_metrics_v1_agent_marketplace_listings__listing_id__reuse_metrics_get", "parameters": [ { "name": "listing_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Listing Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReuseMetricsSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/healthz": { "get": { "summary": "Healthz", "operationId": "healthz_healthz_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [] } }, "/metrics": { "get": { "summary": "Metrics", "operationId": "metrics_metrics_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [] } } }, "components": { "schemas": { "ApproveListingRequest": { "properties": { "reviewed_by": { "type": "string", "title": "Reviewed By", "default": "" } }, "type": "object", "title": "ApproveListingRequest" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "ListingListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ListingSchema" }, "type": "array", "title": "Items" }, "total": { "type": "integer", "title": "Total" }, "limit": { "type": "integer", "title": "Limit" }, "offset": { "type": "integer", "title": "Offset" } }, "type": "object", "required": [ "items", "total", "limit", "offset" ], "title": "ListingListResponse" }, "ListingSchema": { "properties": { "id": { "type": "string", "title": "Id" }, "tenant_id": { "type": "string", "title": "Tenant Id" }, "agent_card_id": { "type": "string", "title": "Agent Card Id" }, "name": { "type": "string", "title": "Name" }, "description": { "type": "string", "title": "Description" }, "skills_snapshot": { "items": { "additionalProperties": true, "type": "object" }, "type": "array", "title": "Skills Snapshot" }, "trust_score_snapshot": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Trust Score Snapshot" }, "status": { "type": "string", "title": "Status" }, "submitted_by": { "type": "string", "title": "Submitted By" }, "reviewed_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Reviewed By" }, "reviewed_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Reviewed At" }, "rejection_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Rejection Reason" }, "reuse_count": { "type": "integer", "title": "Reuse Count" }, "external_listing_enabled": { "type": "boolean", "title": "External Listing Enabled" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "updated_at": { "type": "string", "format": "date-time", "title": "Updated At" } }, "type": "object", "required": [ "id", "tenant_id", "agent_card_id", "name", "description", "skills_snapshot", "trust_score_snapshot", "status", "submitted_by", "reviewed_by", "reviewed_at", "rejection_reason", "reuse_count", "external_listing_enabled", "created_at", "updated_at" ], "title": "ListingSchema" }, "RecordUsageRequest": { "properties": { "consumer_tenant_id": { "type": "string", "title": "Consumer Tenant Id" } }, "type": "object", "required": [ "consumer_tenant_id" ], "title": "RecordUsageRequest" }, "RejectListingRequest": { "properties": { "reviewed_by": { "type": "string", "title": "Reviewed By", "default": "" }, "reason": { "type": "string", "title": "Reason" } }, "type": "object", "required": [ "reason" ], "title": "RejectListingRequest" }, "ReuseMetricsSchema": { "properties": { "reuse_count": { "type": "integer", "title": "Reuse Count" }, "distinct_consumer_tenants": { "type": "integer", "title": "Distinct Consumer Tenants" } }, "type": "object", "required": [ "reuse_count", "distinct_consumer_tenants" ], "title": "ReuseMetricsSchema" }, "SubmitListingRequest": { "properties": { "agent_card_id": { "type": "string", "title": "Agent Card Id" }, "submitted_by": { "type": "string", "title": "Submitted By", "default": "" }, "external_listing_enabled": { "type": "boolean", "title": "External Listing Enabled", "default": false } }, "type": "object", "required": [ "agent_card_id" ], "title": "SubmitListingRequest" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" }, "input": { "title": "Input" }, "ctx": { "type": "object", "title": "Context" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" } }, "securitySchemes": { "ServiceBearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT", "description": "Service-to-service HS256 JWT bearer auth (security/jwt_auth.py): every inbound request must carry `Authorization: Bearer `, verified against this module's own service_name as the required audience (TECTONIC_JWT_SHARED_SECRET, one shared signing key across every module in this deployment). Not a user-facing OAuth/OIDC flow -- see this module's README for the full design note." } } }, "security": [ { "ServiceBearerAuth": [] } ] }