Create Onboarded Carriers
Create an onboarded carrier contact associated with a specific USDOT. This endpoint allows customers to add their own validated contact information.
Authentication
Include your
Access-Tokenin the header of your requests.Include your
x-api-keyThe API key provided by GenLogs. This header must be included in the request.
Permissions
The external-api-create-onboarded-carrier-contact permission is required to access this endpoint.
Endpoint
URL:
https://api.genlogs.io/onboarded-carrier/contactsMethod: POST
Headers
Access-Token: (string, required): Access token obtained from the "Create Access Token" endpoint.
x-api-key (string, required): The API key provided by GenLogs.
Request Body:
usdot (string, required): Carrier USDOT number. Must be a non-empty value.
name (string, optional): Contact name.
phone (string, optional): Contact phone number
email (string, optional): Contact email address.
Request Example:
Response:
200 OK: A JSON object containing provided information of carrier contacts.
400 Bad Request: If required parameters are missing or invalid.
401 Unauthorized: If the authentication credentials (Access-Token) is missing or incorrect.
403 Forbidden: If the permission has not been added to your user.
500 Internal Server Error: If there is an issue on the server that prevents processing the request.
Response Body:
200 OK – Contact Created Successfully
400 Bad Request
Returned when:
usdotis missing.usdotis provided, but all ofname,phone, andemailare null.usdotis provided, but all ofname,phone, andemailare empty strings.
403 Forbidden
Creates a new onboarded carrier contact for the authenticated customer. Requires a valid JWT token and the appropriate permission.
JWT provided directly in the Access-Token header. No "Bearer" prefix.
API key provided by GenLogs.
Carrier USDOT number. Must be a non-empty value.
1234567Contact name.
Peter ParkerContact phone number.
3432434234Contact created successfully.
Bad Request – Missing or invalid fields.
Unauthorized – Invalid or missing Access-Token.
Forbidden – The user lacks required permission.
Internal Server Error.
Last updated