Skip to main content
POST
/
v2
/
account
/
connections
/
import
Import connection
curl --request POST \
  --url https://api-next.ofauth.com/v2/account/connections/import \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '
{
  "cookie": "<string>",
  "userAgent": "<string>",
  "permissions": [
    "<string>"
  ],
  "clientReferenceId": "<string>"
}
'
{
  "status": "active",
  "id": "<string>",
  "userData": {
    "id": "<string>",
    "name": "<string>",
    "username": "<string>",
    "avatar": "<string>"
  },
  "permissions": [
    "<string>"
  ],
  "expiredAt": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "clientReferenceId": "<string>",
  "imported": true,
  "lastCheckedAt": "<string>"
}

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

Body

application/json

The OnlyFans session cookie string. Must contain auth_id, sess, and fp values.

userAgent
string
required

The user agent string that was used to create this session.

permissions
string[]

Permissions to grant. Defaults to organization permissions.

clientReferenceId
string | null

Optional client reference ID for tracking.

Response

Connection imported successfully

status
enum<string>
required

The status of the connection.

Available options:
active,
expired,
awaiting_2fa
id
string
required

The ID of the connection.

userData
object
required

Data could be outdated if the connection is expired, but will be updated once the account has been reconnected.

permissions
string[]
required

The permissions of the connection.

expiredAt
string | null
required

The expiration date of the connection.

createdAt
string
required

The creation date of the connection.

updatedAt
string
required

The last update date of the connection.

clientReferenceId
string | null
required

The client reference ID of the connection.

imported
boolean
required

Whether this is an imported (non-managed) connection.

lastCheckedAt
string | null
required

The last time the connection was checked or used.