Skip to main content
POST
Step 2 — Get AI column-mapping suggestions
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /source-creator/ai-map-columns Description: Invokes the AI column-mapping tool against the session’s headers and sample rows, applies historical-learning confidence boosts from past tenant mappings, and returns semantic-type suggestions per column (with alternatives and reasoning). Flags UPC columns that look like Excel truncated them into scientific notation via warnings. AI-calling — rate limited via aiRateLimitMiddleware. Authorization:
  • Required role: admin or higher
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

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

Body

application/json
sessionId
string<uuid>
required

Response

Column mappings generated successfully

status
string
Example:

"success"

message
string
Example:

"Column mappings generated successfully"

data
object