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

# Post apiv2organizations websitesplan



## OpenAPI

````yaml https://api.osiro.com/doc post /api/v2/organizations/{orgId}/websites/plan
openapi: 3.0.0
info:
  title: osiro API
  version: 2.0.0
servers: []
security: []
tags:
  - name: Funnel
    description: Public funnel rendering, submission, Lead verification, and analytics.
  - name: Booking
    description: A lead's cancel and reschedule of their booking, via the manage link.
  - name: Training
    description: Org-scoped sales-training catalogs, sessions, and call records.
  - name: Attribution
    description: Cross-domain PostHog identity handoff for the marketing site.
  - name: Billing
    description: Org-scoped checkouts, plans, trials and the Stripe billing portal.
  - name: Leads
    description: Org-scoped lead reads and actions.
  - name: Ad copy
    description: Org-scoped ad guidelines and Meta ad copy generation.
paths:
  /api/v2/organizations/{orgId}/websites/plan:
    post:
      tags:
        - Websites
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: orgId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWebsiteInput'
      responses:
        '200':
          description: >-
            What creating the Website would do, without writing anything: the
            wizard's summary
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteCreationPlan'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: A Landing page or the Domain is not in the organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteCreationError'
        '409':
          description: >-
            A Landing page is on a Website already, a path or Subdomain is
            taken, or a Landing page holds the domain root
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteCreationError'
        '422':
          description: >-
            A path or Subdomain is invalid, the Domain is not verified, or the
            Style guide is unknown
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteCreationError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    CreateWebsiteInput:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
        site_name:
          type: string
          nullable: true
          maxLength: 120
        style_guide_id:
          type: string
          nullable: true
          format: uuid
        pages:
          type: array
          items:
            type: object
            properties:
              landing_page_id:
                type: string
                format: uuid
              segment:
                type: string
                maxLength: 200
            required:
              - landing_page_id
          maxItems: 200
          default: []
        home_landing_page_id:
          type: string
          nullable: true
          format: uuid
        address:
          oneOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - domain
                asset_id:
                  type: string
                  format: uuid
                root_landing_page:
                  oneOf:
                    - type: object
                      properties:
                        action:
                          type: string
                          enum:
                            - adopt
                      required:
                        - action
                    - type: object
                      properties:
                        action:
                          type: string
                          enum:
                            - move
                        path:
                          type: string
                          maxLength: 200
                      required:
                        - action
                        - path
              required:
                - kind
                - asset_id
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - subdomain
                subdomain:
                  type: string
                  minLength: 1
                  maxLength: 63
              required:
                - kind
                - subdomain
            - nullable: true
      required:
        - name
    WebsiteCreationPlan:
      type: object
      properties:
        pages:
          type: array
          items:
            type: object
            properties:
              landing_page_id:
                type: string
                format: uuid
              name:
                type: string
              path:
                type: string
            required:
              - landing_page_id
              - name
              - path
        address:
          type: object
          properties:
            domain:
              type: object
              nullable: true
              properties:
                asset_id:
                  type: string
                  format: uuid
                hostname:
                  type: string
                verified:
                  type: boolean
              required:
                - asset_id
                - hostname
                - verified
            subdomain:
              type: string
              nullable: true
          required:
            - domain
            - subdomain
        redirects:
          type: array
          items:
            type: object
            properties:
              landing_page_id:
                type: string
                format: uuid
              from:
                oneOf:
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - subdomain
                      subdomain:
                        type: string
                    required:
                      - kind
                      - subdomain
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - domain
                      hostname:
                        type: string
                      path:
                        type: string
                    required:
                      - kind
                      - hostname
                      - path
              to:
                type: string
            required:
              - landing_page_id
              - from
              - to
        website_published:
          type: boolean
      required:
        - pages
        - address
        - redirects
        - website_published
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
    WebsiteCreationError:
      allOf:
        - $ref: '#/components/schemas/ApiError'
        - type: object
          properties:
            landing_page_id:
              type: string
              format: uuid
            landing_page:
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                name:
                  type: string
              required:
                - id
                - name
            paths:
              type: array
              items:
                type: string

````

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