AceDataCloud Platform Management
Programmatically manage your AceDataCloud account: balances, usage records, API
keys, services, orders, platform tokens, models, announcements and referral
earnings, and manage article/video drafts, review threads and peer-reviewed blog publication through MCP / REST — plus browse
the public catalog & docs (service pricing, API specs, datasets, integrations,
documentation search, model catalog) without a token.
This is the management / console API at https://platform.acedata.cloud/api/v1
— the same surface the web console uses. It is different from the
data-generation API at api.acedata.cloud (image / video / music / search generation).
Setup — use a PLATFORM token, not a service token
The management API is authenticated with a platform token (or a logged-in
user token), not the per-service API token used for api.acedata.cloud.
- Create one at platform.acedata.cloud/console/platform-tokens
(or POST /api/v1/platform-tokens/). It starts with platform- and has no scheduled expiry, but revocation or account-security changes can invalidate it.
- Provide it one of two ways:
- Connector (recommended in studio / chat): install the AceDataCloud
connector at studio.acedata.cloud/console/connectors
and paste the token once — the runtime injects ACEDATACLOUD_PLATFORM_TOKEN
into the sandbox automatically (this skill declares connections: [acedatacloud]).
- Local
.env:
ACEDATACLOUD_PLATFORM_TOKEN=platform-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
curl -H "authorization: Bearer $ACEDATACLOUD_PLATFORM_TOKEN" \
https://platform.acedata.cloud/api/v1/applications/
A normal token only ever sees its own account data. A superuser token sees
every user's data and is required for admin operations (announcements).
OAuth account access
OAuth access tokens authorize account-resource access; they are not model API Keys. OAuth consent does not create a Key, subscribe to a service, or add balance. For a third-party account connection:
- Register the app at
https://auth.acedata.cloud/user/oauth-apps. Readavailable_scopesfrom the authenticatedGET https://auth.acedata.cloud/api/v1/oauth2/applications/, not the broader Discoveryscopes_supportedlist. Request only registered permissions the user has: e.g.,profile:read credentials:read, addingcredentials:writeonly for confirmed Key changes andoffline_accessonly if refresh is needed. Oldprofile,email,phone, andplatformscopes are not accepted aliases; use explicit current scopes such asprofile:readandemail:read. Theaccountselector is reserved for the designated official account MCP, not a third-party all-permissions scope. - Open
https://auth.acedata.cloud/oauth2/authorizewithresponse_type=code,client_id, the exact registeredredirect_uri, space-separatedscope, a fresh randomstate, and S256 PKCE. Public clients must use S256, notplain; keep the verifier in the application's own session. Verify callback state before exchanging the single-use code (valid for 10 minutes). UsePOST https://auth.acedata.cloud/oauth2/tokenwith form fieldsgrant_type=authorization_code,client_id,redirect_uri,code, andcode_verifier. Confidential clients also send server-sideclient_secret(client_secret_post, not HTTP Basic); never put a secret in a browser page. Read the actual grantedscopeandexpires_in; noid_tokenis returned. - With the OAuth Bearer token, read
GET https://auth.acedata.cloud/api/v1/users/me, then use its realidinGET https://platform.acedata.cloud/api/v1/credentials/?user_id=<id>&limit=100&offset=0if grantedcredentials:read. Readitems[*].token, page withoffset/limit, and choose a valid Key for the intended application/service rather than taking the first item.user_id=meis invalid. An empty list is not an authorization failure. Never display or log Keys, codes, tokens, or PKCE verifiers. - For a Studio website component using the current Studio account, configure the app ID and callback under Settings → Home → Website. Website and callback must share an HTTPS origin distinct from Studio; never configure a client secret. The page must implement
acedatacloud:oauth:ready,acedatacloud:oauth:init,acedatacloud:oauth:authorize, andacedatacloud:oauth:result, validating the exact parent origin, parent window, and state; retain the verifier locally and exchange the returned code. This component requestsprofile:read credentials:read, notoffline_accessor blog permissions; each visitor must consent separately. It does not inject Studio's login token or a Key. Standard OAuth redirects do not require this message protocol orembed=studio/embed_origin; ordinary iframe first-login continuation has a known gap, so verify logged-out/expired sessions or use an independent page instead. On denial orlogin_required, restore a retryable connection state rather than looping authorization. - Refresh only if
offline_accesswas granted, using the token endpoint withgrant_type=refresh_tokenand the saved refresh token; retain the latest response. Refresh does not guarantee the old refresh token immediately becomes invalid.POST https://auth.acedata.cloud/oauth2/revokewith form fieldtokencurrently returns HTTP 200 without immediate invalidation of issued JWTs. Clear your own saved connection state, but do not report that all tokens are revoked. Copied API Keys must be separately revoked or rotated in credential management.
Two-step verification is completed on Ace Data Cloud's authorization page using an authenticator code or one-time recovery code before the authorization code is issued. Applications must not request, save or forward authenticator secrets or recovery codes. Enabling, changing or disabling two-step verification, or recovering an account, may invalidate existing sessions, refresh tokens and related platform authorization tokens. On an invalid session or invalid_grant, restart user-visible authorization; do not loop with an old code or bypass verification. Ordinary model API Key authentication is unchanged; suspected compromise still requires separate Key review and revocation.
The bundled CLI does not register OAuth apps or perform the browser/PKCE exchange. For invalid_scope, check the app's registered scopes, delegation restrictions, and user permissions rather than broadening access. Verify denial, state mismatch, expired/consumed code, missing scopes, no Keys, network failures, token expiry, and iframe account changes before relying on a connection.