Skip to main content

API Endpoints

This section lists the primary REST endpoints grouped by domain. All endpoints are relative to https://llmtune.io/api.

Authentication

MethodEndpointDescription
POST/auth/loginAuthenticate users (rarely used directly; use the UI)
POST/auth/logoutTerminate session
GET/auth/meCurrent user profile

Datasets

MethodEndpointDescription
GET/datasetsList datasets in workspace
POST/datasets/uploadUpload new dataset version
GET/datasets/{id}Get dataset details
PATCH/datasets/{id}Update metadata (name, tags, description)
DELETE/datasets/{id}Delete dataset

Training

MethodEndpointDescription
POST/training/startLaunch fine-tuning job
GET/training/{jobId}Fetch job status and metrics
POST/training/{jobId}/cancelCancel a running job

Deployments

MethodEndpointDescription
GET/deploymentsList deployments
POST/deploymentsPromote training run to deployment
GET/deployments/{id}Deployment details and status
PATCH/deployments/{id}Update deployment (pause, resume)
DELETE/deployments/{id}Retire deployment

Inference

MethodEndpointDescription
POST/models/{deploymentId}/inferenceRun chat completion
POST/models/{deploymentId}/batchSubmit batch inference job
GET/models/{deploymentId}/batch/{job}Batch job status

Usage

MethodEndpointDescription
GET/usage/summaryWorkspace usage overview
GET/usage/requestsRequest metrics
GET/usage/tokensToken usage
GET/usage/spendBilling summary

Webhooks

MethodEndpointDescription
GET/webhooksList registered webhook endpoints
POST/webhooksCreate new webhook
PATCH/webhooks/{id}Update webhook settings
DELETE/webhooks/{id}Delete webhook
POST/webhooks/{id}/testSend test event

Playground

MethodEndpointDescription
POST/playground/sessionsCreate or reset a session
POST/playground/messagesSubmit message with attachments
Each response includes metadata for tracing: request ID, timestamp, and user or token identity.