Get homepage configuration. GET /api/openapi/v1/personalization/configs/homepage, scope admin.v1.personalization.read.
- Scope:
admin.v1.personalization.read - Permission: Read Personalization
- Action: read
- Endpoint: GET
/api/openapi/v1/personalization/configs/homepage
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 |
|---|---|---|---|
recommendedPrompts | array\<object\> | No | Recommended prompts |
visibility | object | No | Homepage section visibility |
welcome | object | No | Welcome-message configuration |
config.recommendedPrompts[]
| Field | Type | Required | Description |
|---|---|---|---|
category | string | No | Prompt category |
createdAt | string | No | Creation time |
createdByEmail | string | No | Creator email |
createdByName | string | No | Creator name |
displayPrompt | string | No | Displayed prompt |
enabled | boolean | No | Whether enabled |
id | string | No | Prompt ID |
inputPrompt | string | No | Actual input prompt |
sourceRecordId | string | No | Source record ID |
updatedAt | string | No | Update time |
updatedByEmail | string | No | Updater email |
updatedByName | string | No | Updater name |
config.visibility
| Field | Type | Required | Description |
|---|---|---|---|
featureSpotlights | object | No | Feature spotlight entry |
recommendedPrompts | object | No | Recommended prompts |
config.welcome
| Field | Type | Required | Description |
|---|---|---|---|
en | string | No | en |
withProject | object | No | Welcome message inside a project |
withoutProject | object | No | Welcome message outside a project |
zh-CN | string | No | zh-CN |
zh-TW | string | No | zh-TW |
config.visibility.featureSpotlights
| Field | Type | Required | Description |
|---|---|---|---|
visible | boolean | No | Whether the section is visible |
config.visibility.recommendedPrompts
| Field | Type | Required | Description |
|---|---|---|---|
visible | boolean | No | Whether the section is visible |
config.welcome.withProject
| Field | Type | Required | Description |
|---|---|---|---|
en | string | No | English text |
zh-CN | string | No | Simplified Chinese text |
zh-TW | string | No | Traditional Chinese text |
config.welcome.withoutProject
| Field | Type | Required | Description |
|---|---|---|---|
en | string | No | English text |
zh-CN | string | No | Simplified Chinese text |
zh-TW | string | No | Traditional 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.welcome fields and validation boundaries
config.welcome.withoutProject and config.welcome.withProject each map zh-CN, zh-TW and en to strings. The UI normalizes each string to 160 display units and two lines; {{name}}, {{project}} and {{greeting}} each count as one unit. Missing copy uses localized UI defaults. The UI still reads legacy flat welcome objects.
These are existing UI rules. The server keeps the open JSON-object contract without new shape or length validation. GET the complete homepage config and preserve its other fields when publishing welcome changes.
The following is a config fragment, not a complete request or response.