Delete Onboarded Carrier Bulk | Genlogs API Docs

Authentication

Permissions

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

Endpoint

Headers

Request body

Request Example:

curl --location --request DELETE '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 '{
    "contact_ids": [\
        "11111111-2222-3333-4444-555555555555",\
        "11111111-2222-3333-4444-555555555556",\
        "11111111-2222-3333-4444-555555555557"\
    ]
}'

Response:

Response Body:

200 OK – Contacts Deleted Successfully

{
    "contacts": [\
        {"id": "11111111-2222-3333-4444-555555555555", "deleted": true},\
        {"id": "11111111-2222-3333-4444-555555555556", "deleted": true},\
        {"id": "11111111-2222-3333-4444-555555555557", "deleted": true}\
    ]
}

400 Bad Request

Returned when:

{
    "detail": "Missing required field: contact_ids"
}
{
    "detail": "Value error, contact_ids must not be empty"
}

401 Unauthorized

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

403 Forbidden

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

404 Not Found

{
    "detail": "One or more contacts were not found or do not belong to the customer."
}

Bulk delete onboarded carrier contacts

Deletes multiple onboarded carrier contacts for the authenticated customer in a single request. All provided contact IDs must exist and belong to the authenticated customer. The operation follows the same authorization, repository, caching, and deletion logic as the single-contact delete flow.

Authorizations

AccessTokenAuth & ApiKeyAuth

Body

application/json

Responses

{ "contacts": [
{"id": "bd849e72-09f0-4d19-8b20-e227cd4ef455", "deleted": true}
] }

- **400**: Bad Request – Invalid request body.
- **401**: Unauthorized – Invalid or missing Access-Token.
- **403**: Forbidden – Missing required permission.
- **404**: One or more contacts not found or not owned by the customer.
- **500**: Internal Server Error.