{ "openapi": "3.0.2", "info": { "title": "e2b-api", "version": "0.1.0" }, "paths": { "/deployments": { "get": { "summary": "List Deployments", "operationId": "list_deployments_deployments_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } }, "put": { "summary": "Create Agent Deployment", "operationId": "create_agent_deployment_deployments_put", "parameters": [ { "required": true, "schema": { "title": "Project Id", "type": "string" }, "name": "project_id", "in": "query" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateDeploymentBody" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/deployments/{id}": { "delete": { "summary": "Delete Agent Deployment", "operationId": "delete_agent_deployment_deployments__id__delete", "parameters": [ { "required": true, "schema": { "title": "Id", "type": "string" }, "name": "id", "in": "path" } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/deployments/{id}/interactions": { "post": { "summary": "Interact With Agent Deployment", "operationId": "interact_with_agent_deployment_deployments__id__interactions_post", "parameters": [ { "required": true, "schema": { "title": "Id", "type": "string" }, "name": "id", "in": "path" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentInteraction" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/deployments/{id}/interaction_requests": { "get": { "summary": "Get Agent Intereaction Requests", "operationId": "get_agent_intereaction_requests_deployments__id__interaction_requests_get", "parameters": [ { "required": true, "schema": { "title": "Id", "type": "string" }, "name": "id", "in": "path" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/deployments/{id}/logs": { "get": { "summary": "Get Agent Deployment Status", "operationId": "get_agent__deployment_status_deployments__id__logs_get", "parameters": [ { "required": true, "schema": { "title": "Id", "type": "string" }, "name": "id", "in": "path" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }, "components": { "schemas": { "AgentInteraction": { "title": "AgentInteraction", "required": [ "type" ], "type": "object", "properties": { "interaction_id": { "title": "Interaction Id", "type": "string" }, "type": { "title": "Type", "type": "string" }, "data": { "title": "Data" } } }, "CreateDeploymentBody": { "title": "CreateDeploymentBody", "type": "object", "properties": { "config": { "title": "Config" } } }, "HTTPValidationError": { "title": "HTTPValidationError", "type": "object", "properties": { "detail": { "title": "Detail", "type": "array", "items": { "$ref": "#/components/schemas/ValidationError" } } } }, "ValidationError": { "title": "ValidationError", "required": [ "loc", "msg", "type" ], "type": "object", "properties": { "loc": { "title": "Location", "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] } }, "msg": { "title": "Message", "type": "string" }, "type": { "title": "Error Type", "type": "string" } } } } } }