How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

OctoPrint API

OctoPrint API as documented publicly: 54 operations. Contract generated from the documentation by API Evangelist (2026-10-28);not the provider's own document.

OctoPrint API is one of 2 APIs that OctoPrint publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 6 JSON Schema definitions.

The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

This API exposes 54 operations across 37 paths, organized into 2 resource areas, and defines 67 schemas. It is described by OpenAPI 3.1.0, at version 2026-10-28.

54 operations 37 paths 67 schemas 1 DELETE26 GET27 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2026-10-28
Authentication
API Key
Resource Areas
2

Authentication & Security 1

OctoPrint API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-Api-Key (apiKey). By default, every request must be authenticated.

Paths & Operations 54

Across 37 paths, the API surfaces 54 operations — 1 DELETE, 26 GET, 27 POST. They span 2 resource areas: Api, Setup. Each is listed below with its method, path, parameters, and response codes.

Api 52
GET
/api/access/groups
Retrieves all groups registered in the system.
get_api_access_groups → 200
POST
/api/access/groups
Adds a new group to the system.
post_api_access_groups body → 201
GET
/api/access/permissions
Retrieves all permissions available in the system.
get_api_access_permissions → 200
GET
/api/access/users
Retrieves a list of all registered users in OctoPrint.
get_api_access_users → 200
POST
/api/access/users
Adds a user to OctoPrint.
post_api_access_users body → 201
GET
/api/connection
Retrieve the current connection settings, including information regarding the available baudrates and serial ports and the current connection state.
get_api_connection → 200
POST
/api/connection
Issue a connection command.
post_api_connection body → 204
GET
/api/currentuser
Retrieves information about the current user.
get_api_currentuser → 200
GET
/api/files
Retrieve information regarding all files currently available and regarding the disk space still available locally in the system.
get_api_files 2 params → 200
POST
/api/files
Upload a file to the selected location or create a new empty folder on it.
post_api_files body → 201
GET
/api/files/local
Retrieve information regarding the files currently available on the selected location and regarding the disk space still available locally in the system.
get_api_files_local 2 params → 200
POST
/api/files/local
Upload a file to the selected location or create a new empty folder on it.
post_api_files_local body → 201
POST
/api/files/local/some_folder/and_a_subfolder
Issue a file command to an existing file.
post_api_files_local_some_folder_and_a_subfolder body → 201
POST
/api/files/local/some_folder/some_model.gcode
Issue a file command to an existing file.
post_api_files_local_some_folder_some_model_gcode body → 201
POST
/api/files/local/some_folder/some_model.stl
Issue a file command to an existing file.
post_api_files_local_some_folder_some_model_stl body → 202
DELETE
/api/files/local/whistle_v2.gcode
Delete the selected path on the selected location.
delete_api_files_local_whistle_v2_gcode → 204
GET
/api/files/local/whistle_v2.gcode
Retrieves the selected file's or folder's information.
get_api_files_local_whistle_v2_gcode 1 param → 200
POST
/api/files/local/whistle_v2.gcode
Issue a file command to an existing file.
post_api_files_local_whistle_v2_gcode body → 204
POST
/api/files/sdcard
Upload a file to the selected location or create a new empty folder on it.
post_api_files_sdcard body → 201
GET
/api/job
Retrieve information about the current job (if there is one).
get_api_job → 200
POST
/api/job
Job commands allow starting, pausing and cancelling print jobs.
post_api_job body → 204
GET
/api/languages
Retrieves a list of installed language packs.
get_api_languages → 200
POST
/api/languages
Uploads a new language pack to OctoPrint.
post_api_languages 1 param body → 200
POST
/api/login
Creates a login session or retrieves information about the currently existing session ("passive login").
post_api_login 4 params body → 200
POST
/api/logout
Ends the current login session of the current user.
post_api_logout → 204
POST
/api/plugin/mysimpleapiplugin
Called by OctoPrint upon a POST request to /api/plugin/ with a command and JSON data.
post_api_plugin_mysimpleapiplugin body → 204
GET
/api/printer
Retrieves the current state of the printer.
get_api_printer 3 params → 200
GET
/api/printer/bed
Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history for the printer's heated bed.
get_api_printer_bed 2 params → 200
POST
/api/printer/bed
Issue a bed command.
post_api_printer_bed body → 204
GET
/api/printer/chamber
Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history for the printer's heated chamber.
get_api_printer_chamber 2 params → 200
POST
/api/printer/chamber
Issue a chamber command.
post_api_printer_chamber body → 204
POST
/api/printer/command
Sends any command to the printer via the serial interface.
post_api_printer_command body → 204
GET
/api/printer/command/custom
Retrieves the custom controls as configured in config.yaml.
get_api_printer_command_custom → 200
GET
/api/printer/error
Retrieves information about the last error that occurred on the printer.
get_api_printer_error → 200
POST
/api/printer/printhead
Issue a print head command.
post_api_printer_printhead body → 204
GET
/api/printer/sd
Retrieves the current state of the printer's SD card.
get_api_printer_sd → 200
POST
/api/printer/sd
Issue an SD command.
post_api_printer_sd body → 204
GET
/api/printer/tool
Retrieves the current temperature data (actual, target and offset) plus optionally a (limited) history for all of the printer's available tools.
get_api_printer_tool 2 params → 200
POST
/api/printer/tool
Issue a tool command.
post_api_printer_tool body → 204
GET
/api/printerprofiles
Retrieves an object representing all configured printer profiles.
get_api_printerprofiles → 200
POST
/api/printerprofiles
Adds a new printer profile based on either the current default profile or the profile identified in basedOn.
post_api_printerprofiles body → 200
GET
/api/server
GET /api/server
get_api_server → 200
GET
/api/settings
Retrieves the current configuration of OctoPrint.
get_api_settings → 200
POST
/api/settings
Saves the provided settings in OctoPrint.
post_api_settings body → 201
POST
/api/settings/apikey
Generates a new system wide API key.
post_api_settings_apikey → 201
GET
/api/settings/templates
Fetch data (currently only the sorting order) of all registered template components in the system.
get_api_settings_templates → 200
GET
/api/slicing
Returns a list of all available slicing profiles for all registered slicers in the system.
get_api_slicing → 200
GET
/api/system/commands
Retrieves all configured system commands.
get_api_system_commands → 200
GET
/api/timelapse
Retrieves a list of timelapses and the current config.
get_api_timelapse 1 param → 200
POST
/api/timelapse
Save a new timelapse configuration to use for the next print.
post_api_timelapse 1 param body → 201
POST
/api/util/test
Provides commands to test paths or URLs for correctness.
post_api_util_test body → 200
GET
/api/version
GET /api/version
get_api_version → 200
Setup 2
GET
/setup/wizard
Retrieves additional data about the registered wizards.
get_setup_wizard → 200
POST
/setup/wizard
Inform wizards that the wizard dialog has been finished.
post_setup_wizard body → 201

