-
Notifications
You must be signed in to change notification settings - Fork 3.2k
api drivers
KernelDeimos edited this page May 14, 2025
·
1 revision
-
HTTP response status -
A successful driver response, even if the response is an error message, will always have HTTP status
200. Note that sometimes this will include rate limit and usage limit errors as well.
This endpoint allows you to call a Puter driver. Whether or not the driver call fails, this endpoint will respond with HTTP 200 OK. When a driver call fails, you will get a JSON response from the driver with
Parameters are provided in the request body. The content type of the
request should be application/json.
-
interface:
string-
description: The type of driver to call. For example,
LLMs use the interface called
puter-chat-completion.
-
description: The type of driver to call. For example,
LLMs use the interface called
-
service:
string-
description: The name of the service to use. For example, the
claudeservice might be used forputer-chat-completion.
-
description: The name of the service to use. For example, the
-
method:
string-
description: The name of the method to call. For example, LLMs implement
completewhich does a chat completion, andlistwhich lists models.
-
description: The name of the method to call. For example, LLMs implement
-
args:
object-
description: Parametized arguments for the driver call. For example,
puter-chat-completion'scompletemethod supports the argumentsmessagesandtemperature(and others), so you might set this to{ "messages": [...], "temperature": 1.2 }
-
description: Parametized arguments for the driver call. For example,
{
"interface": "<name of interface>",
"service": "<name of service>",
"method": "<name of method>",
"args": { "parametized": "arguments" }
}-
Error Response - Driver error responses will always have status 200, content type
application/json, and a response body in this format:{ "success": false, "error": { "code": "string identifier for the error", "message": "some message about the error", } } -
Success Response - The success response is either a JSON response
wrapped in
{ "success": true, "result": ___ }, or a response with aContent-Typethat is notapplication/json.{ "success": true, "result": {} }
This wiki is generated from the repository. Do not edit files the wiki.
You are reading documentation for Puter, an open-source high-level operating system.
Getting started with Puter on localhost is as simple as:
git clone https://github.com/HeyPuter/puter.git
npm install
npm run start- Index (README.md)
- api drivers
- Group Endpoints
- Notification Endpoints
- Share Endpoints
- Type-Tagged Objects
- Comment Prefixes
- contributors vscode
- Local Email Testing
- Puter Extensions
- Repository Structure and Tooling
- Configuring Domains for Self-Hosted Puter
- Configuring Puter
- First Run Issues
- self_hosters config_values
- self_hosters support
- Self-Hosting Puter
- Backend Style
- Puter Backend - Directory Structure
- Puter Backend Boot Sequence
- Puter Kernel Moduels and Services
- Batch and Symlinks
- Metered Services and Cost Management
- Protected Apps and Subdomains
- Service Scripts
- Index (README.md)
- Configuring AI Services
- PuterAI API Request Examples
- src backend src modules puterai config
####### For Contributors