Manage AceDataCloud Platform Account Tokens
Account Tokens (formerly Platform Tokens) are "account-level keys" that developers use to programmatically manage AceDataCloud platform resources (service applications, API credentials, orders, call records, balances, files, etc.). They function similarly to user tokens obtained after logging in through the frontend and have no expiration time by default; regular users can only manage their own tokens, while super administrators can manage other accounts' tokens according to their permissions.
Account tokens access platform interfaces with the current permissions of their associated accounts: basic permissions, directly granted permissions, and permissions from user groups are combined and applied. After a user is added to or removed from a group, the new permissions are evaluated on the next request. Access to specific applications, orders, and other resources still requires an ownership check. Account tokens do not expire by default, so use them only in trusted environments and keep them secure.
ℹ️ This interface belongs to the AceDataCloud Platform Management API, which uses the common prefix
https://platform.acedata.cloud/api/v1/. For the complete interface index, see Get the AceDataCloud Platform Documentation List.
¶ Account Tokens vs API Credentials
These are the two types of keys that beginners most often confuse, so please review them carefully:
| Aspect | Account Token (this document) | API Credential |
|---|---|---|
| Purpose | Call management interfaces at https://platform.acedata.cloud/** |
Call service interfaces at https://api.acedata.cloud/** (OpenAI, Midjourney, Suno, Veo, etc.) |
| Format | platform-v1- + 64 hexadecimal characters (76 characters total) |
32 hexadecimal characters |
| Per account | Usually 1–2 | A general application's key can access services enabled for the account, and separate keys can also be issued for specific applications |
| Creation entry point | Account Token Console | Application List → General Application → Copy API KEY, or issue credentials for a specific application |
| Expiration conditions | Invalid immediately after deletion; expires when expiration is non-null and the expiration time is reached |
Usage limits, expiration times, and source IP bindings can be configured |
If you just want to try calling GPT-4.1, you need an API credential, not an account token. If you want to write automation scripts to manage top-ups, view monthly bills, or issue credentials to team members in bulk, then use an account token.
¶ Create in One Click in the Console (Recommended)
- Log in to https://platform.acedata.cloud.
- Go to the sidebar → "Developer" → "Account Token".
- Click the "Create" button in the upper-right corner to immediately receive a
platform-v1-...token, and click the copy button to save it in a password manager.

