Skip to main content
POST
Validate Profile

Authorizations

X-Session-API-Key
string
header
required

Path Parameters

name
string
required
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$

Body

application/json

Request body for LLM pre-flight validation.

Accepts an LLM config (same shape as SaveProfileRequest.llm) so the frontend can validate a draft before persisting it.

llm
LLM · object
required

Language model interface for OpenHands agents.

The LLM class provides a unified interface for interacting with various language models through the litellm library. It handles model configuration, API authentication, retry logic, and tool calling capabilities.

Attributes: model: Model name (e.g., "gpt-5.6"). api_key: API key for authentication. base_url: Custom API base URL. num_retries: Number of retry attempts for failed requests. timeout: Request timeout in seconds.

Example: ```python from openhands.sdk import LLM from pydantic import SecretStr

Response

Successful Response

Result of an LLM pre-flight check.

valid
boolean
required
error
ValidateProfileError · object | null

Structured error returned when validation fails.