POST
/
mapCsvColumns
Map CSV columns to schema fields
curl --request POST \
  --url https://api.parcha.ai/api/v1/mapCsvColumns \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_type": "kyc",
  "csv_columns": [
    "<string>"
  ],
  "sample_data": [
    {}
  ]
}'
{
  "mappings": [
    {}
  ],
  "unmapped_columns": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

JWT token obtained from the authentication endpoint

Body

application/json
agent_type
enum<string>
required

The type of agent (kyc or kyb)

Available options:
kyc,
kyb
csv_columns
string[]
required

List of column names from the CSV file

sample_data
object[]

Sample rows from the CSV for context

Response

CSV columns mapped successfully

mappings
object[]
unmapped_columns
string[]