---
title: "Get AI service configuration"
method: GET
path: "/api/v1/ai/completions/config"
tags: ["AI"]
---

# Get AI service configuration

`GET /api/v1/ai/completions/config`

Retrieves the current AI service configuration. Accepts an optional siteId query parameter (site identifier / UUID, or the literal SYSTEM_HOST). Hostname values are not supported — use the site identifier. When siteId is omitted or cannot be resolved, falls back to the site derived from the HTTP Host header.

## Query parameters

- `siteId` string

## Response `200`

Configuration retrieved successfully

- string

## Other responses

- `401` — Unauthorized - User not authenticated
- `403` — Forbidden - User lacks permission for the requested site
- `500` — Internal server error

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
