Vault
Sort Vault Lists
Persists the creator's preferred ordering for vault lists. The chosen sort applies the next time 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.fansmetric.comPOST/v1/{account_id}/vault/lists/sort
Bearer
Authorization
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.fansmetric.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{
"data":{
"success":true
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}