---
title: "Import Llm Profiles From Env"
method: POST
path: "/api/v1/runtime/llm-profiles/import-env"
tags: ["runtime"]
---

# Import Llm Profiles From Env

`POST /api/v1/runtime/llm-profiles/import-env`

## Response `200`

Successful Response

- LlmImportEnvResponse
  - `profile` LlmProviderProfileResponse, required
    - `id` string, uuid, required — Stable provider profile identifier.
    - `name` string, required — Human-readable profile label shown in Settings.
    - `provider_type` 'openai_responses' | 'openai_chat_completion' | 'anthropic_messages', required — Provider integration type.
    - `api_base` string — Configured API base URL for the provider.
    - `api_key_masked` string — Masked API key preview for display.
    - `has_api_key` boolean — Whether a stored API key is configured.
    - `metadata_json` object — Optional provider-specific metadata.
  - `bindings` LlmRoleBindingResponse[] — Role bindings created from the imported environment values.
    - `role` 'planner' | 'delegate' | 'delegate_small', required — Runtime role receiving the model binding.
    - `profile_id` string, uuid, nullable — Assigned provider profile identifier.
    - `profile_name` string, nullable — Assigned provider profile label.
    - `model_id` string — Provider-native model identifier for the role.

## Other responses

- `401` — Authentication is required or the provided token is invalid.
- `403` — LLM profile writes require local mode or admitted Neon authentication.
- `404` — Requested profile was not found.
- `503` — Runtime services are unavailable because server startup is incomplete.

---

[API](https://skmtc.net/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.net/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qredence/fleet-rlm/revisions/62e8c152aa18/schema)