Schemas 67

The contract defines 67 schemas that model the data the API accepts and returns. The most detailed are PostApiUtilTestRequest (22 properties), PostApiUtilTestResponse (16 properties), GetApiConnectionResponse (13 properties), PostApiFilesLocalWhistleV2GcodeRequest (8 properties). Each schema is shown below with its type and property counts.

GetApiAccessGroupsResponse
object
1 property
PostApiAccessGroupsRequest
object
6 properties 3 required
PostApiAccessGroupsResponse
object
1 property
GetApiAccessPermissionsResponse
object
1 property
GetApiAccessUsersResponse
object
1 property
PostApiAccessUsersRequest
object
4 properties 3 required
PostApiAccessUsersResponse
object
1 property
GetApiConnectionResponse
object
13 properties
PostApiConnectionRequest
object
6 properties 1 required
GetApiCurrentuserResponse
object
3 properties
GetApiFilesResponse
object
2 properties
PostApiFilesRequest
object
6 properties
PostApiFilesResponse
object
4 properties
GetApiFilesLocalResponse
object
2 properties
PostApiFilesLocalRequest
object
6 properties
PostApiFilesLocalResponse
object
4 properties
PostApiFilesLocalSomeFolderAndASubfolderRequest
object
2 properties 1 required
PostApiFilesLocalSomeFolderAndASubfolderResponse
object
4 properties
PostApiFilesLocalSomeFolderSomeModelGcodeRequest
object
2 properties 1 required
PostApiFilesLocalSomeFolderSomeModelGcodeResponse
object
4 properties
PostApiFilesLocalSomeFolderSomeModelStlRequest
object
8 properties 1 required
PostApiFilesLocalSomeFolderSomeModelStlResponse
object
4 properties
GetApiFilesLocalWhistleV2GcodeResponse
object
7 properties
PostApiFilesLocalWhistleV2GcodeRequest
object
8 properties 1 required
PostApiFilesSdcardRequest
object
6 properties
PostApiFilesSdcardResponse
object
4 properties
GetApiJobResponse
object
4 properties
PostApiJobRequest
object
2 properties 1 required
GetApiLanguagesResponse
object
1 property
PostApiLanguagesRequest
object
1 property 1 required
PostApiLanguagesResponse
object
1 property
PostApiLoginRequest
object
4 properties
PostApiLoginResponse
object
5 properties
PostApiPluginMysimpleapipluginRequest
object
2 properties 2 required
PostApiPluginMysimpleapipluginResponse
object
1 property
GetApiPrinterResponse
object
3 properties
GetApiPrinterBedResponse
object
2 properties
PostApiPrinterBedRequest
object
3 properties 1 required
GetApiPrinterChamberResponse
object
2 properties
PostApiPrinterChamberRequest
object
3 properties 1 required
PostApiPrinterCommandRequest
object
2 properties
GetApiPrinterCommandCustomResponse
object
1 property
GetApiPrinterErrorResponse
object
5 properties
PostApiPrinterPrintheadRequest
object
6 properties 1 required
GetApiPrinterSdResponse
object
1 property
PostApiPrinterSdRequest
object
1 property 1 required
GetApiPrinterToolResponse
object
2 properties
PostApiPrinterToolRequest
object
6 properties 1 required
GetApiPrinterprofilesResponse
object
1 property
PostApiPrinterprofilesRequest
object
2 properties 1 required
PostApiPrinterprofilesResponse
object
1 property
GetApiServerResponse
object
2 properties
GetApiSettingsResponse
object
2 properties
PostApiSettingsRequest
object
1 property 1 required
PostApiSettingsResponse
object
2 properties
PostApiSettingsApikeyResponse
object
1 property
GetApiSettingsTemplatesResponse
object
1 property
GetApiSlicingResponse
object
1 property
GetApiSystemCommandsResponse
object
2 properties
GetApiTimelapseResponse
object
3 properties
PostApiTimelapseRequest
object
2 properties 1 required
PostApiTimelapseResponse
object
3 properties
PostApiUtilTestRequest
object
22 properties 1 required
PostApiUtilTestResponse
object
16 properties
GetApiVersionResponse
object
3 properties
GetSetupWizardResponse
object
4 properties
PostSetupWizardRequest
object
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

octoprint-openapi-generated.yml Raw ↑

Other APIs OctoPrint publishes across the network.

OctoPrint REST API
Where this information came from

This is an independent, third-party profile of OctoPrint API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.