/v1/apps/{app_id}/end-users/import/mappings/{mapping_id}AuthRead one import mapping (drafts included).
Path parameters
app_id*stringId of the app.
mapping_id*string · uuidImport mapping id.
Response · 200 The mapping.
id*string · uuidUnique identifier of the mapping.
app_id*string · uuidThe Auth app the mapping belongs to.
name*stringName shown in the console, unique per app. `null` marks a draft: hidden from the list and deleted 7 days after its last edit.
Example: "Clerk export"
mapping*objectMapping v1 (`@repo/user-import`): `{ version: 1, fields: { <target>: { source | sources[], transform?, options? } | { constant } }, metadata?: { columns[], json_column? }, value_maps?: { role: { <file value>: <role name> } } }`. Targets: `email` (required), `username`, `display_name`, `role`, `tenant_slugs`, `external_id`, `email_verified`, `password_hash`, `password_hash_algorithm`, `disabled`. Transforms: `join`, `boolean`, `present`, `split_list`, `value_map`, `hash_algorithm`, `json`, `in_list`. Constants only for `email_verified`, `role`, `disabled`, `tenant_slugs`.
Example: {"version":1,"fields":{"email":{"source":"primary_email_address"},"external_id":{"source":"id"},"display_name":{"sources":["first_name","last_name"],"transform":"join"},"email_verified":{"source":"verified_email_addresses","transform":"in_list"},"password_hash":{"source":"password_digest"},"password_hash_algorithm":{"sources":["password_hasher"],"transform":"hash_algorithm"},"role":{"source":"role","transform":"value_map"}},"value_maps":{"role":{"administrator":"admin"}}}
columns*arrayColumn names of the file the mapping was made for.
Example: ["id","first_name","last_name","primary_email_address","verified_email_addresses","password_digest","password_hasher","role"]
header_fingerprint*stringOrder-insensitive fingerprint of `columns` (`hf1_…`), computed by the server. Filter the list with it to find a mapping for a file with the same headers.
Example: "hf1_5c3a9e1f0b7d2a64"
created_by*string · uuidPlatform user who created the mapping, when known.
created_at*string · date-timeWhen the mapping was created (ISO 8601).
updated_at*string · date-timeWhen the mapping was last changed (ISO 8601).
Example
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/end-users/import/mappings/{mapping_id}
Authorization: Bearer YOUR_TOKENResponse
{
"id": "00000000-0000-0000-0000-000000000000",
"app_id": "00000000-0000-0000-0000-000000000000",
"name": "Clerk export",
"mapping": {
"version": 1,
"fields": {
"email": {
"source": "primary_email_address"
},
"external_id": {
"source": "id"
},
"display_name": {
"sources": [
"first_name",
"last_name"
],
"transform": "join"
},
"email_verified": {
"source": "verified_email_addresses",
"transform": "in_list"
},
"password_hash": {
"source": "password_digest"
},
"password_hash_algorithm": {
"sources": [
"password_hasher"
],
"transform": "hash_algorithm"
},
"role": {
"source": "role",
"transform": "value_map"
}
},
"value_maps": {
"role": {
"administrator": "admin"
}
}
},
"columns": [
"id",
"first_name",
"last_name",
"primary_email_address",
"verified_email_addresses",
"password_digest",
"password_hasher",
"role"
],
"header_fingerprint": "hf1_5c3a9e1f0b7d2a64",
"created_by": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}