Customer Compliance Rules

This endpoint allows users to retrieve all compliance rules currently configured for an authenticated customer.

Authentication

  • Include your Access-Token and x-api-key in the header of your requests.

Permissions

The external-api-compliance-rules permission is required to access this endpoint.

Endpoint

  • URL: https://api.genlogs.io/customer-compliance-rules

  • Method: GET

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 Example:

curl --location 'https://api.genlogs.io/customer-compliance-rules' \
--header 'access-token: <your-api-token>' \
--header 'x-api-key: <your-x-api-key>' \

Response:

  • 200 OK: A JSON object containing the list of carrier rules under the authenticated customer.

  • 401 Unauthorized: If the authentication credentials (Access-Token) is missing or incorrect.

  • 403 Forbidden: If the permission has not been set to your user.

  • 500 Internal Server Error: If there is an issue on the server that prevents processing the request.

Response Body:

200 OK

401 Forbidden

403 Forbidden

Retrieve customer compliance rules

get

Returns all compliance rules configured for the authenticated customer. Only rules belonging to the customer associated with the Access-Token are returned. Requires the external-api-compliance-rules permission.

Authorizations
Access-TokenstringRequired

JWT provided directly in the Access-Token header. No "Bearer" prefix.

x-api-keystringRequired

API key provided by GenLogs.

Responses
chevron-right
200

Compliance rules retrieved successfully.

application/json
get
/customer-compliance-rules

Last updated