SessionDock Developer Docs
Authoritative guides, generated Local API reference, and practical patterns for local automation, scripts, launchers, and AI agents running alongside SessionDock.
Starts a batch import and returns accepted status when available.
/api/v1/importStarts a batch import and returns accepted status when available.
curl -X POST 'http://127.0.0.1:18432/api/v1/import' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"kind": "Ableton",
"generatePreviews": true,
"items": [
{
"projectPath": "<string>",
"title": "<string>",
"projectType": "<string>",
"previewAudioPath": "<string>"
}
]
}'application/json
{
"kind": "Ableton",
"generatePreviews": true,
"items": [
{
"projectPath": "<string>",
"title": "<string>",
"projectType": "<string>",
"previewAudioPath": "<string>"
}
]
}{
"kind": "Ableton",
"generatePreviews": true,
"items": [
{
"projectPath": "<string>",
"title": "<string>",
"projectType": "<string>",
"previewAudioPath": "<string>"
}
]
}Accepted import
application/json
{
"data": {
"importId": "<string>",
"total": 0,
"completed": 0,
"failed": 0,
"skipped": 0,
"done": true,
"durationMs": 0
}
}{
"data": {
"importId": "<string>",
"total": 0,
"completed": 0,
"failed": 0,
"skipped": 0,
"done": true,
"durationMs": 0
}
}Malformed JSON or rejected input.
application/json
{
"error": {
"status": 0,
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"status": 400,
"code": "invalid_json",
"message": "Request body must be valid JSON."
}
}Missing or invalid bearer token.
application/json
{
"error": {
"status": 0,
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"status": 401,
"code": "unauthorized",
"message": "Provide Authorization: Bearer <token>."
}
}Write attempted while Local API is in read-only mode.
application/json
{
"error": {
"status": 0,
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"status": 403,
"code": "read_only",
"message": "Enable Full Automation to perform this action."
}
}Import service is unavailable in the current runtime.
application/json
{
"error": {
"status": 0,
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"status": 501,
"code": "import_unavailable",
"message": "Import service is unavailable."
}
}