Skip to main content
POST
/
workspaces
/
import
Import a workspace
curl --request POST \
  --url https://slog.ai/workspaces/import \
  --header 'Content-Type: application/json' \
  --header 'slog-api-key: <api-key>' \
  --data '
{
  "data": "<unknown>",
  "update": false
}
'
{
  "workspace": {
    "id": "ws_01jqworksp001",
    "name": "Acme Engineering",
    "slug": "acme-engineering",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedAt": "2026-01-01T00:00:00.000Z"
  }
}

Authorizations

slog-api-key
string
header
required

API key obtained from the Slog dashboard or returned by the signup/invite-redeem flows. Pass as the slog-api-key header.

Body

application/json
data
any
required

Data payload from a previous export response.

update
boolean
default:false

If true, existing records with matching IDs will be updated instead of raising a conflict error.

Example:

false

Response

Workspace imported.

workspace
object