Skip to main content
The POST /2.0/notes/convert endpoint converts Markdown content to a Box Note (.boxnote) and uploads it to a specified folder in one atomic operation. The note is either fully created or an error is returned.

Prerequisites

Before you start, make sure you have:
  • A valid access token with file upload permissions for the target folder.
  • The box-version: 2026.0 header included in your request.
  • The folder ID of the target parent folder in Box.
For setup instructions, see the guide.

Request

Headers

Request body

All fields are required.

Example request

Response

Success (201 Created)

A successful response contains the file type and the Box file ID of the newly created .boxnote file.
The response is intentionally minimal. To retrieve full file metadata (owner, timestamps, size, and more), make a follow-up call to the endpoint:

Errors

The API uses standard HTTP error codes. All errors follow the Box HttpError model.
Conversion warnings, such as unsupported Markdown elements that are dropped or simplified during conversion, are logged server-side and are not returned in the API response.

Markdown support

The API converts standard Markdown syntax into Box Notes format. Supported elements include:
  • Headings (#, ##, ###, etc.)
  • Bold (**text**) and italic (*text*)
  • Unordered lists (- or *)
  • Ordered lists (1., 2., etc.)
  • Links ([text](url))
  • Code blocks (fenced with triple backticks)
  • Inline code (backticks)
  • Blockquotes (>)
  • Horizontal rules (---)
If your Markdown contains elements that are not supported in Box Notes format, those elements may be simplified or omitted during conversion. The conversion still succeeds. Warnings are logged server-side only.

Code examples

Handling errors

Name conflicts (409)

If a file with the same name already exists in the target folder, the API returns a 409 Conflict error. To resolve this:
  • Choose a different name for the note.
  • Specify a different parent.id (target folder).
  • Delete or rename the existing file before retrying.

Storage quota exceeded (422)

If the user’s storage quota has been reached, the API returns a 422 Unprocessable Entity error. Free up space in the Box account or contact an admin to increase the storage allocation.

Permission errors (403)

Verify that the authenticated user has Editor or Co-Owner access to the target folder. Viewer and Previewer roles do not have upload permissions.

Best practices

The maximum content size is 1 MB. For larger documents, consider splitting content across multiple notes or trimming unnecessary sections before conversion.
Choose descriptive note names that make the content easy to find in Box. Avoid generic names like “Note 1” or “Untitled”.
Conversion can take up to 30 seconds for large or complex Markdown content. Configure your HTTP client timeout accordingly and implement retry logic for transient 5xx errors.
The create response only includes type and id. If you need additional file metadata (timestamps, size, owner), make a follow-up GET /2.0/files/{file_id} call.
Last modified on May 20, 2026