Get Onboarded Carriers | Genlogs API Docs

Authentication

Permissions

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

Endpoint

Headers

Request Body:

Request Example:

curl --location 'https://api.genlogs.io/onboarded-carrier/contacts?page=4&page_size=2' \
--header 'access-token: <your-access-token>' \
--header 'x-api-key: <your-x-api-key>'

Response:

Response Body:

200 OK – Contacts listed Successfully

{
  "contacts": [
    {
      "contact_id": "00-11-22-33-44",
      "dot_number": "123456",
      "customer_id": 3,
      "contact_name": "John",
      "contact_email": "john@email.com",
      "contact_phone": "(555) 555-5555",
      "contact_source": "GENLOGS"
    },
    {
      "contact_id": "11-22-33-44-55",
      "dot_number": "765432",
      "customer_id": 3,
      "contact_name": "Mike",
      "contact_email": "mike@email.com",
      "contact_phone": "(555) 555-5566",
      "contact_source": "GENLOGS"
    }
  ],
  "pagination": {
    "page_size": 2,
    "current_page": 4,
    "total_pages": 10
  }
}

400 Bad Request Returned when:

{
    "detail": "usdot_number cannot be empty"
}
{
    "detail": "page 2 is out of range. Maximum page is 1"
}

403 Forbidden

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

Retrieve onboarded carrier contacts

GET https://api.genlogs.io/onboarded-carrier/contacts

Returns a paginated list of onboarded carrier contacts for the authenticated customer. Only contacts belonging to the customer identified in the JWT are returned. Requires the external-api-get-onboarded-carrier-contact permission.

Authorizations

Query parameters

Responses

200: Onboarded carrier contacts retrieved successfully.

application/json

400: Bad Request – Invalid query parameters. 401: Unauthorized – Invalid or missing authentication headers. 403: Forbidden – User does not have required permission. 500: Internal Server Error.