> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ofauth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unrestrict user

> Remove a user restriction for the linked account.

**Required scope:** `users:write`



## OpenAPI

````yaml /openapi/v3.json delete /v3/access/users/:userId/restrict
openapi: 3.1.0
info:
  title: OFAuth API
  version: 1.0.0
  description: >-
    OFAuth V3 API for linking accounts, making OnlyFans API requests, and
    receiving events.
  contact:
    email: support@ofauth.com
    url: https://ofauth.com/
servers:
  - url: https://api.ofauth.com
security:
  - ExternalOAuth: []
tags:
  - name: Link
    description: Link accounts, get and refresh tokens, and end access.
  - name: Linked accounts
    description: The linked accounts of one authorization, and their settings.
  - name: Access
    description: Make OnlyFans API requests for a linked account.
  - name: Analytics
    description: 'Access: charts, rankings, and performance data.'
  - name: Earnings
    description: 'Access: earnings charts, transactions, and chargebacks.'
  - name: Messages
    description: 'Access: messaging, chats, queue, and mass messaging.'
  - name: Posts
    description: 'Access: create, edit, list, and manage posts.'
  - name: Promotions
    description: 'Access: promotions, trials, and bundles.'
  - name: Users
    description: 'Access: user profiles, subscriptions, and actions.'
  - name: Vault
    description: 'Access: vault folders, media, and management.'
  - name: Upload
    description: 'Access: media upload and processing.'
  - name: Self
    description: 'Access: linked account profile and settings.'
  - name: Stories
    description: 'Access: stories listing and management.'
  - name: Subscriptions
    description: 'Access: subscription offers, discounts, and management.'
  - name: Realtime
    description: Webhook event formats, including OnlyFans activity events.
externalDocs:
  description: OFAuth Developer Documentation
  url: https://docs.ofauth.com
