Skip to main content
For AI agents: a documentation index is available at https://docs.coverbase.com/llms.txt. This page is also available in markdown by appending .md to the URL.

Import Report

POST
POST /v1/import/{report_name}
Submits a batch of records to the specified import report. Records are validated against the report’s field mapping, upserted into the target base object using external_id, and returned with a per-record result summary.
Three things commonly cause a 404 or 422 here:
  • The path is /v1/import/{report_name}: singular import, not imports. A request to /v1/imports/... returns a generic 404 Not Found.
  • The body must be an array wrapped under data: {"data": [ { ... } ]}. A bare record object will not validate.
  • The Import API requires a service-account API key. See API keys.

Path parameters

string
required
The unique identifier of the import report.

Request body

The request body is a JSON object with a data key containing an array of records. Each record is an object whose keys are the mapped field names defined in the report and whose values are the incoming field values.
array
required
Records to import. Each record must include all fields marked as Required in the report’s mapping.

Example request

Example response

Response fields

string
Unique Coverbase import report ID.
string
Unique string used in the API endpoint URL.
string
Display name for the report.
string
The object each record in data maps to (vendor, assessment, or service).
object
Mapping between Coverbase field names and the field names accepted in the incoming JSON objects.
integer
Total number of records received in the request body.
integer
Number of records that resulted in a new base object being created.
integer
Number of records that matched an existing base object on external_id and were updated in place.
integer
Number of records that were rejected due to validation or mapping errors.
array
Per-record result objects for successfully processed records. Each contains external_id, coverbase_id, action (created or updated), and status.
array
Per-record error objects for rejected records. Each contains the record index, external_id (if available), error_code, and a human-readable message.
integer
Unix timestamp indicating when the import batch was received.

Error codes

Partial success is supported. Records that pass validation are imported even if other records in the same batch fail. The HTTP response code is 200 when at least one record succeeds and 400 when all records fail validation.
Need help? Email support@coverbase.ai.