Vault
Sort Vault Lists
Persists the creator's preferred ordering for vault lists. The chosen sort applies the next time [List Vault Lists](/api-reference/vault/list-vault-lists) is called. Pass one of the named sorts (media, recent, name, default) with a direction, or custom with an explicit customOrder array of list IDs. Requires permission api_vault_lists_sort.
https://public-api.buffmetrics.comAuthorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
Request Body
application/jsonsort*stringOne of
media(item count),recent(last modified),name(alphabetical),default(OF default order), orcustom.orderstringascordesc. Required for named sorts. Ignored whensortiscustom.customOrderstringArray of vault list IDs in the exact order to persist. Required when
sortiscustom; must include every custom list the account owns.
curl --request POST "https://public-api.buffmetrics.com/v1/acct_XXXXX/vault/lists/sort" \
--header "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{ "sort": "media", "order": "asc" }'Response
200