paths:
  /v3/access/users/:userId/restrict:
    delete:
      tags:
        - Users
      summary: Unrestrict user
      description: |-
        Remove a user restriction for the linked account.

        **Required scope:** `users:write`
      operationId: access.users.unrestrict
      parameters:
        - name: x-linked-account-id
          in: header
          required: true
          description: >-
            The linked account to use. The user must have shared it with your
            app. A missing account returns `linked_account_required`; an account
            outside your access returns `linked_account_not_granted`.
          schema:
            type: string
            example: conn_example123
        - schema:
            type: string
            pattern: ^\d+$
          required: true
          name: userId
          in: path
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  avatar:
                    anyOf:
                      - type: 'null'
                      - type: string
                  avatarThumbs:
                    anyOf:
                      - type: 'null'
                      - type: object
                        properties:
                          c144:
                            type: string
                          c50:
                            type: string
                        additionalProperties: true
                        required:
                          - c144
                          - c50
                  canAddSubscriber:
                    type: boolean
                  canCommentStory:
                    type: boolean
                  canEarn:
                    type: boolean
                  canLookStory:
                    type: boolean
                  canPayInternal:
                    type: boolean
                  canReceiveChatMessage:
                    type: boolean
                  canReport:
                    type: boolean
                  canRestrict:
                    type: boolean
                  canTrialSend:
                    type: boolean
                  canUnsubscribe:
                    type: boolean
                  currentSubscribePrice:
                    anyOf:
                      - type: 'null'
                      - type: number
                  displayName:
                    type: string
                  hasNotViewedStory:
                    type: boolean
                  hasScheduledStream:
                    type: boolean
                  hasStories:
                    type: boolean
                  hasStream:
                    type: boolean
                  header:
                    anyOf:
                      - type: 'null'
                      - type: string
                  headerSize:
                    anyOf:
                      - type: 'null'
                      - type: object
                        properties:
                          height:
                            type: number
                          width:
                            type: number
                        additionalProperties: true
                        required:
                          - height
                          - width
                  headerThumbs:
                    anyOf:
                      - type: 'null'
                      - type: object
                        properties:
                          w480:
                            type: string
                          w760:
                            type: string
                        additionalProperties: true
                        required:
                          - w480
                          - w760
                  hideChat:
                    type: boolean
                  id:
                    type: number
                  isActive:
                    type: boolean
                  isBlocked:
                    type: boolean
                  isPaywallRequired:
                    type: boolean
                  isPendingAutoprolong:
                    type: boolean
                  isPerformer:
                    type: boolean
                  isRealPerformer:
                    type: boolean
                  isRestricted:
                    type: boolean
                  isVerified:
                    type: boolean
                  lastSeen:
                    anyOf:
                      - type: 'null'
                      - type: string
                  listsStates:
                    type: array
                    items:
                      type: object
                      properties:
                        canAddUser:
                          type: boolean
                        cannotAddUserReason:
                          anyOf:
                            - type: 'null'
                            - type: string
                        hasUser:
                          type: boolean
                        id:
                          type: string
                        name:
                          type: string
                        type:
                          type: string
                      additionalProperties: true
                      required:
                        - canAddUser
                        - cannotAddUserReason
                        - hasUser
                        - id
                        - name
                        - type
                  name:
                    type: string
                  notice:
                    type: string
                  subscribedBy:
                    anyOf:
                      - type: boolean
                      - type: 'null'
                  subscribedByAutoprolong:
                    anyOf:
                      - type: boolean
                      - type: 'null'
                  subscribedByData:
                    type: object
                    properties:
                      discountFinishedAt:
                        type: 'null'
                      discountPercent:
                        type: number
                      discountPeriod:
                        type: number
                      discountStartedAt:
                        type: 'null'
                      duration:
                        type: string
                      expiredAt:
                        type: string
                      hasActivePaidSubscriptions:
                        type: boolean
                      isMuted:
                        type: boolean
                      newPostsAfterExpireCount:
                        type: number
                      newPrice:
                        type: number
                      price:
                        type: number
                      regularPrice:
                        type: number
                      renewedAt:
                        type: 'null'
                      showPostsInFeed:
                        type: boolean
                      status:
                        anyOf:
                          - type: 'null'
                          - type: string
                      subscribeAt:
                        type: string
                      subscribePrice:
                        type: number
                      subscribes:
                        type: array
                        items:
                          type: object
                          properties:
                            action:
                              type: string
                            cancelDate:
                              type: 'null'
                            date:
                              type: string
                            discount:
                              type: number
                            duration:
                              type: number
                            earningId:
                              type: number
                            expireDate:
                              type: string
                            id:
                              type: number
                            isCurrent:
                              type: boolean
                            offerEnd:
                              anyOf:
                                - type: 'null'
                                - type: string
                            offerStart:
                              anyOf:
                                - type: 'null'
                                - type: string
                            price:
                              type: number
                            regularPrice:
                              type: number
                            startDate:
                              type: string
                            subscriberId:
                              type: number
                            type:
                              type: string
                            userId:
                              type: number
                          additionalProperties: true
                          required:
                            - action
                            - cancelDate
                            - date
                            - discount
                            - duration
                            - earningId
                            - expireDate
                            - id
                            - isCurrent
                            - offerEnd
                            - offerStart
                            - price
                            - regularPrice
                            - startDate
                            - subscriberId
                            - type
                            - userId
                      unsubscribeReason:
                        type: string
                    additionalProperties: true
                    required:
                      - discountFinishedAt
                      - discountPercent
                      - discountPeriod
                      - discountStartedAt
                      - duration
                      - expiredAt
                      - hasActivePaidSubscriptions
                      - isMuted
                      - newPostsAfterExpireCount
                      - newPrice
                      - price
                      - regularPrice
                      - renewedAt
                      - showPostsInFeed
                      - status
                      - subscribeAt
                      - subscribePrice
                      - subscribes
                      - unsubscribeReason
                  subscribedByExpire:
                    anyOf:
                      - type: boolean
                      - type: 'null'
                  subscribedByExpireDate:
                    type: string
                  subscribedIsExpiredNow:
                    type: boolean
                  subscribedOn:
                    anyOf:
                      - type: boolean
                      - type: 'null'
                  subscribedOnData:
                    type: object
                    properties:
                      discountFinishedAt:
                        type: 'null'
                      discountPercent:
                        type: number
                      discountPeriod:
                        type: number
                      discountStartedAt:
                        type: 'null'
                      duration:
                        type: string
                      expiredAt:
                        type: string
                      hasActivePaidSubscriptions:
                        type: boolean
                      isMuted:
                        type: boolean
                      messagesSumm:
                        type: number
                      newPrice:
                        type: number
                      postsSumm:
                        type: number
                      price:
                        type: number
                      regularPrice:
                        type: number
                      renewedAt:
                        type: 'null'
                      status:
                        anyOf:
                          - type: 'null'
                          - type: string
                      streamsSumm:
                        type: number
                      subscribeAt:
                        type: string
                      subscribePrice:
                        type: number
                      subscribes:
                        type: array
                        items:
                          type: object
                          properties:
                            action:
                              type: string
                            cancelDate:
                              type: 'null'
                            date:
                              type: string
                            discount:
                              type: number
                            duration:
                              type: number
                            earningId:
                              type: number
                            expireDate:
                              type: string
                            id:
                              type: number
                            isCurrent:
                              type: boolean
                            offerEnd:
                              type: string
                            offerStart:
                              type: string
                            price:
                              type: number
                            regularPrice:
                              type: number
                            startDate:
                              type: string
                            subscriberId:
                              type: number
                            type:
                              type: string
                            userId:
                              type: number
                          additionalProperties: true
                          required:
                            - action
                            - cancelDate
                            - date
                            - discount
                            - duration
                            - earningId
                            - expireDate
                            - id
                            - isCurrent
                            - offerEnd
                            - offerStart
                            - price
                            - regularPrice
                            - startDate
                            - subscriberId
                            - type
                            - userId
                      subscribesSumm:
                        type: number
                      tipsSumm:
                        type: number
                      totalSumm:
                        type: number
                      unsubscribeReason:
                        type: string
                    additionalProperties: true
                    required:
                      - discountFinishedAt
                      - discountPercent
                      - discountPeriod
                      - discountStartedAt
                      - duration
                      - expiredAt
                      - hasActivePaidSubscriptions
                      - isMuted
                      - messagesSumm
                      - newPrice
                      - postsSumm
                      - price
                      - regularPrice
                      - renewedAt
                      - status
                      - streamsSumm
                      - subscribeAt
                      - subscribePrice
                      - subscribes
                      - subscribesSumm
                      - tipsSumm
                      - totalSumm
                      - unsubscribeReason
                  subscribedOnDuration:
                    type: string
                  subscribedOnExpiredNow:
                    type: boolean
                  subscribePrice:
                    type: number
                  subscriptionBundles:
                    type: array
                    items:
                      type: object
                      properties:
                        canBuy:
                          type: boolean
                        discount:
                          type: number
                        duration:
                          type: number
                        id:
                          type: number
                        price:
                          type: number
                      additionalProperties: true
                      required:
                        - canBuy
                        - discount
                        - duration
                        - id
                        - price
                  tipsEnabled:
                    type: boolean
                  tipsMax:
                    type: number
                  tipsMin:
                    type: number
                  tipsMinInternal:
                    type: number
                  tipsTextEnabled:
                    type: boolean
                  username:
                    type: string
                additionalProperties: true
                required:
                  - avatar
                  - avatarThumbs
                  - canAddSubscriber
                  - canCommentStory
                  - canEarn
                  - canLookStory
                  - canPayInternal
                  - canReceiveChatMessage
                  - canReport
                  - canRestrict
                  - canTrialSend
                  - canUnsubscribe
                  - currentSubscribePrice
                  - displayName
                  - hasNotViewedStory
                  - hasScheduledStream
                  - hasStories
                  - hasStream
                  - header
                  - headerSize
                  - headerThumbs
                  - hideChat
                  - id
                  - isActive
                  - isBlocked
                  - isPaywallRequired
                  - isPendingAutoprolong
                  - isPerformer
                  - isRealPerformer
                  - isRestricted
                  - isVerified
                  - lastSeen
                  - listsStates
                  - name
                  - notice
                  - subscribedBy
                  - subscribedByAutoprolong
                  - subscribedByData
                  - subscribedByExpire
                  - subscribedByExpireDate
                  - subscribedIsExpiredNow
                  - subscribedOn
                  - subscribedOnData
                  - subscribedOnDuration
                  - subscribedOnExpiredNow
                  - subscribePrice
                  - subscriptionBundles
                  - tipsEnabled
                  - tipsMax
                  - tipsMin
                  - tipsMinInternal
                  - tipsTextEnabled
                  - username
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '429':
          description: Rate Limit Exceeded
        '500':
          description: Internal Server Error
        '502':
          description: Bad Gateway
      deprecated: false
      security:
        - ExternalOAuth: []
          LinkedAccountId: []
components:
  securitySchemes:
    ExternalOAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: Link access token for one Sandbox, Test, or Live authorization.
    LinkedAccountId:
      type: apiKey
      name: x-linked-account-id
      in: header
      description: >-
        Selects one of the authorization's linked accounts via the
        x-linked-account-id header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.