API Reference v1
Get API Key API Key

GET /v1/me

Token identity and configuration quota of the caller

Identity of the calling token (prefix, scopes, expiry) plus the account-wide Copy Trading + Sniper configuration quota. Requires the any read scope (copytrade:read, sniper:read, portfolio:read, or orders:read).

Required scope: any of copytrade:read / sniper:read / portfolio:read / orders:read

Responses

200 — OK

FieldTypeRequiredDescription
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)

FieldTypeRequiredDescription
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

FieldTypeRequiredDescription
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)

FieldTypeRequiredDescription
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

FieldTypeRequiredDescription
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.
Example request
curl -X GET "https://api.apm.fun/v1/me" \
  -H "Authorization: Bearer apm_live_<prefix>.<secret>"
Example response 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"
  }
}