Retry a subscriber import
POST
/api/v3/contacts/imports/{importUniqueId}/retry
const url = 'https://api.tryletterhead.com/api/v3/contacts/imports/example/retry';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"api":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.tryletterhead.com/api/v3/contacts/imports/example/retry \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "api": true }'Resumes a failed subscriber import from where it stopped, rather than requiring the file to be re-uploaded. Returns 202 Accepted — the resumed processing runs asynchronously. Returns 422 if the import isn’t currently in a retryable state.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” importUniqueId
required
string
The import’s unique identifier, from List subscriber imports.
Request Body required
Section titled “Request Body required ” Media type application/json
object
api
required
Required. Set to true to authenticate with an API key.
boolean
Example
{ "api": true}Responses
Section titled “ Responses ”Import retry started.
Media type application/json
object
items
message
string
total
integer
Example
{ "items": null, "message": "Import retry started.", "total": 1}Still can’t find what you need? Contact support.