{ "openapi": "3.1.0", "info": { "title": "Agent Cards", "description": "Tectonic Agentic AI Platform \u2014 Module 23: trust-scored, machine-readable capability manifests for discovery.", "version": "0.1.0" }, "paths": { "/v1/agent-cards": { "post": { "tags": [ "agent-cards" ], "summary": "Register Card", "operationId": "register_card_v1_agent_cards_post", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterCardRequest" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentCardSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "agent-cards" ], "summary": "Discover Cards", "operationId": "discover_cards_v1_agent_cards_get", "parameters": [ { "name": "tenant_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Tenant Id" } }, { "name": "skill_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Skill Id" } }, { "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/AgentCardListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-cards/{card_id}": { "get": { "tags": [ "agent-cards" ], "summary": "Get Card", "operationId": "get_card_v1_agent_cards__card_id__get", "parameters": [ { "name": "card_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Card Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentCardSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "put": { "tags": [ "agent-cards" ], "summary": "Update Card", "operationId": "update_card_v1_agent_cards__card_id__put", "parameters": [ { "name": "card_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Card Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCardRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentCardSchema" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/v1/agent-cards/{card_id}/recompute-trust-score": { "post": { "tags": [ "agent-cards" ], "summary": "Recompute Trust Score", "operationId": "recompute_trust_score_v1_agent_cards__card_id__recompute_trust_score_post", "parameters": [ { "name": "card_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Card Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrustScoreBreakdownSchema" } } } }, "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": { "AgentCardListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AgentCardSchema" }, "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": "AgentCardListResponse" }, "AgentCardSchema": { "properties": { "id": { "type": "string", "title": "Id" }, "tenant_id": { "type": "string", "title": "Tenant Id" }, "agent_ref": { "type": "string", "title": "Agent Ref" }, "name": { "type": "string", "title": "Name" }, "description": { "type": "string", "title": "Description" }, "url": { "type": "string", "title": "Url" }, "skills": { "items": { "$ref": "#/components/schemas/AgentSkillSchema" }, "type": "array", "title": "Skills" }, "trust_score": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Trust Score" }, "trust_score_computed_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Trust Score Computed At" }, "last_verified_at": { "type": "string", "format": "date-time", "title": "Last Verified At" }, "is_stale": { "type": "boolean", "title": "Is Stale" }, "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_ref", "name", "description", "url", "skills", "trust_score", "trust_score_computed_at", "last_verified_at", "is_stale", "created_at", "updated_at" ], "title": "AgentCardSchema" }, "AgentSkillSchema": { "properties": { "id": { "type": "string", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "description": { "type": "string", "title": "Description", "default": "" } }, "type": "object", "required": [ "id", "name" ], "title": "AgentSkillSchema" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "RegisterCardRequest": { "properties": { "agent_ref": { "type": "string", "title": "Agent Ref" }, "name": { "type": "string", "title": "Name" }, "description": { "type": "string", "title": "Description", "default": "" }, "url": { "type": "string", "title": "Url" }, "skills": { "items": { "$ref": "#/components/schemas/AgentSkillSchema" }, "type": "array", "title": "Skills", "default": [] } }, "type": "object", "required": [ "agent_ref", "name", "url" ], "title": "RegisterCardRequest" }, "TrustScoreBreakdownSchema": { "properties": { "performance_score": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Performance Score" }, "compliance_score": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Compliance Score" }, "trust_score": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Trust Score" }, "computed_at": { "type": "string", "format": "date-time", "title": "Computed At" } }, "type": "object", "required": [ "performance_score", "compliance_score", "trust_score", "computed_at" ], "title": "TrustScoreBreakdownSchema" }, "UpdateCardRequest": { "properties": { "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Url" }, "skills": { "anyOf": [ { "items": { "$ref": "#/components/schemas/AgentSkillSchema" }, "type": "array" }, { "type": "null" } ], "title": "Skills" } }, "type": "object", "title": "UpdateCardRequest" }, "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": [] } ] }