Skip to main content

What You Can Build

  • Profile Management: Update bio, name, and display settings
  • Notification Systems: Monitor OnlyFans notifications
  • Multi-Account Tools: Manage profiles across multiple creator accounts

Quick Example

Get account profile information:
const response = await fetch("https://api.ofauth.com/v2/access/self", {
  headers: {
    apikey: "YOUR_API_KEY",
    "x-connection-id": "conn_abc123"
  }
})

const profile = await response.json()
console.log("Logged in as:", profile.name)
console.log("Username:", profile.username)

Common Operations

Get Profile

Fetch the authenticated user’s profile:
const response = await fetch("https://api.ofauth.com/v2/access/self", {
  headers: {
    apikey: "YOUR_API_KEY",
    "x-connection-id": "conn_abc123"
  }
})

const profile = await response.json()
// Returns full profile with stats, settings, etc.

Update Profile

Modify profile information:
const response = await fetch("https://api.ofauth.com/v2/access/self", {
  method: "PATCH",
  headers: {
    apikey: "YOUR_API_KEY",
    "x-connection-id": "conn_abc123",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    name: "New Display Name",
    about: "Updated bio here..."
  })
})

Get Notifications

List recent notifications:
const response = await fetch("https://api.ofauth.com/v2/access/self/notifications", {
  headers: {
    apikey: "YOUR_API_KEY",
    "x-connection-id": "conn_abc123"
  }
})

const notifications = await response.json()

API Endpoints

EndpointMethodDescription
/v2/access/selfGETGet current user profile
/v2/access/selfPATCHUpdate profile
/v2/access/self/notificationsGETList notifications
/v2/access/self/release-formsGETList release forms

Full API Reference

See complete endpoint documentation

SDK Methods

If you’re using the TypeScript SDK:
// Get profile
const { data: profile } = await sdk.self.getSelf({
  authentication: { connectionId: "conn_abc123" }
})

// Update profile
const { data: updated } = await sdk.self.updateSelf({
  authentication: { connectionId: "conn_abc123" },
  params: {
    name: "New Name",
    about: "New bio"
  }
})

// Get notifications
const { data: notifications } = await sdk.self.getNotifications({
  authentication: { connectionId: "conn_abc123" }
})

SDK Self Module

Full SDK documentation for account management

Profile Data Structure

The profile object includes:
{
  "id": 123456,
  "username": "creatorname",
  "name": "Display Name",
  "isAuth": true,
  "isVerified": true,
  "avatar": "https://media.ofauth.com/...",
  "subscribersCount": 1500,
  "postsCount": 250,
  "photosCount": 200,
  "videosCount": 50
}

Notification Types

TypeDescription
new_subscriberNew fan subscribed
subscription_expiredFan subscription ended
tip_receivedReceived a tip
message_receivedNew direct message
post_likedPost was liked
post_commentedPost received a comment
purchasePPV content purchased

Tips & Best Practices

Polling Notifications: For real-time notification monitoring, consider setting up webhooks instead of polling the notifications endpoint.
Profile Updates: Some profile fields (like username) may have restrictions or require verification. Check OnlyFans policies for limitations.
Rate Limits: Frequent profile updates may be rate limited. Batch changes when possible.