/v1/remote_file_import_batches/:idGet a remote file import batch
Requires the write scope for the batch's resource type: letters.create, test_results.create, or notes.create. A request with the wrong scope returns 404 without revealing whether the batch exists.
Parameters
id
path · required
string
-
Responses
The requested RemoteFileImportBatch.
completed_countintegerrequiredThe number of items that finished processing successfully.
created_atstring · date-timerequiredAn ISO 8601 timestamp in UTC, with a
Zsuffix. For example,2026-07-01T09:00:00Z.failed_countintegerrequiredThe number of items that finished processing with an error.
idstring · uuidrequiredThe resource's unique identifier, formatted as an RFC 4122 version 4 UUID.
itemsarrayrequiredThe import items in their original request order.
itemsobjectcreated_resourcestring | null · urirequiredThe URL of the resource created for a succeeded item. Null unless
statusissucceeded.created_resource_idstring | null · uuidrequiredThe identifier of the resource created for a succeeded item. Null unless
statusissucceeded.created_resource_typestring | nullrequiredThe type of resource created for a succeeded item. Null unless
statusissucceeded.Allowed values:
null | Attachment | Letter | Note | TestResulterrorobject | nullrequiredThe failure details for this item. Null unless the item has failed.
codestring | nullrequiredThe machine-readable error code.
messagestring | nullrequiredA message that explains how the item failed.
idstring · uuidrequiredThe resource's unique identifier, formatted as an RFC 4122 version 4 UUID.
objectanyrequiredAlways
remote_file_import_batch_item.positionintegerrequiredThe zero-based position of the item in the submitted batch.
statusstringrequiredThe current download, validation, and malware-scanning status of the item.
Allowed values:
failed | pending | processing | succeeded
linksobjectrequiredURLs to related resources.
selfstring · urirequiredThe full URL of a related resource.
objectanyrequiredDiscriminator value emitted at
object.resource_typestringrequiredThe type of resource created by every item in the batch.
Allowed values:
letter | note | test_resultstatusstringrequiredThe current download, validation, and malware-scanning status of the batch.
Allowed values:
completed | pending | processingtotal_countintegerrequiredThe total number of items submitted in the batch.
updated_atstring · date-timerequiredAn ISO 8601 timestamp in UTC, with a
Zsuffix. For example,2026-07-01T09:00:00Z.
Example
{
"id": "ebc38802-f219-4c7b-8136-8e963a0c69e0",
"object": "remote_file_import_batch",
"completed_count": 0,
"created_at": "2026-01-01T09:00:00Z",
"failed_count": 0,
"items":
"id": "57bed2bf-e2e1-463b-8a96-643e3817a8b8",
"object": "remote_file_import_batch_item",
"created_resource": "https://api.carebit.co/v1/letters/c3d4e5f6-0718-49ab-acde-f01234567890",
"created_resource_id": "7e09a8e3-e3c1-4dee-863b-85d56e4329da",
"created_resource_type": null,
"error": null,
"position": 0,
"status": "failed"
}
],
"links":
"self": "https://api.carebit.co/v1/remote_file_import_batches/ebc38802-f219-4c7b-8136-8e963a0c69e0"
},
"resource_type": "letter",
"status": "completed",
"total_count": 1,
"updated_at": "2026-01-01T09:00:00Z"
}The access token is missing, invalid, expired, or revoked.
errorobjectrequiredThe structured details that describe why the request failed.
codestringrequiredThe machine-readable error code.
errorsarray | nullAdditional errors from a failed validation.
itemsobjectcodestringThe machine-readable code for this validation error.
messagestringA message that explains this validation error.
paramstring | nullThe name of the parameter that caused this validation error, when known.
messagestringrequiredA message that explains the error and how to resolve it.
paramstring | nullThe name of the parameter that caused the error, when known.
typestringrequiredThe high-level category of the error.
Allowed values:
authentication_error | permission_error | invalid_request_error | rate_limit_error | api_error
Example
{
"error":
"code": "resource_missing",
"errors":
"code": "resource_missing",
"message": "The requested resource was not found.",
"param": "patient_id"
}
],
"message": "The requested resource was not found.",
"param": "patient_id",
"type": "authentication_error"
}
}The access token is disabled or the project cannot access this endpoint.
errorobjectrequiredThe structured details that describe why the request failed.
codestringrequiredThe machine-readable error code.
errorsarray | nullAdditional errors from a failed validation.
itemsobjectcodestringThe machine-readable code for this validation error.
messagestringA message that explains this validation error.
paramstring | nullThe name of the parameter that caused this validation error, when known.
messagestringrequiredA message that explains the error and how to resolve it.
paramstring | nullThe name of the parameter that caused the error, when known.
typestringrequiredThe high-level category of the error.
Allowed values:
authentication_error | permission_error | invalid_request_error | rate_limit_error | api_error
Example
{
"error":
"code": "resource_missing",
"errors":
"code": "resource_missing",
"message": "The requested resource was not found.",
"param": "patient_id"
}
],
"message": "The requested resource was not found.",
"param": "patient_id",
"type": "authentication_error"
}
}The batch does not exist for your Organization, or your access token lacks the write scope for the batch's resource type.
errorobjectrequiredThe structured details that describe why the request failed.
codestringrequiredThe machine-readable error code.
errorsarray | nullAdditional errors from a failed validation.
itemsobjectcodestringThe machine-readable code for this validation error.
messagestringA message that explains this validation error.
paramstring | nullThe name of the parameter that caused this validation error, when known.
messagestringrequiredA message that explains the error and how to resolve it.
paramstring | nullThe name of the parameter that caused the error, when known.
typestringrequiredThe high-level category of the error.
Allowed values:
authentication_error | permission_error | invalid_request_error | rate_limit_error | api_error
Example
{
"error":
"code": "resource_missing",
"errors":
"code": "resource_missing",
"message": "The requested resource was not found.",
"param": "patient_id"
}
],
"message": "The requested resource was not found.",
"param": "patient_id",
"type": "authentication_error"
}
}Too many requests.
errorobjectrequiredThe structured details that describe why the request failed.
codestringrequiredThe machine-readable error code.
errorsarray | nullAdditional errors from a failed validation.
itemsobjectcodestringThe machine-readable code for this validation error.
messagestringA message that explains this validation error.
paramstring | nullThe name of the parameter that caused this validation error, when known.
messagestringrequiredA message that explains the error and how to resolve it.
paramstring | nullThe name of the parameter that caused the error, when known.
typestringrequiredThe high-level category of the error.
Allowed values:
authentication_error | permission_error | invalid_request_error | rate_limit_error | api_error
Example
{
"error":
"code": "resource_missing",
"errors":
"code": "resource_missing",
"message": "The requested resource was not found.",
"param": "patient_id"
}
],
"message": "The requested resource was not found.",
"param": "patient_id",
"type": "authentication_error"
}
}