Skip to main content
GET
/
api-user
/
services
获取可用的服务列表
curl --request GET \
  --url https://dk.mountsea.ai/api-user/services \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "a1b2c3d4-...",
    "name": "chat"
  }
]

Response Example

[
  {
    "id": "c0f7695f-df68-40af-a9af-fc6de482c9f8",
    "name": "chat"
  },
  {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "gemini"
  }
]
FieldTypeDescription
idstringService ID (UUID)
namestringService name
The returned id values can be used as the serviceId parameter when searching usage logs or credits change history.

Authorizations

X-API-Key
string
header
required

Response

200 - application/json

返回可用服务的 id 和 name

id
string
required

服务ID

Example:

"a1b2c3d4-..."

name
string
required

服务名称

Example:

"chat"