API 参考文档 v1
获取 API Key 获取 Key

GET /v1/me

获取调用方 token 的身份信息与配置额度

调用方 token 的身份信息(前缀、scope、过期时间)以及跟单任务 + Snipe 任务共用的账户级配置额度。 需要一个 read scope(copytrade:read、sniper:read、portfolio:read 或 orders:read)。

所需 Scope: 任意一个 copytrade:read / sniper:read / portfolio:read / orders:read

响应

200 — OK

字段类型必填说明
dataobject✓Identity of the calling token and the account configuration quota.
data.token_prefixstring✓Public prefix of the calling API token. The secret half is never returned.
data.token_versionnumber✓Version of this token. Incremented when the token is rotated.
data.policy_versionnumber✓Version of the token policy (scopes and IP rules) currently in force.
data.scopesarray<string>✓Scopes this token was created with. Each operation requires one of its declared scopes.
data.expires_atstring | null✓When the token expires, RFC 3339 UTC. Null when the token does not expire.
data.quotaobject✓Account-wide configuration quota shared by Copy Trading and Sniper.
data.quota.maxnumber✓How many Copy Trading plus Sniper configs this account may hold.
data.quota.usednumber✓How many of those configs the account currently holds.
data.quota.remainingnumber✓max minus used. A create fails with configuration_quota_exceeded when this is 0.
metaobject✓Request id, plus paging fields when this operation is a list.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

401 — unauthorized (missing/invalid/revoked/expired Bearer token)

字段类型必填说明
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

403 — insufficient_scope / ip_not_allowed

字段类型必填说明
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

429 — rate_limited (Retry-After response header set)

字段类型必填说明
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

500 — internal_error

字段类型必填说明
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.
请求示例
curl -X GET "https://api.apm.fun/v1/me" \
  -H "Authorization: Bearer apm_live_<prefix>.<secret>"
响应示例 200
{
  "data": {
    "token_prefix": "string",
    "token_version": 0,
    "policy_version": 0,
    "scopes": [
      "string"
    ],
    "expires_at": null,
    "quota": {
      "max": 0,
      "used": 0,
      "remaining": 0
    }
  },
  "meta": {
    "request_id": "cfg_8f2a1c9b"
  }
}