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

# Import a page file

> Load a Posy page file (brief or full page JSON)

Format: https://posy.page/docs/format



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/page/import
openapi: 3.1.0
info:
  title: Posy API
  version: '1'
  description: >-
    Make and edit a Posy link-in-bio page. Everything edits the draft until you
    call publish.
servers:
  - url: https://posy.page
    description: posy.page (or your own server)
security: []
paths:
  /api/v1/page/import:
    post:
      summary: Import a page file
      description: |-
        Load a Posy page file (brief or full page JSON)

        Format: https://posy.page/docs/format
      operationId: import-a-page-file
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                file:
                  description: The brief as an object, or the raw text a chat produced
                username:
                  type: string
                replace:
                  type: boolean
              required:
                - file
      responses:
        '201':
          description: Loaded
        '400':
          description: The file could not be read; the message says why
      security:
        - bearer: []
        - oauth:
            - page:write
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: A "posy_…" API key from the dashboard
    oauth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://posy.page/api/auth/oauth2/authorize
          tokenUrl: https://posy.page/api/auth/oauth2/token
          scopes:
            page:write: Read and edit your page

````

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