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

# Close a post's poll

> Close the poll on one of your posts before its end time.

Voting stops at once and the final result is stored: the post returned carries the poll as `closed`, with its `closedAt`, final votes and winners. The creator is notified, and the `creator.post.poll_closed` webhook fires once.

A closed poll cannot be reopened. Returns 404 if the post does not exist, is not the creator's or has no poll, 409 if the poll is already closed (including one past its end time), and 400 if the post is scheduled and not published yet.

> [!NOTE]
>
> **Required scope**
>
> * `write:post` — Create, edit, and manage posts and content on behalf of users.


## OpenAPI

````yaml /openapi-v1.json post /v1/posts/{uuid}/poll/close
openapi: 3.1.0
info:
  title: Fanvue API
  version: '0.1'
servers:
  - url: https://api.fanvue.com
security: []
paths:
  /v1/posts/{uuid}/poll/close:
    post:
      summary: Close a post's poll
      description: >-
        Close the poll on one of your posts before its end time.


        Voting stops at once and the final result is stored: the post returned
        carries the poll as `closed`, with its `closedAt`, final votes and
        winners. The creator is notified, and the `creator.post.poll_closed`
        webhook fires once.


        A closed poll cannot be reopened. Returns 404 if the post does not
        exist, is not the creator's or has no poll, 409 if the poll is already
        closed (including one past its end time), and 400 if the post is
        scheduled and not published yet.
      operationId: closePostPoll
      parameters:
        - $ref: '#/components/parameters/ApiVersionHeader'
        - schema:
            type: string
            format: uuid
            description: UUID of the post whose poll to close
          required: true
          description: UUID of the post whose poll to close
          name: uuid
          in: path
      responses:
        '200':
          description: Poll closed. The post, with the poll's final result
          content:
            application/json:
              schema:
                type: object
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: Unique identifier of the post
                  createdAt:
                    type: string
                    format: date-time
                    description: Date/time when the post was created (ISO 8601 format)
                  text:
                    type:
                      - string
                      - 'null'
                    description: Text content of the post
                  price:
                    type:
                      - number
                      - 'null'
                    description: Price in cents for paid posts
                  mediaPreviewUuid:
                    type:
                      - string
                      - 'null'
                    format: uuid
                    description: UUID of free preview media
                  audience:
                    $ref: '#/components/schemas/PostAudience'
                  publishAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: >-
                      Future date/time when the post will be published (ISO 8601
                      format)
                  publishedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: Date/time when the post was published (ISO 8601 format)
                  expiresAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: Date/time when the post expires (ISO 8601 format)
                  mediaUuids:
                    type: array
                    items:
                      type: string
                      format: uuid
                    description: Array of media UUIDs attached to the post
                  isPinned:
                    type: boolean
                    description: Whether the post is pinned to the top of the feed
                  likesCount:
                    type: number
                    description: Number of likes the post has received
                  commentsCount:
                    type: number
                    description: Number of comments on the post
                  tips:
                    type: object
                    properties:
                      count:
                        type: number
                        description: Number of paid tips received on this post
                      totalGross:
                        type: number
                        description: Total gross amount of paid tips in cents
                      totalNet:
                        type: number
                        description: >-
                          Total net amount of paid tips in cents (after platform
                          fees)
                    required:
                      - count
                      - totalGross
                      - totalNet
                    description: Tips statistics for this post
                  collections:
                    type: array
                    items:
                      type: object
                      properties:
                        uuid:
                          type: string
                          format: uuid
                          description: Unique identifier of the collection
                        label:
                          type: string
                          description: Display name of the collection
                      required:
                        - uuid
                        - label
                    description: Content collections this post belongs to
                  poll:
                    $ref: '#/components/schemas/PostPoll'
                required:
                  - uuid
                  - createdAt
                  - text
                  - price
                  - mediaPreviewUuid
                  - audience
                  - publishAt
                  - publishedAt
                  - expiresAt
                  - mediaUuids
                  - isPinned
                  - likesCount
                  - commentsCount
                  - tips
                  - collections
                  - poll
              example:
                uuid: 123e4567-e89b-12d3-a456-426614174000
                createdAt: '2025-01-01T12:00:00.000Z'
                text: Help me pick my next shoot!
                price: null
                audience: followers-and-subscribers
                publishAt: null
                publishedAt: '2025-01-01T12:00:00.000Z'
                expiresAt: null
                mediaUuids: []
                mediaPreviewUuid: null
                isPinned: false
                likesCount: 42
                commentsCount: 15
                tips:
                  count: 0
                  totalGross: 0
                  totalNet: 0
                collections: []
                poll:
                  question: Which set should I shoot next?
                  type: text
                  status: closed
                  endsAt: '2025-01-04T12:00:00.000Z'
                  closedAt: '2025-01-02T09:30:00.000Z'
                  totalVotes: 128
                  heroMediaUuid: null
                  answers:
                    - position: 1
                      text: Beach
                      emoji: 🏖️
                      mediaUuid: null
                      votes: 80
                      isWinner: true
                    - position: 2
                      text: Studio
                      emoji: null
                      mediaUuid: null
                      votes: 48
                      isWinner: false
        '400':
          description: >-
            Bad Request - API version not supported OR validation failed OR
            invalid UUID OR the post is not published yet
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/UnsupportedVersionError'
                  - $ref: '#/components/schemas/ValidationError'
                  - $ref: '#/components/schemas/InvalidUuidError'
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '403':
          $ref: '#/components/responses/UnauthorizedResponse'
        '404':
          $ref: '#/components/responses/NotFoundResponse'
        '409':
          description: The poll is already closed
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '410':
          $ref: '#/components/responses/SunsetVersionResponse'
        '429':
          $ref: '#/components/responses/RateLimitResponse'
        '503':
          description: >-
            Polls cannot be changed right now. Nothing was changed; retry after
            the number of seconds in the `Retry-After` header
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - BearerAuth:
            - write:post
