OnlyFans API
Notifications

Update Notification Tabs Order

Update the order of an account's notification tabs as displayed on the OnlyFans notifications page

PUT
/api/{account}/notifications/tabs-order
AuthorizationBearer <token>

You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.

In: header

Path Parameters

accountstring

The Account ID

tabsarray<string>

Array of tab keys. Must include exactly these: all, subscriptions, onlyfans, purchases, tips, tags, comments, mentions, likes, promotions.

Response Body

curl -X PUT "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/notifications/tabs-order" \
  -H "Content-Type: application/json" \
  -d '{
    "tabs": [
      "all",
      "subscriptions",
      "onlyfans",
      "purchases",
      "tips",
      "tags",
      "comments",
      "mentions",
      "likes",
      "promotions"
    ]
  }'
const body = JSON.stringify({
  "tabs": [
    "all",
    "subscriptions",
    "onlyfans",
    "purchases",
    "tips",
    "tags",
    "comments",
    "mentions",
    "likes",
    "promotions"
  ]
})

fetch("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/notifications/tabs-order", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/notifications/tabs-order"
  body := strings.NewReader(`{
    "tabs": [
      "all",
      "subscriptions",
      "onlyfans",
      "purchases",
      "tips",
      "tags",
      "comments",
      "mentions",
      "likes",
      "promotions"
    ]
  }`)
  req, _ := http.NewRequest("PUT", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/notifications/tabs-order"
body = {
  "tabs": [
    "all",
    "subscriptions",
    "onlyfans",
    "purchases",
    "tips",
    "tags",
    "comments",
    "mentions",
    "likes",
    "promotions"
  ]
}
response = requests.request("PUT", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;
import java.net.http.HttpRequest.BodyPublishers;

var body = BodyPublishers.ofString("""{
  "tabs": [
    "all",
    "subscriptions",
    "onlyfans",
    "purchases",
    "tips",
    "tags",
    "comments",
    "mentions",
    "likes",
    "promotions"
  ]
}""");
HttpClient client = HttpClient.newBuilder()
  .connectTimeout(Duration.ofSeconds(10))
  .build();

HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
  .uri(URI.create("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/notifications/tabs-order"))
  .header("Content-Type", "application/json")
  .PUT(body)
  .build();

try {
  HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
  System.out.println("Status code: " + response.statusCode());
  System.out.println("Response body: " + response.body());
} catch (Exception e) {
  e.printStackTrace();
}
using System;
using System.Net.Http;
using System.Text;

var body = new StringContent("""
{
  "tabs": [
    "all",
    "subscriptions",
    "onlyfans",
    "purchases",
    "tips",
    "tags",
    "comments",
    "mentions",
    "likes",
    "promotions"
  ]
}
""", Encoding.UTF8, "application/json");

var client = new HttpClient();
var response = await client.PutAsync("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/notifications/tabs-order", body);
var responseBody = await response.Content.ReadAsStringAsync();
{
  "data": {
    "success": true
  },
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 1000000018,
      "note": "Always"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    },
    "_rate_limits": {
      "limit_minute": 10000000,
      "limit_day": 50000,
      "remaining_minute": 9999997,
      "remaining_day": 49979
    }
  }
}