List a subscriber import's failed rows
GET
/api/v3/contacts/imports/{importUniqueId}/errors
const url = 'https://api.tryletterhead.com/api/v3/contacts/imports/example/errors?api=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tryletterhead.com/api/v3/contacts/imports/example/errors?api=true' \ --header 'Authorization: Bearer <token>'Returns the rows a subscriber import couldnโt process โ the address that failed and why.
This is a company-level (v3) read. Authenticate with a company API key as a Bearer token.
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.
Query Parameters
Section titled โQuery Parameters โ api
required
boolean
Required. Set to true.
page
integer
1-based page number. Minimum 1. Defaults to 1.
limit
integer
Rows per page. Minimum 1, maximum 100. Defaults to 25.
Responses
Section titled โ Responses โ200 OK
Media type application/json
object
items
Array<object>
object
email
string
code
A stable reason code, for example missing_email or upsert_failed.
string
description
string
message
string
total
integer
Example
{ "items": [ { "email": "not-an-email", "code": "missing_email", "description": "Row 42 had no usable email address." } ], "message": "Subscriber import errors retrieved.", "total": 1}Still can’t find what you need? Contact support.