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

# Create Page



## OpenAPI

````yaml actionkit/openapi.json POST /projects/{project_id}/tools/#ONENOTE_CREATE_PAGE
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#ONENOTE_CREATE_PAGE:
    post:
      summary: Create Page
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: ONENOTE_CREATE_PAGE
                parameters:
                  type: object
                  properties:
                    type:
                      type: string
                      description: 'Type : Select the Type of your operation.'
                      enum:
                        - users
                        - groups
                        - sites
                        - me
                    userId:
                      type: string
                      description: >-
                        User ID : Specify the ID of the User to Create Page.
                        (example:
                        "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") 

                        This field appears only when 'type' = 'users')
                    groupId:
                      type: string
                      description: >-
                        Group ID : Specify the ID of the Group to Create Page.
                        (example:
                        "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") 

                        This field appears only when 'type' = 'groups')
                    siteId:
                      type: string
                      description: >-
                        Site ID : Specify the ID of the Site to Create Page.
                        (example:
                        "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") 

                        This field appears only when 'type' = 'sites')
                    contentType:
                      type: string
                      description: 'Content Type : Select the Content Type of your Content.'
                      enum:
                        - html
                        - multipart
                    presentationContent:
                      type: object
                      description: >-
                        Presentation Content : Specify Presentation content for
                        page as HTML see the docs
                        (https://learn.microsoft.com/en-us/graph/onenote-images-files#add-a-public-image-from-the-web).
                        (example: "<!DOCTYPE html>

                        <html>
                          <head>
                            <title>A page with a block of HTML</title>
                            <meta name="created" content="2015-07-22T09:00:00-08:00" />
                          <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack.min.js"></script><!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WCJFR4H');</script>
<!-- End Google Tag Manager --></head>
                          <body>
                            <p>Here's an image from an <i>online source</i>:</p>
                            <img src="https://..." alt="an image on the page" width="500" />
                            <p>Here's an image uploaded as <b>binary data</b>:</p>
                            <img src="name:imageBlock1" alt="an image on the page" width="300" />
                            <p>Here's a file attachment:</p>
                            <object data-attachment="FileName.pdf" data="name:fileBlock1" type="application/pdf" />
                          <!-- Google Tag Manager (noscript) -->
<noscript
  ><iframe
    src="https://www.googletagmanager.com/ns.html?id=GTM-WCJFR4H"
    height="0"
    width="0"
    style="display: none; visibility: hidden"
  ></iframe
></noscript>
<!-- End Google Tag Manager (noscript) --><script type="text/javascript">
document.addEventListener("DOMContentLoaded", () => {
  document.querySelectorAll("a[href^='https://docs-prod.useparagon.com'").forEach((el) => {
    el.href = el.href.replace("https://docs-prod.useparagon.com", "https://docs.useparagon.com");
  });
});
</script><script type="text/javascript">
setInterval(() => {
  document.querySelectorAll("img[src^='https://paragon.mintlify.app']").forEach((el) => {
    el.src = el.src.replace("https://paragon.mintlify.app", "https://docs.useparagon.com");
    el.srcset = el.srcset.replaceAll("https://paragon.mintlify.app", "https://docs.useparagon.com");
  });
}, 200);
</script></body>
                        </html>") 

                        This field appears only when 'contentType' =
                        'multipart')
                      properties: {}
                    multipartcontent:
                      type: object
                      description: >-
                        Multipart Content : Specify Multipart content for page
                        as JSON see the docs
                        (https://learn.microsoft.com/en-us/graph/onenote-create-page).
                        (example: "{
                          "imageBlock1": {
                            "content": <Buffer ...>,
                            "contentType": "image/jpeg",
                            "fileName": "imageBlock1"
                          },
                          "fileBlock1": {
                            "content": <Buffer ...>,
                            "contentType": "application/pdf",
                            "fileName": "fileBlock1"
                          }
                        }") 

                        This field appears only when 'contentType' =
                        'multipart')
                      properties: {}
                    htmlcontent:
                      type: object
                      description: |-
                        Content (example: "<!DOCTYPE html>
                        <html>
                          <head>
                            <title>A page with a block of HTML</title>
                            <meta name="created" content="2015-07-22T09:00:00-08:00" />
                          <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack.min.js"></script><!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WCJFR4H');</script>
<!-- End Google Tag Manager --></head>
                          <body>
                            <p>This page contains some <i>formatted</i> <b>text</b> and an image.</p>
                            <img src="https://..." alt="an image on the page" width="500" />
                          <!-- Google Tag Manager (noscript) -->
<noscript
  ><iframe
    src="https://www.googletagmanager.com/ns.html?id=GTM-WCJFR4H"
    height="0"
    width="0"
    style="display: none; visibility: hidden"
  ></iframe
></noscript>
<!-- End Google Tag Manager (noscript) --><script type="text/javascript">
document.addEventListener("DOMContentLoaded", () => {
  document.querySelectorAll("a[href^='https://docs-prod.useparagon.com'").forEach((el) => {
    el.href = el.href.replace("https://docs-prod.useparagon.com", "https://docs.useparagon.com");
  });
});
</script><script type="text/javascript">
setInterval(() => {
  document.querySelectorAll("img[src^='https://paragon.mintlify.app']").forEach((el) => {
    el.src = el.src.replace("https://paragon.mintlify.app", "https://docs.useparagon.com");
    el.srcset = el.srcset.replaceAll("https://paragon.mintlify.app", "https://docs.useparagon.com");
  });
}, 200);
</script></body>
                        </html>"). Should only appear when contentType is html.
                      properties: {}
                    sectionId:
                      type: string
                      description: >-
                        Section ID : Specify the ID of the Section to Create
                        Page. (example:
                        "1-q3259d12-4211-459f-bdf0-2a2a21054865"). Should be
                        required when type is sites or groups. Optional when
                        type is users or me.
                  required:
                    - type
                    - userId
                    - groupId
                    - siteId
                    - contentType
                    - presentationContent
                    - htmlcontent
                    - sectionId
                  x-integration: onenote
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````