Get Contact Batch Insert and Update Status

Retrieve the current status of a contact batch upsert request

This endpoint returns the update status for a contact batch upsert request placed using the endpoint Contact Insert and Update (Batch). Use the BatchID received in the response body from the endpoint Contact Insert and Update (Batch) as the input parameter ID to get the latest update status.

Request
Security:
Bearer
path Parameters
id
required
string <uuid>

The BatchID received in the response body from the endpoint Contact Insert and Update (Batch).

Responses
200

Success

400

Bad Request

401

Unauthorized

409

Conflict

422

Client Error

500

Server Error

get/contacts/{id}/Status
Request samples
const fetch = require('node-fetch');

const id = 'YOUR_id_PARAMETER';
const resp = await fetch(
  `https://apicrm.mainbrainer.com/contacts/${id}/Status`,
  {
    method: 'GET',
    headers: {
      Authorization: 'YOUR_API_KEY_HERE'
    }
  }
);

const data = await resp.text();
console.log(data);
Response samples
{
  • "id": "string",
  • "status": 0,
  • "statusText": "string",
  • "statusFailedReason": "string",
  • "processedObj": {
    • "inserted": {
      • "count": 0,
      • "contactIds": [
        • 0
        ]
      },
    • "updated": {
      • "count": 0,
      • "contactIds": [
        • 0
        ]
      },
    • "skipped": {
      • "count": 0,
      • "contactIds": [
        • 0
        ]
      }
    }
}