openapi: 3.1.0 info: title: Letta Admin Telemetry API version: 1.0.0 description: REST API for Letta, the stateful agents platform. Manage agents, memory blocks, archival passages, sources, custom tools, MCP servers, multi-agent groups, runs, and streaming responses. Available as Letta Cloud (managed) at https://api.letta.com/v1 and as the self-hosted open-source server (Apache-2.0) typically run at http://localhost:8283. contact: name: Letta url: https://www.letta.com/ email: support@letta.com license: name: Apache-2.0 url: https://github.com/letta-ai/letta/blob/main/LICENSE x-logo: url: https://www.letta.com/favicon.ico servers: - url: https://api.letta.com description: Letta Cloud (managed) - url: https://app.letta.com description: Letta Cloud (app) - url: http://localhost:8283 description: Self-hosted Letta server security: - bearerAuth: [] tags: - name: Telemetry description: Run-step traces and observability data. paths: /v1/telemetry/{step_id}: get: tags: - Telemetry summary: Retrieve Provider Trace description: '**DEPRECATED**: Use `GET /steps/{step_id}/trace` instead. Retrieve provider trace by step ID.' operationId: retrieve_provider_trace deprecated: true parameters: - name: step_id in: path required: true schema: type: string title: Step Id responses: '200': description: Successful Response content: application/json: schema: anyOf: - $ref: '#/components/schemas/ProviderTrace' - type: 'null' title: Response Retrieve Provider Trace '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' components: schemas: ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type type: object required: - loc - msg - type title: ValidationError ProviderTrace: properties: created_by_id: anyOf: - type: string - type: 'null' title: Created By Id description: The id of the user that made this object. last_updated_by_id: anyOf: - type: string - type: 'null' title: Last Updated By Id description: The id of the user that made this object. created_at: type: string format: date-time title: Created At description: The timestamp when the object was created. updated_at: anyOf: - type: string format: date-time - type: 'null' title: Updated At description: The timestamp when the object was last updated. id: type: string pattern: ^provider_trace-[a-fA-F0-9]{8} title: Id description: The human-friendly ID of the Provider_trace examples: - provider_trace-123e4567-e89b-12d3-a456-426614174000 request_json: additionalProperties: true type: object title: Request Json description: JSON content of the provider request response_json: additionalProperties: true type: object title: Response Json description: JSON content of the provider response step_id: anyOf: - type: string - type: 'null' title: Step Id description: ID of the step that this trace is associated with agent_id: anyOf: - type: string - type: 'null' title: Agent Id description: ID of the agent that generated this trace agent_tags: anyOf: - items: type: string type: array - type: 'null' title: Agent Tags description: Tags associated with the agent for filtering call_type: anyOf: - type: string - type: 'null' title: Call Type description: Type of call (agent_step, summarization, etc.) run_id: anyOf: - type: string - type: 'null' title: Run Id description: ID of the run this trace is associated with source: anyOf: - type: string - type: 'null' title: Source description: Source service that generated this trace (memgpt-server, lettuce-py) org_id: anyOf: - type: string - type: 'null' title: Org Id description: ID of the organization compaction_settings: anyOf: - additionalProperties: true type: object - type: 'null' title: Compaction Settings description: Compaction/summarization settings (summarization calls only) llm_config: anyOf: - additionalProperties: true type: object - type: 'null' title: Llm Config description: LLM configuration used for this call (non-summarization calls only) billing_context: anyOf: - $ref: '#/components/schemas/BillingContext' - type: 'null' description: Billing context from request headers additionalProperties: false type: object required: - request_json - response_json title: ProviderTrace description: "Letta's internal representation of a provider trace.\n\nAttributes:\n id (str): The unique identifier of the provider trace.\n request_json (Dict[str, Any]): JSON content of the provider request.\n response_json (Dict[str, Any]): JSON content of the provider response.\n step_id (str): ID of the step that this trace is associated with.\n agent_id (str): ID of the agent that generated this trace.\n agent_tags (list[str]): Tags associated with the agent for filtering.\n call_type (str): Type of call (agent_step, summarization, etc.).\n run_id (str): ID of the run this trace is associated with.\n source (str): Source service that generated this trace (memgpt-server, lettuce-py).\n organization_id (str): The unique identifier of the organization.\n user_id (str): The unique identifier of the user who initiated the request.\n compaction_settings (Dict[str, Any]): Compaction/summarization settings (only for summarization calls).\n llm_config (Dict[str, Any]): LLM configuration used for this call (only for non-summarization calls).\n created_at (datetime): The timestamp when the object was created." BillingContext: properties: plan_type: anyOf: - type: string - type: 'null' title: Plan Type description: Subscription tier cost_source: anyOf: - type: string - type: 'null' title: Cost Source description: 'Cost source: ''quota'' or ''credits''' customer_id: anyOf: - type: string - type: 'null' title: Customer Id description: Customer ID for billing records type: object title: BillingContext description: Billing context for LLM request cost tracking. HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError securitySchemes: bearerAuth: type: http scheme: bearer