{
"code": "invalid_data",
"message": "Upload the file with /dn/contacts/import/presign and send its id"
}
{
"code": "storage_unavailable",
"message": "Could not check the uploaded file. Try again."
}
Add many contacts at once from a CSV or Excel file, up to 10 MB and 2,000 rows. An import takes three requests: get an upload URL, upload the file to it, and start the import. The import then runs in the background, so you poll its status until it finishes.
Importing a file
1
Get an upload URL
Send your file’s name, so Detrack knows how to read it. The response has the upload url and the file’s id.
PUT the file to url exactly as returned, within 15 minutes. Don’t send your API key: the URL is already signed. If the response had any headers, send those too.
curl -X PUT "$UPLOAD_URL" --upload-file contacts.csv
3
Start the import
Send the id from the first step. The response is the import’s own id, with status set to processing.
Call Get import status with the import’s id until status is completed or failed.
The file
Use a .csv, .xlsx, or .xls file. Detrack finds the header row by its Address column, then matches the other columns by their header names, ignoring case. Your account can rename columns, so download a sample file to get the exact names. Rows with no values are skipped.A file can have up to 2,000 rows under the header row. Rows with no values don’t count. A bigger file fails with too_many_rows and nothing is imported, so split it into smaller files.Each row needs a name or company name, and an address unless it has an address line (the Address 1 to Address 3 columns, by default). Rows that can’t be saved are listed in the import’s invalid_contacts. The file’s other rows are still saved.
Replacing your contacts
Send "delete": true to delete the contacts your API key’s user can see before the file is imported. It’s ignored if the user can’t delete contacts.
Send delete as a JSON true or false, or leave it out. Any other value, even the string "false", 0, or "", counts as true and deletes the contacts.Detrack checks the file’s size and row count first, so a file that fails with file_too_large or too_many_rows deletes nothing. Otherwise it deletes the contacts before it imports the file. If the import then fails, for example with missing_required_headers, the deleted contacts aren’t restored. Try the file without delete first.
Import errors
A failed import has one of these codes in errors:
Code
Meaning
file_too_large
The file is over 10 MB.
too_many_rows
The file has more than 2,000 rows with values under the header row.
invalid_file
Detrack couldn’t read the file. Check that it’s a .csv, .xlsx, or .xls file, and that the filename you sent for the upload URL had the same extension.
invalid_csv_file
The CSV file is malformed, for example a quote that’s never closed.
missing_required_headers
The file has no Address column, so Detrack couldn’t find the header row.
invalid_contact
Some rows couldn’t be saved. They’re listed in invalid_contacts, and the other rows are still saved.
Request errors, such as an id you didn’t upload, return 422 straight away and nothing is imported or deleted.
Authorizations
X-API-KEY
string
header
required
Your Detrack API key, from Integrations > API Key in the dashboard.
Body
application/json
data
object
required
Show child attributes
Response
The import has started. Poll its id until status changes.
{
"code": "invalid_data",
"message": "Upload the file with /dn/contacts/import/presign and send its id"
}
{
"code": "storage_unavailable",
"message": "Could not check the uploaded file. Try again."
}
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Detrack V2 API","colors":{"primary":"#0EA5E9","light":"#38BDF8","dark":"#0369A1"},"logo":{"light":"https://mintcdn.com/detrack/rsdMYc6lFdL5npcT/logo/detrack.png?fit=max\u0026auto=format\u0026n=rsdMYc6lFdL5npcT\u0026q=85\u0026s=222e2ae604737e372c37f9a071538d1c","dark":"https://mintcdn.com/detrack/rsdMYc6lFdL5npcT/logo/detrack.png?fit=max\u0026auto=format\u0026n=rsdMYc6lFdL5npcT\u0026q=85\u0026s=222e2ae604737e372c37f9a071538d1c","href":"https://www.detrack.com"},"favicon":"https://mintcdn.com/detrack/jNyJV7SfRfO4pYfP/favicon.svg?fit=max\u0026auto=format\u0026n=jNyJV7SfRfO4pYfP\u0026q=85\u0026s=74cccbe11b48f85d94379fc2291ff18d","api":{"playground":{"display":"simple","proxy":false}},"appearance":{"default":"light","strict":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"detrack","hasAudioNarration":false,"actualSubdomain":"detrack","customDomains":[],"gitSource":{"type":"github","owner":"detrack","repo":"mintlify-public-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6afbff9763b1d58394897d14","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":35},{"language":"default","tag":"Jobs","count":13},{"language":"default","tag":"Documentation","count":10},{"language":"default","tag":"Contacts","count":6},{"language":"default","tag":"Depots","count":6},{"language":"default","tag":"Contact imports","count":5},{"language":"default","tag":"Get Started","count":5},{"language":"default","tag":"Core Concepts","count":5},{"language":"default","tag":"Routes","count":3},{"language":"default","tag":"Vehicle checks","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/contacts/import","slug":"/api-reference/contacts/import","pageMetadata":{"title":"Import contacts","sidebarTitle":"Import contacts","description":"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.","openapi":"POST /dn/contacts/import","href":"/api-reference/contacts/import"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Step,Steps,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Add many contacts at once from a CSV or Excel file, up to 10 MB and 2,000 rows. An import takes three requests: get an upload URL, upload the file to it, and start the import. The import then runs in the background, so you poll its status until it finishes.`}),`\n`,_jsx(Heading,{level:`2`,id:`importing-a-file`,children:`Importing a file`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Get an upload URL`,children:[_jsxs(_components.p,{children:[`Send your file’s name, so Detrack knows how to read it. The response has the upload `,_jsx(_components.code,{children:`url`}),` and the file’s `,_jsx(_components.code,{children:`id`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.detrack.com/api/v2/dn/contacts/import/presign?filename=contacts.csv\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-KEY: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DETRACK_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})})]}),_jsxs(Step,{title:`Upload the file`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PUT`}),` the file to `,_jsx(_components.code,{children:`url`}),` exactly as returned, within 15 minutes. Don’t send your API key: the URL is already signed. If the response had any `,_jsx(_components.code,{children:`headers`}),`, send those too.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UPLOAD_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --upload-file`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` contacts.csv`})]}),`\n`]})})})]}),_jsxs(Step,{title:`Start the import`,children:[_jsxs(_components.p,{children:[`Send the `,_jsx(_components.code,{children:`id`}),` from the first step. The response is the import’s own `,_jsx(_components.code,{children:`id`}),`, with `,_jsx(_components.code,{children:`status`}),` set to `,_jsx(_components.code,{children:`processing`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.detrack.com/api/v2/dn/contacts/import\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-KEY: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DETRACK_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"data\": {\"id\": \"5f0c3a1d29e804cae4fe0b22/3b9f2c7e5d4a4f1e9a6b8c0d1e2f3a4b.csv\"}}'`})]}),`\n`]})})})]}),_jsx(Step,{title:`Poll until it finishes`,children:_jsxs(_components.p,{children:[`Call `,_jsx(_components.a,{href:`/api-reference/contacts/get-import-status`,children:`Get import status`}),` with the import’s `,_jsx(_components.code,{children:`id`}),` until `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`completed`}),` or `,_jsx(_components.code,{children:`failed`}),`.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`the-file`,children:`The file`}),`\n`,_jsxs(_components.p,{children:[`Use a `,_jsx(_components.code,{children:`.csv`}),`, `,_jsx(_components.code,{children:`.xlsx`}),`, or `,_jsx(_components.code,{children:`.xls`}),` file. Detrack finds the header row by its `,_jsx(_components.strong,{children:`Address`}),` column, then matches the other columns by their header names, ignoring case. Your account can rename columns, so `,_jsx(_components.a,{href:`/api-reference/contacts/download-sample`,children:`download a sample file`}),` to get the exact names. Rows with no values are skipped.`]}),`\n`,_jsxs(_components.p,{children:[`A file can have up to 2,000 rows under the header row. Rows with no values don’t count. A bigger file fails with `,_jsx(_components.code,{children:`too_many_rows`}),` and nothing is imported, so split it into smaller files.`]}),`\n`,_jsxs(_components.p,{children:[`Each row needs a name or company name, and an address unless it has an address line (the `,_jsx(_components.strong,{children:`Address 1`}),` to `,_jsx(_components.strong,{children:`Address 3`}),` columns, by default). Rows that can’t be saved are listed in the import’s `,_jsx(_components.code,{children:`invalid_contacts`}),`. The file’s other rows are still saved.`]}),`\n`,_jsx(Heading,{level:`2`,id:`replacing-your-contacts`,children:`Replacing your contacts`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`\"delete\": true`}),` to delete the contacts your API key’s user can see before the file is imported. It’s ignored if the user can’t delete contacts.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`delete`}),` as a JSON `,_jsx(_components.code,{children:`true`}),` or `,_jsx(_components.code,{children:`false`}),`, or leave it out. Any other value, even the string `,_jsx(_components.code,{children:`\"false\"`}),`, `,_jsx(_components.code,{children:`0`}),`, or `,_jsx(_components.code,{children:`\"\"`}),`, counts as `,_jsx(_components.code,{children:`true`}),` and deletes the contacts.`]}),_jsxs(_components.p,{children:[`Detrack checks the file’s size and row count first, so a file that fails with `,_jsx(_components.code,{children:`file_too_large`}),` or `,_jsx(_components.code,{children:`too_many_rows`}),` deletes nothing. Otherwise it deletes the contacts before it imports the file. If the import then fails, for example with `,_jsx(_components.code,{children:`missing_required_headers`}),`, the deleted contacts aren’t restored. Try the file without `,_jsx(_components.code,{children:`delete`}),` first.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`import-errors`,children:`Import errors`}),`\n`,_jsxs(_components.p,{children:[`A failed import has one of these codes in `,_jsx(_components.code,{children:`errors`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`file_too_large`})}),_jsx(_components.td,{children:`The file is over 10 MB.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`too_many_rows`})}),_jsx(_components.td,{children:`The file has more than 2,000 rows with values under the header row.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_file`})}),_jsxs(_components.td,{children:[`Detrack couldn’t read the file. Check that it’s a `,_jsx(_components.code,{children:`.csv`}),`, `,_jsx(_components.code,{children:`.xlsx`}),`, or `,_jsx(_components.code,{children:`.xls`}),` file, and that the `,_jsx(_components.code,{children:`filename`}),` you sent for the upload URL had the same extension.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_csv_file`})}),_jsx(_components.td,{children:`The CSV file is malformed, for example a quote that’s never closed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`missing_required_headers`})}),_jsxs(_components.td,{children:[`The file has no `,_jsx(_components.strong,{children:`Address`}),` column, so Detrack couldn’t find the header row.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_contact`})}),_jsxs(_components.td,{children:[`Some rows couldn’t be saved. They’re listed in `,_jsx(_components.code,{children:`invalid_contacts`}),`, and the other rows are still saved.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Request errors, such as an `,_jsx(_components.code,{children:`id`}),` you didn’t upload, return `,_jsx(_components.code,{children:`422`}),` straight away and nothing is imported or deleted.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Import contacts","sidebarTitle":"Import contacts","description":"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.","openapi":"POST /dn/contacts/import","href":"/api-reference/contacts/import"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Importing a file","slug":"importing-a-file","depth":2,"children":[]},{"title":"The file","slug":"the-file","depth":2,"children":[]},{"title":"Replacing your contacts","slug":"replacing-your-contacts","depth":2,"children":[]},{"title":"Import errors","slug":"import-errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Contact imports"],"operationId":"importContacts","summary":"Import contacts","description":"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.","requestBody":"5d19d107-e477-4328-98d8-b22521d7826c","responses":{"201":"bad57a90-31ec-4f56-bfca-ba05828ebf84","400":"7fccd1d9-0cc2-4dfa-9838-ca7d3ec4a19f","401":"3da12ef8-cf37-413e-b368-396b1a4a79ce","403":"311ef67e-df4a-4358-bb49-1e44695c11ae","422":"2e5cb2a0-7029-4e68-8930-4e8c6f30abd9","503":"6e3c8550-40af-4808-b12d-9b0cb2d6b99c","default":"b9d183cf-8ca9-4721-9e5f-593f09d85ec2"},"method":"post","type":"path","servers":["cdb0fbef-66b5-4170-b44d-db2ea0c7f212"],"security":["207345cc-b789-4672-8971-ea4e720c6c0e"],"path":"/dn/contacts/import","baseUrlOptions":["https://app.detrack.com/api/v2"],"title":"Import contacts","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The `id` from [Get an upload URL](/api-reference/contacts/get-upload-url).","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"delete":{"type":"boolean","default":false,"description":"Set to `true` to delete the contacts your API key's user can see before importing. Send a JSON boolean: any other value, even the string `\"false\"`, deletes them too. Ignored if the user can't delete contacts.","uniqueKey":"data.delete","typeLabel":"boolean"},"metadata":{"type":"object","description":"Optional details about the file.","properties":{"filename":{"type":"string","example":"contacts.csv","uniqueKey":"data.metadata.filename","typeLabel":"string"}},"uniqueKey":"data.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":{"id":"5f0c3a1d29e804cae4fe0b22/3b9f2c7e5d4a4f1e9a6b8c0d1e2f3a4b.csv","metadata":{"filename":"contacts.csv"}}},"examples":{"Example":{"title":"Example","value":{"data":{"id":"5f0c3a1d29e804cae4fe0b22/3b9f2c7e5d4a4f1e9a6b8c0d1e2f3a4b.csv","metadata":{"filename":"contacts.csv"}}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"bad57a90-31ec-4f56-bfca-ba05828ebf84":{"description":"The import has started. Poll its `id` until `status` changes.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","example":"6ae1949608fe77f3f222fa08","uniqueKey":"data.id","typeLabel":"string"},"status":{"type":"string","example":"processing","uniqueKey":"data.status","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"6ae1949608fe77f3f222fa08","status":"processing"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7fccd1d9-0cc2-4dfa-9838-ca7d3ec4a19f":{"description":"The request body isn't valid JSON.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Could not find job with this DO number","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"invalid_json_format"},"examples":{"Example":{"title":"Example","value":{"code":"invalid_json_format"}}},"exampleType":"examples"}},"exampleType":"examples"},"3da12ef8-cf37-413e-b368-396b1a4a79ce":{"description":"The API key is missing or invalid. A missing `X-API-KEY` returns `{ \"error\": \"Missing Authorization header\" }`; an invalid key returns `{ \"code\": \"invalid_key\", \"message\": \"Invalid key\" }`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Missing key","required":["error"],"properties":{"error":{"type":"string","example":"Missing Authorization header","isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"Missing key · object"},{"type":"object","title":"Invalid key","required":["code"],"properties":{"code":{"type":"string","example":"invalid_key","isRequired":true,"uniqueKey":"oneOf.1.code","typeLabel":"string"},"message":{"type":"string","example":"Invalid key","uniqueKey":"oneOf.1.message","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"Invalid key · object"}],"uniqueKey":"","typeLabel":"Missing key · object | Invalid key · object"},"example":{"code":"invalid_key","message":"Invalid key"},"examples":{"Example":{"title":"Example","value":{"code":"invalid_key","message":"Invalid key"}}},"exampleType":"examples"}},"exampleType":"examples"},"311ef67e-df4a-4358-bb49-1e44695c11ae":{"description":"Your API key's user doesn't have permission for this action.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","example":"forbidden","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"forbidden"},"examples":{"Example":{"title":"Example","value":{"code":"forbidden"}}},"exampleType":"examples"}},"exampleType":"examples"},"2e5cb2a0-7029-4e68-8930-4e8c6f30abd9":{"description":"`data` is missing or isn't an object, or `id` isn't a file you uploaded (`invalid_data`), or the file is over 10 MB (`file_too_large`). Nothing is imported or deleted.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Could not find job with this DO number","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"invalid_data","message":"Upload the file with /dn/contacts/import/presign and send its id"},"examples":{"Example":{"title":"Example","value":{"code":"invalid_data","message":"Upload the file with /dn/contacts/import/presign and send its id"}}},"exampleType":"examples"}},"exampleType":"examples"},"6e3c8550-40af-4808-b12d-9b0cb2d6b99c":{"description":"Detrack couldn't check the uploaded file. Retry shortly.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Could not find job with this DO number","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"storage_unavailable","message":"Could not check the uploaded file. Try again."},"examples":{"Example":{"title":"Example","value":{"code":"storage_unavailable","message":"Could not check the uploaded file. Try again."}}},"exampleType":"examples"}},"exampleType":"examples"},"b9d183cf-8ca9-4721-9e5f-593f09d85ec2":{"description":"Unexpected server error. Retry with exponential backoff, and contact Detrack support if it persists.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"207345cc-b789-4672-8971-ea4e720c6c0e":{"apiKey":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your Detrack API key, from **Integrations > API Key** in the dashboard.","scopes":[],"schemeName":"apiKey"}}},"servers":{"cdb0fbef-66b5-4170-b44d-db2ea0c7f212":{"url":"https://app.detrack.com/api/v2"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your Detrack API key, from **Integrations > API Key** in the dashboard.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"X-API-KEY","type":"string","description":"Your Detrack API key, from **Integrations > API Key** in the dashboard.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"X-API-KEY"}],"title":"apiKey"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"detrack","siteName":"Detrack V2 API","title":"Import contacts - Detrack V2 API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T07:17:48.237Z","originalFileLocation":"api-reference/contacts/import.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Detrack V2 API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Import contacts - Detrack V2 API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Detrack V2 API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://detrack.mintlify.app/api-reference/contacts/import\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://detrack.mintlify.site/_mintlify/api/og/v2?division=Contact+imports\u0026amp;title=Import+contacts\u0026amp;description=Add+contacts+in+bulk+from+a+CSV+or+Excel+file%3A+upload+it+to+a+signed+URL%2C+start+the+import+with+POST+%2Fdn%2Fcontacts%2Fimport%2C+then+poll+its+status.\u0026amp;theme=ec84d1d5e8d8f701aaf8b317\u0026amp;signature=c4c3b094ea1925d3bcbf06dc81a48fc9195a6fdf73297bd3966452c5a535f64a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Import contacts - Detrack V2 API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://detrack.mintlify.site/_mintlify/api/og/v2?division=Contact+imports\u0026amp;title=Import+contacts\u0026amp;description=Add+contacts+in+bulk+from+a+CSV+or+Excel+file%3A+upload+it+to+a+signed+URL%2C+start+the+import+with+POST+%2Fdn%2Fcontacts%2Fimport%2C+then+poll+its+status.\u0026amp;theme=ec84d1d5e8d8f701aaf8b317\u0026amp;signature=c4c3b094ea1925d3bcbf06dc81a48fc9195a6fdf73297bd3966452c5a535f64a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/detrack/si4Dp7hkj5RVqb4q/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Detrack V2 API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0EA5E9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://detrack.mintlify.app/api-reference/contacts/import\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/contacts/import.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://detrack.mintlify.app/#organization\",\"name\":\"Detrack V2 API\",\"url\":\"https://detrack.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/detrack/rsdMYc6lFdL5npcT/logo/detrack.png?fit=max\u0026auto=format\u0026n=rsdMYc6lFdL5npcT\u0026q=85\u0026s=222e2ae604737e372c37f9a071538d1c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://detrack.mintlify.app#website\",\"name\":\"Detrack V2 API\",\"url\":\"https://detrack.mintlify.app\",\"publisher\":{\"@id\":\"https://detrack.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://detrack.mintlify.app/api-reference/contacts/import#webpage\",\"url\":\"https://detrack.mintlify.app/api-reference/contacts/import\",\"name\":\"Import contacts\",\"description\":\"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.\",\"dateModified\":\"2026-11-17T07:17:48.237Z\",\"isPartOf\":{\"@id\":\"https://detrack.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://detrack.mintlify.app/api-reference/contacts/import#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://detrack.mintlify.app/api-reference/contacts/import#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Detrack V2 API\",\"item\":\"https://detrack.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Import contacts\",\"item\":\"https://detrack.mintlify.app/api-reference/contacts/import\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://detrack.mintlify.app/api-reference/contacts/import#apireference\",\"headline\":\"Import contacts\",\"name\":\"Import contacts\",\"description\":\"Add contacts in bulk from a CSV or Excel file: upload it to a signed URL, start the import with POST /dn/contacts/import, then poll its status.\",\"url\":\"https://detrack.mintlify.app/api-reference/contacts/import\",\"mainEntityOfPage\":{\"@id\":\"https://detrack.mintlify.app/api-reference/contacts/import#webpage\"},\"dateModified\":\"2026-11-17T07:17:48.237Z\",\"publisher\":{\"@id\":\"https://detrack.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://detrack.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Detrack V2 API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Detrack V2 API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/contacts/import.md","siteName":"Detrack V2 API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Jobs","pages":[{"title":"List jobs","sidebarTitle":"List jobs","openapi":"GET /dn/jobs","playground":"interactive","href":"/api-reference/jobs/list"},{"title":"Create a job","sidebarTitle":"Create job","openapi":"POST /dn/jobs","href":"/api-reference/jobs/create"},{"title":"Bulk create jobs","sidebarTitle":"Bulk create","openapi":"POST /dn/jobs/bulk","href":"/api-reference/jobs/bulk-create"},{"title":"Bulk update jobs","sidebarTitle":"Bulk update","openapi":"PUT /dn/jobs","href":"/api-reference/jobs/bulk-update"},{"title":"Bulk delete jobs","sidebarTitle":"Bulk delete","openapi":"DELETE /dn/jobs","href":"/api-reference/jobs/bulk-delete"},{"title":"Bulk export PODs or shipping labels","sidebarTitle":"Bulk export","openapi":"POST /dn/jobs/bulk/export","href":"/api-reference/jobs/bulk-export"},{"title":"Get bulk export status","sidebarTitle":"Export status","openapi":"GET /dn/jobs/export/status/{id}","playground":"interactive","href":"/api-reference/jobs/get-export-status"},{"title":"Retrieve a job","sidebarTitle":"Retrieve job","openapi":"GET /dn/jobs/show","playground":"interactive","href":"/api-reference/jobs/retrieve"},{"title":"Update a job","sidebarTitle":"Update job","openapi":"PUT /dn/jobs/update","href":"/api-reference/jobs/update"},{"title":"Delete a job","sidebarTitle":"Delete job","openapi":"DELETE /dn/jobs/delete","href":"/api-reference/jobs/delete"},{"title":"Reattempt a job","sidebarTitle":"Reattempt job","openapi":"POST /dn/jobs/reattempt","href":"/api-reference/jobs/reattempt"},{"title":"Download a job document","sidebarTitle":"Download document","openapi":"GET /dn/jobs/export","playground":"interactive","href":"/api-reference/jobs/export"},{"title":"Search jobs","sidebarTitle":"Search jobs","openapi":"POST /dn/jobs/search","href":"/api-reference/jobs/search"}]},{"group":"Depots","pages":[{"title":"List depots","sidebarTitle":"List depots","openapi":"GET /dn/depots","playground":"interactive","href":"/api-reference/depots/list"},{"title":"Retrieve a depot","sidebarTitle":"Retrieve depot","openapi":"GET /dn/depots/{name}","playground":"interactive","href":"/api-reference/depots/retrieve"},{"title":"Create a depot","sidebarTitle":"Create depot","openapi":"POST /dn/depots","href":"/api-reference/depots/create"},{"title":"Bulk create depots","sidebarTitle":"Bulk create","openapi":"POST /dn/depots/bulk","href":"/api-reference/depots/bulk-create"},{"title":"Bulk update depots","sidebarTitle":"Bulk update","openapi":"PUT /dn/depots","href":"/api-reference/depots/bulk-update"},{"title":"Bulk delete depots","sidebarTitle":"Bulk delete","openapi":"DELETE /dn/depots","href":"/api-reference/depots/bulk-delete"}]},{"group":"Contacts","pages":[{"title":"List contacts","sidebarTitle":"List contacts","openapi":"GET /dn/contacts","playground":"interactive","href":"/api-reference/contacts/list"},{"title":"Retrieve a contact","sidebarTitle":"Retrieve contact","openapi":"GET /dn/contacts/{id}","playground":"interactive","href":"/api-reference/contacts/retrieve"},{"title":"Create a contact","sidebarTitle":"Create contact","openapi":"POST /dn/contacts","href":"/api-reference/contacts/create"},{"title":"Bulk create contacts","sidebarTitle":"Bulk create","openapi":"POST /dn/contacts/bulk","href":"/api-reference/contacts/bulk-create"},{"title":"Update a contact","sidebarTitle":"Update contact","openapi":"PUT /dn/contacts/{id}","href":"/api-reference/contacts/update"},{"title":"Delete a contact","sidebarTitle":"Delete contact","openapi":"DELETE /dn/contacts/{id}","href":"/api-reference/contacts/delete"}]},{"group":"Routes","pages":[{"title":"List routes","sidebarTitle":"List routes","openapi":"GET /dn/routes","playground":"interactive","href":"/api-reference/routes/list"},{"title":"Retrieve a route","sidebarTitle":"Retrieve route","openapi":"GET /dn/routes/{name}","playground":"interactive","href":"/api-reference/routes/retrieve"},{"title":"Plan a route","sidebarTitle":"Plan route","openapi":"POST /dn/routes/plan","href":"/api-reference/routes/plan"}]},{"group":"Vehicle checks","pages":[{"title":"List vehicle check submissions","sidebarTitle":"List submissions","openapi":"GET /dn/vehicle_checklist_submissions","playground":"interactive","href":"/api-reference/vehicle-checks/list"},{"title":"Retrieve a vehicle check submission","sidebarTitle":"Retrieve submission","description":"GET /dn/vehicle_checklist_submissions/{id} returns one vehicle check submission with every answer, photo link, and signature.","openapi":"GET /dn/vehicle_checklist_submissions/{id}","playground":"interactive","href":"/api-reference/vehicle-checks/retrieve"}]},{"group":"Contact imports","pages":[{"title":"Import contacts","sidebarTitle":"Import contacts","openapi":"POST /dn/contacts/import","href":"/api-reference/contacts/import"},{"title":"Get an upload URL","sidebarTitle":"Upload URL","description":"GET /dn/contacts/import/presign returns a signed URL to upload a contact import file to, and the id to start the import with.","openapi":"GET /dn/contacts/import/presign","playground":"interactive","href":"/api-reference/contacts/get-upload-url"},{"title":"Get import status","sidebarTitle":"Import status","openapi":"GET /dn/contacts/import/{id}","playground":"interactive","href":"/api-reference/contacts/get-import-status"},{"title":"Get the last import","sidebarTitle":"Last import","openapi":"GET /dn/contacts/import/last","playground":"interactive","href":"/api-reference/contacts/get-last-import"},{"title":"Download a sample file","sidebarTitle":"Sample file","openapi":"GET /dn/contacts/import/sample.{format}","href":"/api-reference/contacts/download-sample"}]}]}]},"basePath":"","title":"Import contacts - Detrack V2 API","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","Page-DuqezyvM.js","CodeSnippet-B373COAT.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","getApiPlaygroundDisplay-CfL-UuDS.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}