管理 API 全表
管理面端点注册在 chi 的 admin 子路由上,挂载点是 /admin,所以表中的路径都要加上该前缀。 鉴权:Authorization: Bearer <session_token>,由 POST /admin/session 换取。/admin/session 本身与少数公开入口除外。 除特别说明外,请求与响应都是 JSON;请求体上限由 MAX_ADMIN_BODY_BYTES 约束。
共 259 条注册、207 个路径、Delete、Get、Patch、Post、Put 方法。
/admin/(root) · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/ | — |
/admin/admin · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/admin/session | login |
/admin/admin-ui · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/admin-ui | — |
/admin/alert-rules · 4 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/alert-rules | listAlertRules |
Post | /admin/alert-rules | createAlertRule |
Delete | /admin/alert-rules/{id} | deleteAlertRule |
Put | /admin/alert-rules/{id} | updateAlertRule |
/admin/app · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/app | — |
Get | /admin/app/* | — |
/admin/audit-events · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/audit-events | list |
Post | /admin/audit-events/cleanup | cleanup |
/admin/auth · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/auth/upgrade | authUpgrade |
/admin/availability · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/availability | availability |
/admin/backups · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/backups | list |
Post | /admin/backups | create |
/admin/balance-history · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/balance-history | balanceHistory |
/admin/billing-rule · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/billing-rule | billingRule |
Put | /admin/billing-rule | saveBillingRule |
Post | /admin/billing-rule/copy-quote | copyBillingQuote |
/admin/channels · 17 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/channels | listChannels |
Post | /admin/channels | createChannel |
Get | /admin/channels/account/finance | finance |
Post | /admin/channels/account/finance | financeRefresh |
Post | /admin/channels/account/probe-all | probeAll |
Get | /admin/channels/overview | listChannelOverviews |
Delete | /admin/channels/{id} | deleteChannel |
Get | /admin/channels/{id} | getChannel |
Put | /admin/channels/{id} | updateChannel |
Post | /admin/channels/{id}/account/create-key | createKey |
Get | /admin/channels/{id}/account/pricing | pricing |
Post | /admin/channels/{id}/account/probe | probeAccount |
Post | /admin/channels/{id}/account/sync-keys | syncKeys |
Get | /admin/channels/{id}/account/token-groups | tokenGroups |
Post | /admin/channels/{id}/duplicate | duplicateChannel |
Post | /admin/channels/{id}/model-alias | setChannelModelAlias |
Post | /admin/channels/{id}/ping | pingChannel |
/admin/checkin · 7 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/checkin/credentials/{id}/run | runCredential |
Get | /admin/checkin/external | listExternal |
Post | /admin/checkin/external | createExternal |
Delete | /admin/checkin/external/{id} | deleteExternal |
Put | /admin/checkin/external/{id} | updateExternal |
Get | /admin/checkin/logs | listLogs |
Post | /admin/checkin/run | runAll |
/admin/connections · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/connections | createConnection |
/admin/console · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/console/ | — |
/admin/console-pins · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/console-pins | listPins |
Post | /admin/console-pins | setPin |
/admin/credentials · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Delete | /admin/credentials/{id} | deleteCredential |
Put | /admin/credentials/{id} | updateCredential |
Put | /admin/credentials/{id}/checkin | setCredentialEnabled |
/admin/db · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/db/gc | lastDBGC |
Post | /admin/db/gc | runDBGC |
/admin/decision-snapshot · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/decision-snapshot | decisionSnapshot |
/admin/discovery · 8 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/discovery/channels/{id}/keys/test | testChannelKeys |
Post | /admin/discovery/channels/{id}/probe | probeChannel |
Post | /admin/discovery/channels/{id}/refresh | refreshChannel |
Get | /admin/discovery/missing-models | missingModels |
Get | /admin/discovery/model-channels | modelChannels |
Get | /admin/discovery/models | listModels |
Post | /admin/discovery/models-preview | previewModels |
Post | /admin/discovery/refresh | refreshAll |
/admin/display-settings · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/display-settings | displaySettings |
Put | /admin/display-settings | saveDisplaySettings |
/admin/downstream-keys · 6 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/downstream-keys | listDownstreamKeys |
Post | /admin/downstream-keys | createDownstreamKey |
Delete | /admin/downstream-keys/{id} | deleteDownstreamKey |
Put | /admin/downstream-keys/{id} | updateDownstreamKey |
Post | /admin/downstream-keys/{id}/reveal | revealDownstreamKeyToken |
Post | /admin/downstream-keys/{id}/rotate | rotateDownstreamKeyToken |
/admin/endpoint-preview · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/endpoint-preview | endpointPreview |
/admin/error-rules · 4 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/error-rules | listErrorRules |
Post | /admin/error-rules | createErrorRule |
Delete | /admin/error-rules/{id} | deleteErrorRule |
Put | /admin/error-rules/{id} | updateErrorRule |
/admin/exchange · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/exchange/export | export |
Post | /admin/exchange/import | importDocument |
Post | /admin/exchange/import-encrypted | importEncryptedDocument |
/admin/groups · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/groups | listGroups |
Delete | /admin/groups/{name} | deleteGroup |
Put | /admin/groups/{name} | upsertGroup |
/admin/health-history · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/health-history | listHealthHistory |
Get | /admin/health-history/summary | healthHistorySummary |
/admin/healthz · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/healthz | — |
/admin/keepalive · 5 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/keepalive | status |
Post | /admin/keepalive/channels/{id}/send | send |
Get | /admin/keepalive/events | events |
Post | /admin/keepalive/run | run |
Put | /admin/keepalive/sites/{id} | updateSite |
/admin/landing · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/landing | handleLanding |
/admin/metrics · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/metrics | — |
/admin/mode · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/mode | getMode |
Patch | /admin/mode | patchMode |
Post | /admin/mode/owner | bootstrap |
/admin/model-aggregates · 4 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/model-aggregates | listAggregates |
Post | /admin/model-aggregates | createAggregate |
Delete | /admin/model-aggregates/{id} | deleteAggregate |
Put | /admin/model-aggregates/{id} | updateAggregate |
/admin/model-blocks · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Delete | /admin/model-blocks | deleteModelBlock |
Get | /admin/model-blocks | listModelBlocks |
/admin/model-capabilities · 8 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/model-capabilities | listModelCapabilities |
Post | /admin/model-capabilities/auto-tag | autoTagModelCapabilities |
Get | /admin/model-capabilities/catalog | catalogStatus |
Post | /admin/model-capabilities/catalog/preview | previewModelCatalog |
Post | /admin/model-capabilities/catalog/sync | syncModelCatalog |
Post | /admin/model-capabilities/resolve | resolveModelCapabilities |
Delete | /admin/model-capabilities/{name} | deleteModelCapability |
Put | /admin/model-capabilities/{name} | upsertModelCapability |
/admin/model-health · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/model-health | health |
/admin/model-metadata · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/model-metadata | listModelMetadata |
Delete | /admin/model-metadata/{name} | deleteModelMetadata |
Put | /admin/model-metadata/{name} | upsertModelMetadata |
/admin/model-pricing · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/model-pricing | modelPricing |
Get | /admin/model-pricing/batch | modelPricingBatch |
/admin/models · 12 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/models/changes | listModelChanges |
Post | /admin/models/changes/apply | applyModelChanges |
Post | /admin/models/changes/discard-apply | applyModelDiscard |
Post | /admin/models/changes/discard-preview | previewModelDiscard |
Post | /admin/models/changes/ignore | ignoreModelChanges |
Post | /admin/models/changes/preview | previewModelChanges |
Post | /admin/models/unify/apply | unifyApply |
Get | /admin/models/unify/batches | unifyBatches |
Get | /admin/models/unify/batches/{id}/ops | unifyBatchOps |
Post | /admin/models/unify/batches/{id}/undo | unifyUndo |
Post | /admin/models/unify/deleted/{id}/restore | unifyRestoreRoute |
Post | /admin/models/unify/preview | unifyPreview |
/admin/operator · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/operator/claim | claimOwner |
Get | /admin/operator/onboarding | onboarding |
/admin/operator-profile · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/operator-profile | operatorProfile |
Post | /admin/operator-profile | saveOperatorProfile |
/admin/plugins · 16 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/plugins | list |
Get | /admin/plugins/catalog | catalog |
Get | /admin/plugins/hooks | hooksDeclarations |
Get | /admin/plugins/market | marketList |
Post | /admin/plugins/market/{id}/install | marketInstall |
Post | /admin/plugins/register | registerSidecar |
Get | /admin/plugins/status | status |
Delete | /admin/plugins/{id} | uninstall |
Put | /admin/plugins/{id} | updateSidecar |
Post | /admin/plugins/{id}/activate | activate |
Get | /admin/plugins/{id}/config | getPluginConfig |
Put | /admin/plugins/{id}/config | putPluginConfig |
Post | /admin/plugins/{id}/disable | disable |
Post | /admin/plugins/{id}/embed-token | embedToken |
Post | /admin/plugins/{id}/enable | enable |
Post | /admin/plugins/{id}/install | install |
/admin/price-quotes · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/price-quotes | priceQuotes |
Post | /admin/price-quotes | manualPriceQuote |
Post | /admin/price-quotes/estimate | estimatePriceQuote |
/admin/probes · 5 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/probes | list |
Post | /admin/probes | create |
Get | /admin/probes/{id} | get |
Post | /admin/probes/{id}/cancel | cancel |
Get | /admin/probes/{id}/results | results |
/admin/prompt-guards · 4 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/prompt-guards | listPromptGuards |
Post | /admin/prompt-guards | createPromptGuard |
Delete | /admin/prompt-guards/{id} | deletePromptGuard |
Put | /admin/prompt-guards/{id} | updatePromptGuard |
/admin/proxy-logs · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/proxy-logs | listProxyLogs |
Get | /admin/proxy-logs/latency-histogram | latencyHistogram |
/admin/ratios · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/ratios | listModelRatios |
Put | /admin/ratios/{model} | setModelRatio |
/admin/readyz · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/readyz | — |
/admin/redemption-codes · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/redemption-codes | listRedemptionCodes |
Post | /admin/redemption-codes | createRedemptionCodes |
Delete | /admin/redemption-codes/{id} | deleteRedemptionCode |
/admin/relay · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/relay/live | stream |
Post | /admin/relay/live/{request_id}/interrupt | interrupt |
/admin/reset · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/reset | factoryReset |
/admin/route-groups · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/route-groups | listRouteGroupNames |
/admin/route-members · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Delete | /admin/route-members/{id} | deleteRouteMember |
Put | /admin/route-members/{id} | updateRouteMember |
Post | /admin/route-members/{id}/clear-health | clearRouteMemberHealth |
/admin/routes · 14 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/routes | listRoutes |
Post | /admin/routes | createRoute |
Get | /admin/routes/explain | explainRoute |
Get | /admin/routes/overview | listRouteOverviews |
Delete | /admin/routes/{id} | deleteRoute |
Get | /admin/routes/{id} | getRoute |
Put | /admin/routes/{id} | updateRoute |
Post | /admin/routes/{id}/auto-match | autoMatchRouteMembers |
Post | /admin/routes/{id}/auto-match | autoMatchRouteMembers |
Post | /admin/routes/{routeId}/groups/copy | copyRouteMemberGroup |
Post | /admin/routes/{routeId}/groups/rename | renameRouteMemberGroup |
Delete | /admin/routes/{routeId}/groups/{name} | deleteRouteMemberGroup |
Get | /admin/routes/{routeId}/members | listRouteMembers |
Post | /admin/routes/{routeId}/members | createRouteMember |
/admin/runtime-settings · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/runtime-settings | getRuntimeSettings |
Put | /admin/runtime-settings | putRuntimeSettings |
Post | /admin/runtime-settings/reset | resetRuntimeSettings |
/admin/search · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/search | globalSearch |
/admin/self-update · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/self-update | status |
Post | /admin/self-update/apply | apply |
/admin/site-news · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/site-news | feed |
Post | /admin/site-news/refresh | refresh |
/admin/site-probe · 10 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/site-probe/adopt-price | adoptPrice |
Post | /admin/site-probe/apply | apply |
Post | /admin/site-probe/catalog/import | catalogImport |
Post | /admin/site-probe/catalog/prune | catalogPrune |
Post | /admin/site-probe/collect | collect |
Post | /admin/site-probe/detect | detect |
Get | /admin/site-probe/observations | observations |
Get | /admin/site-probe/report | report |
Put | /admin/site-probe/source | saveSource |
Delete | /admin/site-probe/source/{siteId} | clearSource |
/admin/site-type · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/site-type | detectSiteType |
/admin/sites · 8 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/sites | listSites |
Post | /admin/sites | createSite |
Delete | /admin/sites/{id} | deleteSite |
Get | /admin/sites/{id} | getSite |
Put | /admin/sites/{id} | updateSite |
Get | /admin/sites/{siteId}/credentials | listCredentials |
Post | /admin/sites/{siteId}/credentials | createCredential |
Post | /admin/sites/{siteId}/credentials/{id}/reveal | revealCredentialSecret |
/admin/sticky · 1 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/sticky | stickyStats |
/admin/team · 27 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/team/bootstrap | bootstrap |
Get | /admin/team/candidates | adminCandidates |
Get | /admin/team/codes | listCodes |
Post | /admin/team/codes | createCodes |
Delete | /admin/team/codes/{id} | revokeCode |
Get | /admin/team/invitations | listInvites |
Post | /admin/team/invitations | createInvite |
Delete | /admin/team/invitations/{id} | revokeInvite |
Get | /admin/team/oauth | oauthSettings |
Put | /admin/team/oauth | putOAuthSettings |
Get | /admin/team/policies | listPolicies |
Post | /admin/team/policies | savePolicy |
Delete | /admin/team/policies/{id} | deletePolicy |
Put | /admin/team/policies/{id} | savePolicy |
Get | /admin/team/settings | getSettings |
Put | /admin/team/settings | putSettings |
Get | /admin/team/users | listUsers |
Post | /admin/team/users | createUser |
Post | /admin/team/users/bulk | bulkUsers |
Post | /admin/team/users/import | importUsers |
Patch | /admin/team/users/{id} | updateUser |
Get | /admin/team/users/{id}/events | userEvents |
Get | /admin/team/users/{id}/identities | userIdentities |
Delete | /admin/team/users/{id}/identities/{identityID} | deleteIdentity |
Get | /admin/team/users/{id}/keys | adminUserKeys |
Post | /admin/team/users/{id}/recovery | createRecovery |
Post | /admin/team/users/{id}/revoke-sessions | revokeUserSessions |
/admin/totp · 4 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/totp/disable | disable |
Post | /admin/totp/enable | enable |
Post | /admin/totp/setup | setup |
Get | /admin/totp/status | status |
/admin/try · 3 条
| 方法 | 路径 | handler |
|---|---|---|
Post | /admin/try/channel-model | tryChannelModel |
Post | /admin/try/chat | tryChat |
Post | /admin/try/image | tryImage |
/admin/update-check · 2 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/update-check | get |
Post | /admin/update-check/refresh | refresh |
/admin/usage · 4 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/usage | listUsage |
Get | /admin/usage/series | usageSeries |
Get | /admin/usage/summary | usageSummary |
Get | /admin/usage/top-models | usageTopModels |
/admin/webdav · 5 条
| 方法 | 路径 | handler |
|---|---|---|
Get | /admin/webdav/settings | getSettings |
Put | /admin/webdav/settings | putSettings |
Get | /admin/webdav/status | status |
Post | /admin/webdav/sync | sync |
Post | /admin/webdav/test | test |