Create Onboarded Carriers Bulk | Genlogs API Docs

Authentication

Permissions

The external-api-create-onboarded-carrier-contact permission is required to access this endpoint.

Endpoint

Headers

Request body

Request Example:

curl --location --request POST 'https://api.genlogs.io/onboarded-carrier/bulk/contacts' \
--header 'access-token: <your-api-access-token>' \
--header 'x-api-key: <your-x-api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contacts": [\
        {\
            "usdot": "123456789",\
            "name": "Peter Parker",\
            "phone": "3432434234",\
            "email": "peter.parker@marvel.com"\
        },\
        {\
            "usdot": "234567890",\
            "name": "Mary Jane",\
            "phone": "5423123456",\
            "email": "mary.jane@marvel.com"\
        }\
    ]
}'

Response:

Response Body:

200 OK – Contacts Deleted Successfully

{
    "contacts": [\
        {\
            "usdot": "123456789",\
            "name": "Peter Parker",\
            "phone": "3432434234",\
            "email": "peter.parker@marvel.com"\
        },\
        {\
            "usdot": "234567890",\
            "name": "Mary Jane",\
            "phone": "5423123456",\
            "email": "mary.jane@marvel.com"\
        }\
    ]
}

400 Bad Request Returned when:

{
    "detail": "Missing required field: contacts"
}
{
    "detail": "All contacts failed to be created"
}
{
    "detail": "Value error, usdot_number must contain only digits."
}
{
    "detail": "contacts list must not be empty"
}

401 Unauthorized

{
    "detail": "Token is missing!"
}
{
    "detail": "Token is expired!"
}

403 Forbidden

{
    "detail": "User not allowed to access this endpoint"
}

Bulk create onboarded carrier contacts

Creates multiple onboarded carrier contacts for the authenticated customer in a single request. Each contact entry is validated using the same rules as the single-contact create flow. At least one contact must be valid for the operation to succeed. The operation follows the same authorization, repository, caching, and creation logic as the single-contact create flow. Each usdot value must contain digits only, be greater than zero, and be at most 9 digits after normalization.

Authorizations

AccessTokenAuth & ApiKeyAuth

Responses

200 Contacts processed successfully.

{
  "created_contacts": [\
    {\
      "id": "bd849e72-09f0-4d19-8b20-e227cd4ef455",\
      "usdot": "123456",\
      "name": "Peter Parker"\
    }\
  ],\
  "failed_contacts": [\
    {\
      "index": 1,\
      "error": "invalid payload: Value error, usdot must be a positive integer."\
    },\
    {\
      "index": 2,\
      "error": "invalid payload: Value error, usdot must contain only digits."\
    },\
    {\
      "index": 3,\
      "error": "invalid payload: Value error, usdot must be at most 9 digits."\
    }\
  ]
}