Palbase ai
Palbase's ai module: a project's use of models — an answer, a typed JSON document, a stream of either, a response finished in the background, vectors of texts and pictures — with what each use cost and the project's own provider keys. The models are the platform's: no machine is configured and none is opened for this work.
The contract itself: /openapi/ai.openapi.json
Agents
POST
/ai/agent-draftsWrite an agent from a descriptionGET/ai/agentsThe project's agentsGET/ai/agents/{name}An agentPUT/ai/agents/{name}Save an agent's draftDELETE/ai/agents/{name}Forget an agentPOST/ai/agents/{name}/publishPublish an agent's draftPOST/ai/agents/{name}/rollbackGo back to a versionGET/ai/agents/{name}/versionsAn agent's versionsGET/ai/endpointsThe project's tool endpointsPUT/ai/endpoints/{name}Put a tool endpointDELETE/ai/endpoints/{name}Forget a tool endpointGET/ai/toolsThe tools an agent may be givenPOST/ai/endpoints/{name}/user-credentials/{user_id}Store a per-user sealed MCP credentialDELETE/ai/endpoints/{name}/user-credentials/{user_id}Delete a per-user sealed MCP credentialGET/ai/endpoints/{name}/oauth/startStart MCP OAuth 2.1 PKCE flowGET/ai/mcp/oauth/callbackComplete MCP OAuth 2.1 PKCE callbackAudio
Chats
GET
/ai/chatsThe chatsPOST/ai/chatsStart a chatGET/ai/chats/{chat_id}A chatDELETE/ai/chats/{chat_id}Delete a chatPOST/ai/chats/{chat_id}/approvals/{approval_id}Decide a tool callGET/ai/chats/{chat_id}/executionRead a chat session's live execution target and machine statePATCH/ai/chats/{chat_id}/executionUpdate a chat session's auto-failover policy or default model/effortPOST/ai/chats/{chat_id}/forkFork a chat before a messageGET/ai/chats/{chat_id}/goalRead the chat's goalPUT/ai/chats/{chat_id}/goalSet the chat's goalPATCH/ai/chats/{chat_id}/goalChange the chat's goalDELETE/ai/chats/{chat_id}/goalClear the chat's goalPOST/ai/chats/{chat_id}/handoffTeleport a chat session to a new execution targetPUT/ai/chats/{chat_id}/members/{user_id}Put a user in a chatDELETE/ai/chats/{chat_id}/members/{user_id}Take a user out of a chatGET/ai/chats/{chat_id}/messagesA chat's messagesPOST/ai/chats/{chat_id}/messagesWrite to a chatGET/ai/chats/{chat_id}/messages/{message_id}/attachments/{position}A picture or a file a message carriesGET/ai/chats/{chat_id}/partsThe chat's pastPUT/ai/chats/{chat_id}/pipePipe the chat into a channelDELETE/ai/chats/{chat_id}/pipeTake the chat's pipe awayPOST/ai/chats/{chat_id}/runs/{run_id}/messagesWrite to a subagent at workPOST/ai/chats/{chat_id}/runs/{run_id}/stopStop a subagent at workPOST/ai/chats/{chat_id}/stopStop the agentGET/ai/chats/{chat_id}/tool-callsA turn's tool callsGET/ai/chats/{chat_id}/tool-calls/{call_id}A tool call of the chat, wholePOST/ai/chats/{chat_id}/tool-outputs/{call_id}Answer an app's tool callGET/ai/chats/{chat_id}/turns/{response_id}/artifactsA turn's artifactsGET/ai/chats/{chat_id}/turns/{response_id}/artifacts/{artifact_id}An artifact of a turnGET/ai/chats/{chat_id}/turns/{response_id}/costWhat a turn of a chat costPOST/ai/chats/{chat_id}/voiceStart a chat's voiceGET/ai/chats/{chat_id}/voice/{voice_id}Read a chat's voiceDELETE/ai/chats/{chat_id}/voice/{voice_id}Close a chat's voicePOST/ai/chats/{chat_id}/voice/{voice_id}/commandsTell a chat's voiceEmbeddings
Environment
GET
/ai/envThe project's variablesGET/ai/env/allowancesThe agents' secrets' allowancesDELETE/ai/env/allowances/{allowance_id}Take an allowance awayGET/ai/env/host-requestsThe hosts the project's secrets asked forPOST/ai/env/host-requests/{request_id}/allowAllow an askPOST/ai/env/host-requests/{request_id}/dismissDismiss an askPUT/ai/env/{key}Set a variableDELETE/ai/env/{key}Remove a variablePOST/ai/env/{key}/hostsAllow a secret a hostEnvironments
Images
Pools
GET
/ai/machines/{machine}Read a machineDELETE/ai/machines/{machine}Delete a machinePOST/ai/machines/{machine}/cordonCordon a machinePOST/ai/machines/{machine}/resumeResume a machinePOST/ai/pool-keys/{key}/revokeRevoke an enrolment keyGET/ai/poolsThe project's runner poolsPOST/ai/poolsMake a runner poolDELETE/ai/pools/{pool}Delete a runner poolGET/ai/pools/{pool}/keysA pool's enrolment keysPOST/ai/pools/{pool}/keysMint an enrolment keyGET/ai/pools/{pool}/stateA runner pool's statePOST/ai/machine-keysMint an enrolment key for a person's own machineGET/ai/machinesList a person's machinesModels
Providers
Responses
Settings
Usage
Support
Gateway
POST
/ai/v1/audio/speechOpenAI-compatible text-to-speechPOST/ai/v1/audio/transcriptionsOpenAI-compatible audio transcriptionPOST/ai/v1/chat/completionsOpenAI-compatible chat completionsPOST/ai/v1/embeddingsOpenAI-compatible embeddingsPOST/ai/v1/images/generationsOpenAI-compatible image generationPOST/ai/v1/messagesAnthropic-compatible messagesGET/ai/v1/modelsList live models (OpenAI-compatible)POST/ai/v1/responsesOpenAI Responses wireVideos
Triggers
GET
/ai/triggersList triggersPOST/ai/triggersCreate a triggerGET/ai/triggers/{trigger_id}Get a triggerPATCH/ai/triggers/{trigger_id}Update a triggerDELETE/ai/triggers/{trigger_id}Delete a triggerPOST/ai/triggers/{trigger_id}/testDry-run or test-fire a triggerPOST/ai/triggers/{trigger_id}/hookInvoke a signed webhook triggerWaits
Workflows
GET
/ai/workflows/runsList durable workflow runsPOST/ai/workflows/runsStart a durable workflow runGET/ai/workflows/runs/{run_id}Get a workflow runPOST/ai/workflows/runs/{run_id}/steps/{step_key}Record or replay a memoized workflow stepPOST/ai/workflows/runs/{run_id}/completeComplete or fail a workflow runPOST/ai/workflows/runs/{run_id}/replayReplay a workflow run from Step NPOST/ai/runs/{root_id}/stop-treeStop an entire workflow and delegation treeMemory
Actors
Templates
GET
/ai/templatesList server-locked AI templatesGET/ai/templates/{name}Get an AI templatePUT/ai/templates/{name}Create or save a new draft version of an AI templateDELETE/ai/templates/{name}Delete an AI template and its versionsPOST/ai/templates/{name}/publishPublish a template version for direct client accessPOST/ai/templates/{name}/rollbackRoll back the published version of a templateGET/ai/templates/{name}/versionsList immutable versions of an AI templateGET/ai/users/spendList per-user direct AI spendGET/ai/users/{user_id}/quotaGet a user's direct AI quota overridePUT/ai/users/{user_id}/quotaSet a user's direct AI quota override or block stateDELETE/ai/users/{user_id}/quotaRemove a user's direct AI quota overridePOST/ai/client/attest-challengeMint a single-use device attestation challengePOST/ai/client/templates/{name}/runRun a published server-locked AI template from a client appPOST/ai/client/templates/{name}/voiceStart a WebRTC live voice session locked to a published voice_live template