R
RadMah AIDOCS
Sign In

REST API Reference

Complete endpoint reference for the RadMah AI Client API. Base URL: https://api.radmah.ai

Authentication

All endpoints require authentication via API key or JWT bearer token. See Authentication for details.

Authentication headers
# API Key
X-API-Key: sl_live_...

# JWT Bearer
Authorization: Bearer <access_token>

Jobs

MethodPathDescription
POST/v1/client/jobsCreate a generation job
GET/v1/client/jobsList jobs (paginated)
GET/v1/client/jobs/{id}Get job details and status
POST/v1/client/jobs/{id}/cancelCancel a running job
POST/v1/client/jobs/{id}/rerunRerun a completed job (same sealed contract)

Datasets

MethodPathDescription
POST/v1/client/datasetsUpload a dataset (CSV, Parquet)
GET/v1/client/datasetsList datasets
GET/v1/client/datasets/{id}Get dataset metadata
DELETE/v1/client/datasets/{id}Delete a dataset
POST/v1/client/mock-data/Schema-driven in-memory dataset creation
POST/v1/client/preview/Stateless sample-row preview (no storage)

Artifacts

MethodPathDescription
GET/v1/client/artifactsList artifacts (filter by job_id)
GET/v1/client/artifacts/{id}Get artifact metadata and BLAKE3 hash
GET/v1/client/artifacts/{id}/downloadDownload artifact content

Seals

MethodPathDescription
GET/v1/client/sealsList provenance seals
GET/v1/client/seals/{id}Get seal details (sealed contract hash, created_at)

Chat / Orchestrator

MethodPathDescription
POST/v1/client/chat/sessionsCreate a chat session
POST/sessions/{id}/messagesSend a message
POST/sessions/{id}/turns/{tid}/approveApprove a recipe
POST/sessions/{id}/turns/{tid}/rejectReject a recipe
GET/sessions/{id}/messagesGet message history (paged)
GET/sessions/{id}/streamSSE live event stream

Agentic Data Scientist

MethodPathDescription
POST/v1/client/agent/projectsCreate project and trigger planning
GET/v1/client/agent/projectsList projects
GET/projects/{id}Get project with steps and output
POST/projects/{id}/approveApprove plan and execute
POST/projects/{id}/cancelCancel a project
GET/projects/{id}/streamSSE progress stream

Connectors

MethodPathDescription
POST/v1/client/connectorsCreate a connector (14 types supported)
GET/v1/client/connectorsList connectors
POST/v1/client/connectors/{id}/testTest connector connectivity
POST/v1/client/connectors/{id}/importImport data from source connector
POST/v1/client/connectors/{id}/deliverDeliver synthetic data to destination connector

Billing & Usage

MethodPathDescription
GET/v1/client/billingSubscription info and credit balance
POST/v1/client/billing/topupPurchase PAYG credits (Sovereign only)
GET/v1/client/estimatePre-run credit cost estimate
GET/v1/client/usageCredit usage history

Webhooks

MethodPathDescription
POST/v1/client/webhooksRegister a webhook endpoint
GET/v1/client/webhooksList webhook endpoints
GET/v1/client/webhooks/{id}/deliveriesView delivery log for a webhook

Error Responses

All error responses use standard HTTP status codes with a consistent JSON body:

Error response format
{
  "error": {
    "code": "CREDIT_LIMIT_EXCEEDED",
    "message": "Monthly credit limit reached. Upgrade plan or purchase PAYG credits.",
    "status": 429
  }
}

See /v1/client/errors for the full error code catalog.