Get input placeholder configuration. GET /api/openapi/v1/personalization/configs/input-placeholder, scope admin.v1.personalization.read.
- Scope:
admin.v1.personalization.read - Permission: Read Personalization
- Action: read
- Endpoint: GET
/api/openapi/v1/personalization/configs/input-placeholder
Authorization: Bearer \<API_KEY\>. The application must have subject_scope={"mode":"all"}; restricted scopes return 403. Scopes are independently granted. Do not cache responses.
Reuses the UI personalization service. Publication replaces the entire section and requires its current expected_revision; stale revisions return 409. Read and preserve other homepage fields when changing welcome messages.
For a sign-in background, create a session with media_type and size_bytes, upload directly using the returned URL, method and headers, then publish login config.backgroundUploadId referencing upload_id.
PNG/JPEG only, at most 5 MiB and at least 720×720. Sessions are bound to the organization and uploader and require Idempotency-Key. Only login, homepage and input-placeholder are exposed.
Common request headers
Apply the “Authentication and headers” section in “Configure the QwenWork console through APIs”: Authorization is required and X-Request-Id is optional. See this page for the required scope.
Whether Idempotency-Key applies and is required is specified in this page’s request parameters; a tracing identifier does not replace an idempotency key.
Request parameters
No request parameters.
Response statuses
| HTTP status | Trigger | Response structure | Client action |
|---|---|---|---|
200 | Request succeeded | See “Response” on this page | Read the response. |
default | Other authentication, authorization, validation or dependency errors | See “General error” in “Configure the QwenWork console through APIs” | Handle the status and code; verify the result and idempotency requirements before retrying writes. |
Response
Content-Type: application/json
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
config | object | Yes | Section configuration; initially {} | - |
product_edition | string | No | Product deployment edition; enum=["vpc", "k8s"] Values: "k8s", "vpc" | - |
publication_id | string | null | Yes | Publication ID; null before the first publication | - |
published_at | string · date-time | null | Yes | Publication time; null before the first publication; format="date-time" | - |
revision | integer · int64 | Yes | Current revision for concurrency control; format="int64" | - |
section | string | Yes | Personalization section | - |
config
| Field | Type | Required | Description |
|---|---|---|---|
generating | object | No | Generating-state placeholder |
normal | object | No | Idle-state placeholder |
config.generating
| Field | Type | Required | Description |
|---|---|---|---|
en | string | No | English text |
zh-CN | string | No | Simplified Chinese text |
config.normal
| Field | Type | Required | Description |
|---|---|---|---|
en | string | No | English text |
zh-CN | string | No | Simplified Chinese text |
Errors and retries
Existing UI error codes and validation are preserved. 401/403 indicate authentication or authorization failure; 409 requires rereading before retry; 413 indicates an oversized request; 400/422 indicate invalid input; 503 indicates an unavailable dependency.
The response and machine contract are authoritative. Retry idempotent creates with the same Idempotency-Key and payload.
Config fields and validation boundaries
normal and generating each map zh-CN and en to strings. The UI requires content and limits each input to 128 characters. Missing values use localized product placeholders; initial stored config is {}. The server retains JSON-object validation without adding the UI length or required-content rules.
The following is a config fragment, not a complete request or response.