> ## 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.

# Create a story

> Posting stories is not available to every creator yet. Other creators get a 403.

Post a story: a text, a photo or a video that is live for 24 hours. Upload a photo or a video with the media upload endpoints first, and send its `mediaUuid` when its processing is finished. A video can be at most 60 seconds long. A creator can have at most 100 live stories.

Story text is checked for prohibited language. A request that breaks a rule above is rejected with a 400 that names the rule.

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


## OpenAPI

````yaml /openapi-v1.json post /v1/stories
openapi: 3.1.0
info:
  title: Fanvue API
  version: '0.1'
servers:
  - url: https://api.fanvue.com
security: []
paths:
  /v1/stories:
    post:
      summary: Create a story
      description: >-
        Posting stories is not available to every creator yet. Other creators
        get a 403.


        Post a story: a text, a photo or a video that is live for 24 hours.
        Upload a photo or a video with the media upload endpoints first, and
        send its `mediaUuid` when its processing is finished. A video can be at
        most 60 seconds long. A creator can have at most 100 live stories.


        Story text is checked for prohibited language. A request that breaks a
        rule above is rejected with a 400 that names the rule.
      operationId: createStory
      parameters:
        - $ref: '#/components/parameters/ApiVersionHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateStoryRequest'
      responses:
        '201':
          description: Story created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateStoryResponse'
              example:
                uuid: 7b2f4c1e-9d3a-4e8b-a6f5-2c1d0e9b8a7f
                expiresAt: '2025-06-27T10:30:00.000Z'
        '400':
          description: >-
            Bad Request - API version not supported OR validation failed OR a
            story rule refused the story
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/UnsupportedVersionError'
                  - $ref: '#/components/schemas/ValidationError'
                  - $ref: '#/components/schemas/MessageValidationError'
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '403':
          description: >-
            Forbidden - the token lacks a scope or a permission (`error`) OR
            posting stories is not available for the creator (`message`)
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: string
                    required:
                      - error
                  - $ref: '#/components/schemas/MessageValidationError'
        '410':
          $ref: '#/components/responses/SunsetVersionResponse'
        '429':
          $ref: '#/components/responses/RateLimitResponse'
      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:
    CreateStoryRequest:
      type: object
      properties:
        text:
          type: string
          description: >-
            Text of a text story, at most 250 characters. Send `text` or
            `mediaUuid`, not both.
        mediaUuid:
          type: string
          format: uuid
          description: >-
            UUID of a finalised photo or video from the media upload endpoints.
            Send `text` or `mediaUuid`, not both.
        audience:
          allOf:
            - $ref: '#/components/schemas/PostAudience'
            - description: Audience that can view the story
      required:
        - audience
    CreateStoryResponse:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
          description: Unique identifier of the story
        expiresAt:
          type: string
          format: date-time
          description: Date/time when the story expires (ISO 8601 format)
      required:
        - uuid
        - expiresAt
    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
    MessageValidationError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      description: Message validation failed (media ownership, content validation, etc.)
    PostAudience:
      type: string
      enum:
        - subscribers
        - followers-and-subscribers
      description: Audience that can view the post
  responses:
    UnauthorizedResponse:
      description: Unauthorized Response
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
            required:
              - error
    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.