⚠️ Create, list, and detail responses currently all return tokens in plaintext. Treat the entire response as a secret, and do not write it to logs, analytics platforms, or persistent frontend storage; clients should not rely on list responses continuing to return plaintext indefinitely.
¶ Create an Account Token Using the API
¶ Interface Overview
| Item | Description |
|---|---|
| Method | POST |
| URL | https://platform.acedata.cloud/api/v1/platform-tokens/ |
| Authentication | ✅ Any existing account token or browser login JWT |
| Body | application/json (an empty object {} may be sent) |
¶ Authentication Notes (The Chicken-and-Egg Problem)
How do you get your first token? The answer is through the console—after you log in through the browser, the console uses JWT authentication to call
POST /platform-tokens/and issues your first token. After that, you can use any existingplatform-v1-...token to create more.
Request header format:
Authorization: Bearer ${PLATFORM_TOKEN}
Content-Type: application/json
¶ Request Example
curl -X POST 'https://platform.acedata.cloud/api/v1/platform-tokens/' \
-H 'accept: application/json' \
-H "authorization: Bearer ${PLATFORM_TOKEN}" \
-H 'content-type: application/json' \
-d '{}'
¶ Response (HTTP 201)
{
"id": "3264f1aa-cbe1-4e2c-a434-95adba4f8304",
"token": "platform-v1-<REDACTED>",
"expiration": null,
"user_id": "89518d07-5560-4b05-92c1-667f3ddf6a4b",
"created_at": "2026-04-26T15:50:11.123456Z",
"updated_at": "2026-04-26T15:50:11.123456Z",
"used_at": null
}
¶ Field Descriptions
| Field | Type | Description |
|---|---|---|
id |
UUID | Token primary key, used when deleting or querying details |
token |
string | Account token in plaintext. Format: platform-v1- + 64 hexadecimal characters (76 characters total); must be treated as a secret |
expiration |
int | null | Expiration time (Unix timestamp in seconds). null means no expiration time is set |
user_id |
UUID | Associated user ID. Also the value of the ?user_id= parameter required by all subsequent list interfaces |
created_at |
datetime (ISO8601) | Creation time |
updated_at |
datetime (ISO8601) | Update time |
used_at |
datetime | null | Time last used for authentication. null if never used; can be used to identify "zombie tokens" |
¶ Get the Account Token List
¶ Interface Overview
| Item | Description |
|---|---|
| Method | GET |
| URL | https://platform.acedata.cloud/api/v1/platform-tokens/ |
| Authentication | ✅ Account token required |
¶ Required Query Parameter
⚠️ You must include
?user_id=<your_user_id>. Reason: the list interface checks permissions object by object on paginated results. Ifuser_idis omitted, the first object that does not belong to you will be denied, returning403 permission_denied.
How to obtain user_id:
- Open https://auth.acedata.cloud/user/profile in your browser; the full UUID is displayed at the top of the page.
- Or use the
user_idfield in the response fromPOST /platform-tokens/directly.
¶ Query Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
user_id |
✅ | UUID | User ID of the current account |
limit |
❌ | int | Items per page, default 10, maximum 100 |
offset |
❌ | int | Offset |
ordering |
❌ | string | Sort field, default -created_at |
¶ Request Example
curl 'https://platform.acedata.cloud/api/v1/platform-tokens/?user_id=89518d07-5560-4b05-92c1-667f3ddf6a4b&limit=5' \
-H 'accept: application/json' \
-H "authorization: Bearer ${PLATFORM_TOKEN}"
¶ Response (HTTP 200)
{
"count": 2,
"items": [
{
"id": "51c575a2-801c-4211-bc47-711452a8c8c9",
"token": "platform-v1-<REDACTED>",
"expiration": null,
"user_id": "89518d07-5560-4b05-92c1-667f3ddf6a4b",
"created_at": "2026-04-26T15:41:32.761705Z",
"updated_at": "2026-04-26T15:41:32.761726Z",
"used_at": null
}
]
}
This endpoint's paginated response uses
count+items. Other platform endpoints may use different structures; refer to the corresponding documentation and actual responses.
¶ Get Account Token Details
| Item | Content |
|---|---|
| Method | GET |
| URL | https://platform.acedata.cloud/api/v1/platform-tokens/<id> (no trailing slash) |
| Authentication | ✅ Only the token creator or a superuser can access it |
curl 'https://platform.acedata.cloud/api/v1/platform-tokens/51c575a2-801c-4211-bc47-711452a8c8c9' \
-H 'accept: application/json' \
-H "authorization: Bearer ${PLATFORM_TOKEN}"
The response structure is the same as a list item, with HTTP 200.
¶ Delete an Account Token
| Item | Content |
|---|---|
| Method | DELETE |
| URL | https://platform.acedata.cloud/api/v1/platform-tokens/<id> (no trailing slash) |
| Authentication | ✅ Only the token creator or a superuser can delete it |
curl -X DELETE 'https://platform.acedata.cloud/api/v1/platform-tokens/3264f1aa-cbe1-4e2c-a434-95adba4f8304' \
-H "authorization: Bearer ${PLATFORM_TOKEN}"
- On success, returns
HTTP 204 No Contentwith no response body. - After deletion, the token is immediately invalidated, and all services using it will immediately receive
401. - Querying that
idagain will return404.
⚠️ Deletion is irreversible. If you suspect a token has been leaked, you can create a new one first, switch your services to it, and then delete the old one.
¶ Unsupported Operations
| Operation | HTTP | Description |
|---|---|---|
PATCH modify |
405 | Account tokens do not support modification of any fields after creation. To rename one, delete and recreate it |
PUT replace |
405 | Same as above |
¶ Error Code Quick Reference
| HTTP | code |
Common Cause |
|---|---|---|
| 401 | not_authenticated |
Missing Authorization header, or the token has been deleted |
| 403 | permission_denied |
Missing ?user_id= on the list endpoint, or accessing someone else's token details |
| 404 | not_found |
The id does not exist or has been deleted |
| 405 | method_not_allowed |
Sent PATCH/PUT to the detail endpoint |
Standard error response format:
{
"detail": "You do not have permission to perform this action.",
"code": "permission_denied",
"trace_id": "0a88956213edf6e62b71695ee2df0eff"
}
When troubleshooting, provide the trace_id to customer support or include it in a ticket to quickly locate the logs.
¶ Complete Code Examples
¶ Python
import os
import requests
BASE = "https://platform.acedata.cloud/api/v1"
PLATFORM_TOKEN = os.environ["PLATFORM_TOKEN"]
USER_ID = "89518d07-5560-4b05-92c1-667f3ddf6a4b"
headers = {
"accept": "application/json",
"authorization": f"Bearer {PLATFORM_TOKEN}",
"content-type": "application/json",
}
# 1. 创建新令牌
created = requests.post(f"{BASE}/platform-tokens/", headers=headers, json={}).json()
print("新令牌:", created["token"])
print("UserID:", created["user_id"])
# 2. 列表
listing = requests.get(
f"{BASE}/platform-tokens/",
headers=headers,
params={"user_id": USER_ID, "limit": 50},
).json()
print(f"共 {listing['count']} 枚令牌")
# 3. 删除(注意末尾无斜杠)
resp = requests.delete(f"{BASE}/platform-tokens/{created['id']}", headers=headers)
assert resp.status_code == 204, resp.text
¶ Node.js
const BASE = 'https://platform.acedata.cloud/api/v1'
const PLATFORM_TOKEN = process.env.PLATFORM_TOKEN
const USER_ID = '89518d07-5560-4b05-92c1-667f3ddf6a4b'
const headers = {
accept: 'application/json',
authorization: `Bearer ${PLATFORM_TOKEN}`,
'content-type': 'application/json',
}
// 创建
const created = await fetch(`${BASE}/platform-tokens/`, {
method: 'POST',
headers,
body: '{}',
}).then((r) => r.json())
// 列表
const url = new URL(`${BASE}/platform-tokens/`)
url.searchParams.set('user_id', USER_ID)
const listing = await fetch(url, { headers }).then((r) => r.json())
console.log(`共 ${listing.count} 枚令牌`)
// 删除(末尾无斜杠)
await fetch(`${BASE}/platform-tokens/${created.id}`, { method: 'DELETE', headers })
¶ Use in Other Platform APIs
Place platform-v1-... directly in the Authorization: Bearer ... header to call any platform endpoint that requires authentication:
curl 'https://platform.acedata.cloud/api/v1/applications/?user_id=89518d07-5560-4b05-92c1-667f3ddf6a4b' \
-H "authorization: Bearer ${PLATFORM_TOKEN}"
This is completely different from the 32-character hexadecimal API credentials used by the
https://api.acedata.cloud/**service endpoints (OpenAI, Midjourney, Suno, Veo, etc.). Do not mix them up—using an account token with a service endpoint will result in401, and vice versa.
¶ Related Endpoints
- Get the AceDataCloud Platform Service Application List — Use an account token to see which services you have applied for
- Create an AceDataCloud Platform API Credential — Use an account token to issue a 32-character credential for business APIs
- Get AceDataCloud Platform API Call Records — Check billing and troubleshoot issues
- Get the AceDataCloud Platform Order List — Check top-up history
- Ace Data Cloud Platform Management MCP — Connect your account in an AI client to query services, documentation, and usage
