### Get all blacklisted domains using cURL Source: https://api.manyreach.com/api#v2 Use this endpoint to retrieve a list of all blacklisted domains. Ensure the X-API-Key header is included with your valid API key. Supports filtering by search term and pagination. ```shell curl 'https://api.manyreach.com/api/v2/blacklist/domains?search=&page=1&limit=1&startingAfter=1' \ --header 'X-API-Key: YOUR_SECRET_TOKEN' ``` -------------------------------- ### Get all blacklisted domain Source: https://api.manyreach.com/api#v2 Retrieves a list of all blacklisted domains. Supports searching, pagination, and cursor-based pagination. ```APIDOC ## GET /api/v2/blacklist/domains ### Description API endpoint for GetDomains. Retrieves a list of all blacklisted domains. ### Method GET ### Endpoint https://api.manyreach.com/api/v2/blacklist/domains ### Parameters #### Query Parameters - **search** (string) - Optional - Search term for filtering domains. - **page** (integer) - Optional - Page number (1-indexed, default: 1). Minimum value: 1, Maximum value: 2147483647. - **limit** (integer) - Optional - Items per page (default: 100, max: 1000). Minimum value: 1, Maximum value: 1000. - **startingAfter** (integer) - Optional - Cursor for next page (optional, for cursor-based pagination). ### Responses #### Success Response (200) Domain blacklist retrieved. - **items** (array) - List of blacklisted domains. - **blockId** (integer) - Description not provided. - **domain** (string) - The blacklisted domain. - **createdAt** (string) - The date and time the domain was added to the blacklist. - **pagination** (object) - Pagination details. - **currentPage** (integer) - The current page number. - **pageSize** (integer) - The number of items per page. - **totalItems** (integer) - The total number of items. - **nextCursor** (integer) - The cursor for the next page. #### Error Response (400) Bad request - Malformed request or invalid syntax. #### Error Response (401) Authentication failed - Invalid, expired, or empty API key. #### Error Response (406) Missing required header - X-API-Key header is required. #### Error Response (422) Validation failed - One or more fields are invalid. #### Error Response (429) Rate limit exceeded - Too many requests. #### Error Response (500) Internal server error - An unexpected error occurred. ### Request Example ```bash curl "https://api.manyreach.com/api/v2/blacklist/domains?search=&page=1&limit=1&startingAfter=1" \ --header 'X-API-Key: YOUR_SECRET_TOKEN' ``` ``` -------------------------------- ### Add domains to the blacklist using cURL Source: https://api.manyreach.com/api#v2 Use this endpoint to add one or more domains to the blacklist. The request body must be in JSON format and include a 'domains' array. Authentication is required via the X-API-Key header. ```shell curl https://api.manyreach.com/api/v2/blacklist/domains \ --request POST \ --header 'Content-Type: application/json' \ --header 'X-API-Key: YOUR_SECRET_TOKEN' \ --data '{ "domains": [ "" ] }' ``` -------------------------------- ### Add domains to the blacklist Source: https://api.manyreach.com/api#v2 Adds one or more domains to the blacklist. Requires a JSON payload with a list of domains. ```APIDOC ## POST /api/v2/blacklist/domains ### Description Adds domains to the blacklist. API endpoint for AddDomains. ### Method POST ### Endpoint https://api.manyreach.com/api/v2/blacklist/domains ### Parameters #### Request Body - **domains** (array of strings) - Required - One or more domains to blacklist (with or without @ prefix). ### Responses #### Success Response (200) OK. #### Success Response (201) Domains added to blacklist. #### Error Response (400) Bad request - Malformed request or invalid syntax. #### Error Response (401) Authentication failed - Invalid, expired, or empty API key. #### Error Response (406) Missing required header - X-API-Key header is required. #### Error Response (409) Resource conflict - Duplicate resource or constraint violation. #### Error Response (415) Unsupported media type - Content-Type must be application/json. #### Error Response (422) Validation failed - One or more fields are invalid. #### Error Response (429) Rate limit exceeded - Too many requests. #### Error Response (500) Internal server error - An unexpected error occurred. ### Request Example ```bash curl https://api.manyreach.com/api/v2/blacklist/domains \ --request POST \ --header 'Content-Type: application/json' \ --header 'X-API-Key: YOUR_SECRET_TOKEN' \ --data '{ "domains": [ "example.com" ] }' ``` ``` -------------------------------- ### API Endpoints Source: https://api.manyreach.com/api#v2 This section details the available query parameters for API v2 endpoints. ```APIDOC ## API v2 Endpoints ### Authentication API Key required in `X-API-Key` header for v2 endpoints. ### Headers - `accept`: `application/json`, `text/json` ### Query Parameters - `search` (Value) - Enabled - Description - `page` (Value) - Enabled - Description - `limit` (Value) - Enabled - Description - `startingAfter` (Value) - Enabled - Description ### Request Body None ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.