Skip to main content
POST
Suggest Mapping
← Imports Request automatic mapping suggestions from your uploaded file’s source columns to the template’s target columns. The backend uses lexical similarity, semantic matching, and import history to rank candidates.
Suggestions are best-effort. Review the confidence scores and adjust before confirming. History-restored mappings (restored_from_history: true) come from a prior successful import and skip value-level scoring.
Repeating the call is cheap and returns the same answer: the suggestion is stored on the session, and a repeat with the same inputs (source columns, template columns, mapping history, sheet and header row) is answered from it for up to 10 minutes. Concurrent identical calls wait for the first one and return its answer. Declaring custom columns or sending different source_columns computes a new suggestion.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

string
required
UUID of the import sessionExample: "11111111-1111-1111-1111-111111111111"

Body Parameters

array[string]
Override the detected source columns. When omitted, uses the columns detected during session creation.

Response

object
Map of {target_column: suggestion | null}. Each key is a template column key; the value is a suggestion object or null if no match was found.

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

404 Not Found

Cause: The import session does not exist or belongs to another organization. Both cases return the same response, so a session id from another organization is indistinguishable from one that does not exist.

Confirm Mapping

Persist the chosen mapping

Create Session

Upload a file and start an import