components:
  parameters:
    ApiVersionHeader:
      name: X-Fanvue-API-Version
      in: header
      required: true
      schema:
        type: string
        default: '2025-06-26'
        example: '2025-06-26'
      description: API version to use for the request
  schemas:
    PostAudience:
      type: string
      enum:
        - subscribers
        - followers-and-subscribers
      description: Audience that can view the post
    PostPoll:
      type:
        - object
        - 'null'
      properties:
        question:
          type:
            - string
            - 'null'
          description: Question the poll asks
        type:
          type: string
          enum:
            - text
            - image
          description: >-
            `text`: answers are text with an optional emoji. `image`: each
            answer is an image
        status:
          type: string
          enum:
            - open
            - closing_soon
            - closed
          description: >-
            `closing_soon` covers the last 3 hours, or the last half of a poll
            shorter than 6 hours. A poll on a post that is not published yet
            reads `open`: the post's `publishAt` says when it starts
        endsAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Date/time when voting is due to end (ISO 8601 format). Null when the
            poll has no end time and stays open until the creator closes it.
            Unchanged when the creator closes the poll early; compare with
            `closedAt` for that
        closedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Date/time when the poll was closed (ISO 8601 format). Earlier than
            `endsAt` when the creator closed it early. Null while the poll is
            open, and for up to a minute after `endsAt`
        totalVotes:
          type: integer
          description: Votes across all answers
        heroMediaUuid:
          type:
            - string
            - 'null'
          format: uuid
          description: UUID of the photo above a text poll. Null when there is none
        answers:
          type: array
          items:
            type: object
            properties:
              position:
                type: integer
                description: Position of the answer in the poll, from 1 to 4
              text:
                type:
                  - string
                  - 'null'
                description: Answer text. Null on image polls
              emoji:
                type:
                  - string
                  - 'null'
                description: Emoji shown with the answer
              mediaUuid:
                type:
                  - string
                  - 'null'
                format: uuid
                description: >-
                  UUID of the answer's image on an image poll. Null on text
                  polls
              votes:
                type: integer
                description: Votes for this answer
              isWinner:
                type: boolean
                description: >-
                  Whether the answer won. Set once the poll is closed: every
                  tied answer on a tie, none when nobody voted. Always false
                  while the poll is open
            required:
              - position
              - text
              - emoji
              - mediaUuid
              - votes
              - isWinner
          description: Answers in display order, 2 to 4
      required:
        - question
        - type
        - status
        - endsAt
        - closedAt
        - totalVotes
        - heroMediaUuid
        - answers
      description: Poll attached to the post. Null when it has none
    UnsupportedVersionError:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
      required:
        - error
        - message
      description: API version not supported
    ValidationError:
      type: object
      properties:
        errors:
          type: array
          items:
            type: string
      required:
        - errors
      description: Request validation failed
    InvalidUuidError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      description: Invalid UUID format provided
  responses:
    UnauthorizedResponse:
      description: Unauthorized Response
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
            required:
              - error
    NotFoundResponse:
      description: Not Found Response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
            required:
              - message
    SunsetVersionResponse:
      description: API version no longer supported (sunset)
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              message:
                type: string
              nextVersion:
                type: string
            required:
              - error
              - message
    RateLimitResponse:
      description: Too many requests - rate limit exceeded
      headers:
        Retry-After:
          description: >-
            Seconds to wait before retrying. Absent on a cost-exceeds-limit 429,
            where a retry cannot pass
          schema:
            type: integer
        RateLimit-Limit:
          description: The limit of the tightest rate limit reported on the request
          schema:
            type: integer
        RateLimit-Remaining:
          description: Points left in the tightest rate limit reported on the request
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the tightest rate limit's window resets
          schema:
            type: integer
        X-RateLimit-Limit:
          description: >-
            The limit of the tightest rate limit reported on the request (same
            as RateLimit-Limit)
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Points left in the tightest rate limit (same as RateLimit-Remaining)
          schema:
            type: integer
        X-RateLimit-Reset:
          description: >-
            Unix timestamp (seconds) when the tightest rate limit's window
            resets
          schema:
            type: integer
        X-RateLimit-Scope:
          description: >-
            The scope that named the limit: app, installation, creator, agency,
            actor, ip, route, or concurrency
          schema:
            type: string
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                enum:
                  - Too many requests
                  - Too many concurrent requests
              rateLimit:
                oneOf:
                  - type: object
                    description: >-
                      The limit that refused the request, with the seconds until
                      it resets
                    properties:
                      scope:
                        type: string
                        enum:
                          - app
                          - installation
                          - creator
                          - agency
                          - actor
                          - ip
                          - route
                      layer:
                        type: string
                      limit:
                        type: integer
                      windowSeconds:
                        type: integer
                      retryAfterSeconds:
                        type: integer
                      docs:
                        type: string
                    required:
                      - scope
                      - layer
                      - limit
                      - windowSeconds
                      - retryAfterSeconds
                      - docs
                  - type: object
                    description: >-
                      The request's own cost is above the refusing limit, so no
                      reset would let it pass
                    properties:
                      scope:
                        type: string
                        enum:
                          - app
                          - installation
                          - creator
                          - agency
                          - actor
                          - ip
                          - route
                      layer:
                        type: string
                      limit:
                        type: integer
                      windowSeconds:
                        type: integer
                      cost:
                        type: integer
                      reason:
                        type: string
                        const: cost_exceeds_limit
                      docs:
                        type: string
                    required:
                      - scope
                      - layer
                      - limit
                      - windowSeconds
                      - cost
                      - reason
                      - docs
                  - type: object
                    description: >-
                      The in-flight concurrency guard refused the request. It
                      carries no limit numbers
                    properties:
                      scope:
                        type: string
                        const: concurrency
                    required:
                      - scope
            required:
              - error
              - rateLimit
  securitySchemes:
    BearerAuth:
      type: oauth2
      description: >-
        OAuth 2.0 access token, presented as a JWT bearer token in the
        `Authorization` header. Obtain a token via the authorization-code flow;
        the scopes granted to the token determine which operations it may call.
      flows:
        authorizationCode:
          authorizationUrl: https://auth.fanvue.com/oauth2/auth
          tokenUrl: https://auth.fanvue.com/oauth2/token
          refreshUrl: https://auth.fanvue.com/oauth2/token
          scopes:
            read:self: >-
              Access your own user profile information, including basic account
              details and settings.
            read:chat: >-
              Read chat conversations, messages, and chat-related data. This
              includes viewing chat lists and message history.
            write:chat: >-
              Create new chats and send messages. This scope is required for any
              chat-related actions that modify data.
            read:experience: >-
              Exchange a fan's experience token for the resolved experience and
              the fan's identity, so an embedded fan-facing experience can
              render the right content.
            write:experience: >-
              Request that the creator publish or unpublish a fan-facing
              experience. The app mints a request token; the creator confirms
              and Fanvue performs the change.
            read:fan: Access fan-related data and information within the platform.
            read:post: Read posts, including post details, comments, likes, and tips.
            write:post: Create, edit, and manage posts and content on behalf of users.
            read:media: Access media files, images, videos, and other content assets.
            write:media: >-
              Upload, modify, and manage media files and content assets. Also
              required for vault folder management.
            read:creator: >-
              Access creator profiles, content, and creator-specific
              information.
            write:creator: Modify creator profiles, settings, and creator-specific data.
            read:insights: >-
              Access analytics, metrics, and insights data for performance
              tracking.
            read:tracking_links: >-
              Read tracking links and the users associated with them, including
              per-user tracking metadata.
            write:tracking_links: Create and delete tracking links.
            read:agency: Read agency information, including the agency's team members.
            write:agency: >-
              Manage agency team members and invites, including inviting new
              team members and creators.

````

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