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

# Creates an account note



## OpenAPI

````yaml post /v1/accounts/notes
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/accounts/notes:
    post:
      tags:
        - Accounts
      summary: Create an account note
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAccountNoteDto'
      responses:
        '201':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountNoteResponseDto'
        '404':
          description: Account or note type not found
          content:
            application/json:
              example:
                statusCode: 404
                message: Account not found
                error: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                statusCode: 500
                message: Something went wrong!
                error: Internal Server Error
components:
  schemas:
    CreateAccountNoteDto:
      type: object
      properties:
        accountId:
          type: string
          description: The identifier of the account to create the note for
          example: A123
        content:
          type: string
          description: The content of the note
          example: This is a note
        type:
          type: string
          description: The identifier / value of the Type attribute of the activity
          example: T123
        visibility:
          type: string
          description: The visibility of the note
          example: private
        attachmentUrls:
          description: The URLs of the attachments to attach to the note
          example:
            - https://example.com/attachment1.jpg
            - https://example.com/attachment2.jpg
          type: array
          items:
            type: string
        metadata:
          type: object
          description: The metadata of the note
      required:
        - accountId
        - content
    AccountNoteResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The identifier of the activity
        accountId:
          type: string
          description: The identifier of the account
        account:
          type: string
          description: The name of the account
        content:
          type: string
          description: The content of the note
        type:
          type: string
          description: The type of the note
        typeId:
          type: string
          description: The identifier of the type attribute
        typeConfiguration:
          type: object
          description: The configuration of the type
        visibility:
          type: string
          description: The visibility of the note
        attachments:
          description: The attachments of the note
          type: array
          items:
            type: string
        author:
          type: string
          description: The name of the author
        authorId:
          type: string
          description: The identifier of the author
        authorEmail:
          type: string
          description: The email of the author
        createdAt:
          type: string
          description: The timestamp of the note
        updatedAt:
          type: string
          description: The last updated timestamp of the note
        metadata:
          type: object
          description: The metadata of the note
      required:
        - id
        - accountId
        - account
        - content
        - type
        - typeId
        - typeConfiguration
        - visibility
        - attachments
        - author
        - authorId
        - authorEmail
        - createdAt
        - updatedAt
        - metadata
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````