The Global Monitoring API enables businesses to monitor portfolios of companies and receive notifications about critical changes. This document outlines the key steps to:
- Authenticate
- Set up portfolios
- Manage event rules
- View notifications.
Diagram summary (accessibility): Authenticate, then set up and update a portfolio. Next, add companies either individually, via file import, or via import/sync. Then view and activate event rules, review notification events, and reset rules to default when needed.
Before using any of the endpoints, you must authenticate. This ensures you have the necessary permissions to access the data.
POST /authenticateThis endpoint is to create the portfolio, it can hold any number of companies that are required to be monitored.
More than one portfolio can be made to group companies under common rules that you wish to monitor them.
POST /monitoring/portfolios{
"name": "Test Portfolio",
"isDefault": false,
"emails": [
{
"firstName": "John",
"lastName": "Doe",
"emailAddress": "john.doe@example.com"
}
],
"emailSubject": "Creditsafe Monitoring Notification on portfolio {{portfolioName}}",
"emailLanguage": "en",
"frequency": "1"
}- The
namefield is required and should be meaningful for easy identification. Portfolio names must be unique for each user: a second portfolio with the same name returns409"Portfolio with given name already exists.". - The
frequencyproperty must be set to "1" to activate email notifications. - Upon success, the response will include a unique
portfolioIdthat is essential for future interactions.
{
"correlationId": "14cc64a0-c108-11ea-b9af-06bcc69a383e",
"portfolioId": 131318,
"name": "Test Portfolio",
"isDefault": false
}To update portfolio details, such as email notifications or other properties, use the following endpoint.
PATCH /monitoring/portfolios/{portfolioId}- Include the
portfolioIdin the URL path to identify the portfolio to update. - The
frequencyproperty must be set to"1"to activate email notifications. nameis required in every update, even if it isn't changing. Without it the response is400.- Send the full
emailslist in every update. To remove all the recipients, send"emails": []. - A successful update returns
200with a message, for example{"correlationId": "…", "message": "Portfolio 131318 updated"}.
{
"name": "Test Portfolio",
"emails": [
{
"firstName": "John",
"lastName": "Smith",
"emailAddress": "john.smith@example.com"
}
],
"frequency": "1"
}There are three different ways to add companies to a portfolio:
- Add Single Company: Add individual companies to the portfolio using their unique identifiers.
- Import Companies: Upload a file (e.g.,
.csv) containing multiple companies to add them in bulk. - Sync Portfolio: Replace all existing companies in the portfolio with the contents of an uploaded file.
NOTE:
The Sync Portfolio option has a different outcome compared to the other methods. It deletes all previously allocated companies in the portfolio and replaces them with the new file contents. Import and Sync are described in Import and Sync Companies.
Now that you understand the available methods, proceed to the next section for details on how to add companies to a portfolio.
Companies can be added to a portfolio individually or in bulk. Below are the available methods:
- Add Single Company: Add individual companies to the portfolio using their unique identifiers.
- Import or Sync Companies: Upload a file (e.g.,
.csv) containing multiple companies to add them in bulk or replace the existing portfolio contents.
NOTE:
The Import and Sync options, along with detailed guidance on file formats, best practices, and processing considerations, are documented in the Import and Sync Companies section of the product documentation.
This method allows you to add individual companies to a portfolio using their unique identifiers.
POST /monitoring/portfolios/{portfolioId}/companies{
"id": "GB-0-12345678",
"personalReference": "Key supplier",
"freeText": "Review in January",
"personalLimit": ""
}- All properties in the
requestBodyare required. If there is no data for a property, you must pass an empty string ("").nullisn't accepted, and returns400. - The
idfield is the company's connectId or Safe Number. - The company's country must be covered by Global Monitoring (see Monitoring Coverage). Otherwise the response is
400, for example"BR country is not supported". - Adding a company that's already in the portfolio returns
409, for example"Company UK12345678 already in portfolio". personalReferencekeeps up to 150 characters.- The
personalReferenceandfreeTextfields are intended for internal references and notes, allowing you to track additional information about the company. personalLimit:
It is important to note that thepersonalLimitis not part of the credit limit associated with the company. Instead, it represents a limit you set internally for your own record-keeping purposes. Send it as a number in a string, for example"10000". It's stored to 2 decimal places.
To change these fields later, use PATCH /monitoring/portfolios/{portfolioId}/companies/{companyId} with all three of personalReference, freeText and personalLimit. In an update, "" clears the limit.
By using this endpoint, you can efficiently add individual companies to your portfolio, tailoring the information to suit your specific requirements.
When applying event rules to a portfolio for monitoring, it is important to understand which rules are applicable to the companies within that portfolio. There are multiple ways to view available event rules, depending on your specific needs:
The Rules Set on a Portfolio:
This endpoint returns the portfolio's setting (isActiveand the parameters) for every rule: the global (XX) rules and the rules of every country, whichever countries the portfolio's companies are in. Use it to see what's switched on.GET /monitoring/portfolios/{portfolioId}/eventRules
By using this endpoint:
- You see the portfolio's current setting for each rule, so you can check what's active before and after an update.
- The list isn't filtered by the portfolio's companies. To see only the rules that matter, get the countries in the portfolio with
GET /monitoring/portfolios/{portfolioId}/countries, and then the rules for each of those countries (see View Rules for a Specific Country below).
[
{
"isActive": 0,
"ruleCode": 101,
"ruleCountryCode": "XX",
"ruleType": 4,
"ruleTypeName": "Rating band change - 3 input",
"name": "International Score |{2} Return Band(A-E) |Reduce by {0} Band(s) OR Less than Band {1}",
"param0": "1",
"param1": "A"
},
{
"isActive": 0,
"ruleCode": 102,
"ruleCountryCode": "XX",
"ruleType": 5,
"ruleTypeName": "Limit value change - 3 input",
"name": "Limit |{0} Any |Reduce by {1}% OR Less than {2}",
"param0": "True"
}
]isActive: Indicates the status of the rule.0means inactive, and1means active.ruleCode: Unique identifier for the rule. Codes starting with10are global rules that apply universally to all countries.ruleCountryCode: Represents the country code for the rule.XXindicates global applicability, while specific country codes (e.g.,GBfor Great Britain) apply to companies in that country.ruleType: Numerical representation of the rule type.ruleTypeName: Descriptive name of the rule type, making it easier to understand the event being monitored.name: Describes the event notification triggers for the rule, including any required parameters (param0,param1,param2).exclusiveRuleCode: returned on some country rules only. It's the global rule that the country rule overlaps:101(International Score) for local rating rules, and102(Limit) for local limit rules.
NOTE: For additional information on rules that require parameters (
param0,param1,param2), refer to the Special Event Rules Documentation.
- View Rules for a Specific Country: If you want to see the rules available for a particular country included in your portfolio, you can use the following endpoint:
GET /monitoring/portfolios/{portfolioId}/eventRules/{countryCode}By specifying the countryCode in the URL path (e.g., GB for Great Britain), the API will return the global (XX) rules and the rules for that country, with the portfolio's setting for each. This approach is useful when you need to focus on country-specific rules.
Use an upper-case ISO 3166-1 alpha-2 code, for example GB.
- View All Available Rules: For a more comprehensive view, you can call the endpoint that provides a complete list of all available rules. This method is less targeted but allows you to explore all rules, regardless of their applicability to your portfolio.
GET /monitoring/eventRulesThis endpoint is ideal if you want to review the full range of event rules supported by the API.
- Use View Rules for a Specific Country for each country in the portfolio (from
GET /monitoring/portfolios/{portfolioId}/countries) to see the rules that apply to its companies. - Use The Rules Set on a Portfolio to check which rules are active across the whole portfolio.
- Refer to the Special Event Rules Documentation for detailed guidance on rules requiring parameters (
param0,param1,param2) and how to configure them effectively.
By leveraging these endpoints, you can efficiently manage event rules for your portfolio, ensuring that your monitoring setup is tailored to your specific requirements.
Activating event rules for a portfolio is a critical step in setting up monitoring. This section outlines the best practices and methods for activating rules, ensuring they are applied correctly to your portfolio.
PUT /monitoring/portfolios/{portfolioId}/eventRules/{countryCode}- Replace
{portfolioId}with the unique identifier of the portfolio. - Replace
{countryCode}with: -XXfor Global Rules (rules that apply to all countries in the portfolio). -A specific country code in upper case (e.g.,FRfor France) for Local Rules. - A successful update returns
204, with no body.
[
{
"ruleCode": 101,
"isActive": 1,
"param0": "",
"param1": "Any",
"param2": "true"
}
]ruleCode: The unique identifier for the rule you want to activate.isActive: Set to 1 to activate the rule or 0 to deactivate it.param0,param1,param2: For a rule that has parameters, send all of its parameters every time you send the rule, as strings, including when you're only switching the rule on or off. For rules that do not require parameters, omit these fields.
- Global Rules:
- Use XX as the countryCode in the endpoint.
- Global rules apply to all countries in the portfolio.
- Example Global Rule Codes: 101, 102, 104, 105, 106, 107.
PUT /monitoring/portfolios/{portfolioId}/eventRules/XXLocal Rules:
- Use the specific country code (e.g., FR for France) in the endpoint.
- Local rules apply only to companies in the specified country.
PUT /monitoring/portfolios/{portfolioId}/eventRules/FRImportant:
Send global rules toXXand local rules to their own country code. Read the rules back after every update to check the result.
Send the Rules You're Changing, with All Their Parameters:
Rules you don't send keep their current setting, so you don't need to resubmit the entire list. For each rule you do send, includeisActiveand all of its parameters.Verify Changes: After activating or updating rules, verify the active rules for your portfolio by calling the View Available Event Rules endpoint:
Use Parameters Where Required: Some rules require additional parameters (
param0,param1,param2) to function. For detailed guidance on parameterized rules, refer to the Special Event Rules Documentation.
Retrieve Applicable Rules:
Use the View Available Event Rules endpoint to get a filtered list of rules for your portfolio.Prepare the Request Body:
Include the ruleCode, isActive, and any required parameters (param0,param1,param2) in the request body.Activate Rules:
Send aPUTrequest to the appropriate endpoint (XXfor global rules or a specific country code for local rules).Verify Activation:
Call the View Available Event Rules endpoint again to confirm that the rules have been successfully activated.
Error Handling:
If an error occurs during activation, review the request body and ensure all required fields are included. For rules requiring parameters, verify that the correct values are provided.Parameters:
Always include each rule's parameters when you send it, using the values in the Special Event Rules.
By following these best practices and using the provided endpoints effectively, you can tailor the monitoring capabilities of the API to meet your specific business requirements.
The Global Monitoring API provides multiple ways to view notification events, allowing you to track changes and updates across portfolios and companies. This section outlines the available endpoints and their use cases.
To view all notification events that have occurred within a specific portfolio, use the following endpoint:
GET /monitoring/portfolios/{portfolioId}/notificationEvents- Replace {portfolioId} with the unique identifier of the portfolio.
- This endpoint provides a comprehensive list of all notification events for the specified portfolio, including:
- Credit limit changes
- Company updates
- Other critical information related to the companies in the portfolio
This endpoint is ideal for monitoring changes within a specific portfolio, enabling you to stay updated on relevant events and respond to developments in a timely manner.
To view all notification events across all portfolios, use the following endpoint:
GET /monitoring/notificationEvents- This endpoint retrieves a consolidated list of all notification events triggered by enabled rules across all portfolios.
- It is useful for gaining a high-level overview of all monitored activities without focusing on a single portfolio.
Use this endpoint to monitor global changes across your entire portfolio structure, ensuring no critical updates are missed.
To view the notification events for one company in a portfolio, use the following endpoint:
GET /monitoring/portfolios/{portfolioId}/companies/{companyId}/notificationEventsTo see how many notification events a portfolio had on each day, use the following endpoint. Both startDate and endDate are required.
GET /monitoring/portfolios/{portfolioId}/notificationEvents/dataByDay?startDate=2026-10-25&endDate=2026-11-25To view the events for a specific company, use the following endpoint:
GET /monitoring/companies/{id}/events- Replace
{id}with the unique identifier of the company. - Events are only returned for a company that's in at least one of your portfolios. For any other company the response is
200with an empty list, not an error. - This endpoint provides detailed event information specific to the company, such as:
- Credit score changes
- Status updates
- Other company-specific notifications
This endpoint is ideal for tracking changes and updates for a specific company, allowing you to focus on individual entities within your portfolios.
Use Portfolio-Specific Events for Targeted Monitoring:
Start with the portfolio-specific endpoint to focus on changes relevant to a particular portfolio.Leverage Global Events for a Broader View: Use the all-events endpoint to gain a comprehensive overview of all notifications across your portfolios.
Drill Down to Company-Level Events When Needed: For detailed insights into a specific company, use the company-specific endpoint.
Verify Enabled Rules:
Ensure that the appropriate event rules are enabled for your portfolios to capture the desired notifications. Refer to the Activate Event Rules section for guidance.Filter by Date:
The notification event lists and company events takestartDateandendDate. Send a date, for example2026-11-25; a date and time is also accepted, for example2026-11-25T09:30:00Z.
- Monitor Portfolio Events: Use the portfolio-specific endpoint to track changes within a specific portfolio:
GET /monitoring/portfolios/{portfolioId}/notificationEvents- Review All Events: Use the global events endpoint to review all notifications across portfolios:
GET /monitoring/notificationEvents- Focus on a Specific Company: Use the company-specific endpoint to track updates for an individual company:
GET /monitoring/companies/{id}/eventsBy leveraging these endpoints effectively, you can stay informed about critical changes and updates, ensuring that your monitoring setup is tailored to your business needs.
Resetting all event rules to their default state is a significant action that disables all event monitoring for the specified portfolio. This endpoint is useful if you want to temporarily pause monitoring or start with a clean slate.
PUT /monitoring/portfolios/{portfolioId}/eventRules/setDefault- Replace
{portfolioId}with the unique identifier of the portfolio. - This endpoint sets all event rules within the portfolio to
Off, effectively disabling all event monitoring for the companies in the portfolio. - It also resets each rule's parameters to their defaults. For example, rule 101 goes back to
param0: "1"andparam1: "A", and rule 102 toparam0: "True". - A successful reset returns
204, with no body.
- Pause Monitoring: Temporarily disable all event rules for a portfolio while retaining the portfolio structure.
- Start Fresh: Reset all rules to their default state before reconfiguring and activating specific event rules.
Significant Action:
Resetting all event rules will disable monitoring for all companies in the portfolio. Use this endpoint judiciously and ensure you understand its implications.Reactivation Required:
After resetting, you will need to manually activate the desired event rules again. Refer to the Activate Event Rules section for guidance.
- Reset Rules: Send a PUT request to the endpoint to reset all event rules for the portfolio:
PUT /monitoring/portfolios/{portfolioId}/eventRules/setDefault- Verify Reset: Use the View Available Event Rules endpoint to confirm that all rules have been disabled:
GET /monitoring/portfolios/{portfolioId}/eventRules- Reconfigure Rules: After resetting, reconfigure and activate the required rules using the Activate Event Rules endpoint.
By using this endpoint effectively, you can manage your portfolio's event rules with flexibility, ensuring that your monitoring setup aligns with your business needs.
| Task | Endpoint | Notes |
|---|---|---|
| Copy companies to other portfolios | POST /monitoring/portfolios/{portfolioId}/companies/copy | Send portfolios and companies, or only portfolios with copyAll=true to copy every company. |
| Move companies to other portfolios | POST /monitoring/portfolios/{portfolioId}/companies/remove | Send portfolios and companies, or only portfolios with removeAll=true to move every company. |
| Remove companies from a portfolio | PATCH /monitoring/portfolios/{portfolioId}/companies/clear | Send companies as a list of ids, or clearAll=true with no companies to empty the portfolio. |
| Remove one company | DELETE /monitoring/portfolios/{portfolioId}/companies/{companyId} | |
| Delete a portfolio | DELETE /monitoring/portfolios/{portfolioId} | The portfolio's companies are removed with it. |
- Every one of these acts on the portfolio in the path only. There's no endpoint that deletes all portfolios at once.
- For copy and move, a target portfolio that already holds a company is skipped: the response counts the pairs requested (
totalPortfoliosCompanies) and the pairs done (successfulPortfoliosCompanies). When every target already holds the companies, the response is409"PortfolioCompanies already Exist". - For clear, copy and move, send either
companiesor the…All=trueswitch. - When you remove a company that's also in another of your portfolios, the message says the monitoring credit wasn't decremented, because the company is still monitored there.