Skip to main content
POST
Start Source Creator from Detection Session
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

This is used when the file detection flow returns low source confidence (sourceCreatorEligible: true in the upload-url response) and the user opts to create a new source rather than selecting an existing one. The endpoint reuses the parsedFileData (headers, sample rows) already stored on the detection session, so no file re-upload or re-parsing is needed. Flow:
  1. POST /file/upload-url returns detectionResults.sourceCreatorEligible: true
  2. Client calls this endpoint to start the Source Creator wizard
  3. User completes the wizard (AI mapping → query generation → save)
  4. Client calls POST /file/confirm-detection/{sessionId} with sourceCreatorSessionId
  5. File proceeds to processing queue
Authorization:
  • Required role: user or higher

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

sessionId
string<uuid>
required

File detection session ID

Response

Source Creator wizard started

status
string
Example:

"success"

message
string
Example:

"Source Creator wizard started from detection session"

data
object