Skip to main content

External Integration

External Integrations allow customers to push events directly to RedCarbon via webhook, rather than having RedCarbon poll a vendor API. This is useful for proprietary systems or custom tools that can send HTTP requests but don't have a native RedCarbon integration.

For standard vendor integrations (where RedCarbon polls the data), see Integrations.

Configuration​

External integrations are configured per customer. A customer can have several external integrations (one per source), and each integration can have several keys.

1. Create the integration​

  1. Navigate to Organization Admin > Customers.
  2. Click on the customer name to open the details.
  3. Open the External Integrations tab and click Create.
  4. Enter a Name and a Description, then click Create.

2. Create a key​

  1. Open the integration from the list.
  2. In the Keys panel on the right, click Create Key.
  3. Give the key a name (for example, the system that will use it) and click Create.
  4. Copy the key and store it safely: it is shown only once.

Keys are valid for 5 years; the expiration date is shown under each key in the Keys panel. To rotate a key, create a new one and update the sending system.

Sending events​

The sending system pushes each event with an HTTP POST to the RedCarbon external integration endpoint. Your RedCarbon contact provides the endpoint URL.

Authentication​

Send the key in the Authorization header:

Authorization: ApiToken <YOUR_KEY>

If the sending system cannot set custom headers (for example, some webhook senders), pass the key as the token query parameter instead. When both are present, the header is used.

Query parameters​

ParameterRequiredDescription
titleNoTitle of the case.
severityNoSeverity as a whole number (for example 20). Defaults to 0. Text values such as high are rejected.
tokenNoThe key, only when it cannot be sent in the Authorization header.

Body​

The body is the event itself, in any format. It is stored as-is as the Raw Data of the case and passed to the parser as a string. JSON is the most common choice, since the parser can read it with json(raw).

The body can be at most 8 MB.

Example​

curl -X POST "<ENDPOINT_URL>?title=Firewall%20Incident&severity=20" \
-H "Authorization: ApiToken <YOUR_KEY>" \
-H "Content-Type: application/json" \
-d '{"event": {"message": "Blocked connection", "src_ip": "10.0.0.5", "dst_ip": "172.217.16.142"}}'

Responses​

StatusMeaning
202 AcceptedThe event was received and will be processed.
400 Bad RequestA query parameter is invalid (for example, a non-numeric severity).
401 UnauthorizedThe key is missing, invalid, or expired.
403 ForbiddenThe key is recognised but cannot be used (for example, its integration was deleted).
405 Method Not AllowedThe request did not use POST.
413 Request Entity Too LargeThe body is larger than 8 MB.

Every response has a JSON body such as {"status": "Status Accepted"}.

A 202 means the event was accepted, not that the parser succeeded. If no case appears, check the parser code.

Field Parser​

Opening an integration shows a code editor where you define a parser function that remaps or transforms the incoming payload before RedCarbon processes it. This is necessary when the upstream system sends fields with non-standard names or formats. Click Save to apply changes.

When the integration is created, the editor is pre-populated with a minimal template:

const parser: ParserFunc = (raw) => {
const data = json(raw);

return {
classification: {
type: 'test'
},
description: 'this is a test function'
}
}

This is enough to verify that events are reaching RedCarbon. From here, you can expand the parser to remap your payload's fields into a richer structure. For example:

const parser: ParserFunc = (raw) => {
const data = json(raw);
const log = data.event;

// Remap vendor severity strings to RedCarbon's 0-100 scale
const severityMap = { low: 20, medium: 45, high: 75, critical: 90 };
const severity = severityMap[log.severity] ?? 20;

return {
description: log.message,
classification: {
type: log.event_type ?? 'Firewall',
subtype: log.attack ?? 'Generic Incident'
},
severity,
networkTraffics: [{
srcIp: log.src_ip,
dstIp: log.dst_ip,
srcPort: parseInt(log.src_port),
dstPort: parseInt(log.dst_port),
protocols: log.app ? [log.app] : [],
tags: []
}],
users: log.username
? [{ userName: log.username, tags: [] }]
: [],
ipArtifacts: [log.src_ip, log.dst_ip]
.filter(Boolean)
.map(ip => ({ ip })),
tags: ['my-custom-source'],
detectionEngines: ['my-siem']
};
}

The parser is written in TypeScript (plain JavaScript also works) and must define a function named parser. It receives the request body as a string and returns the case data.

The parser runs in an isolated sandbox:

  • It can use these helpers: json(str) to parse JSON, parseInt(str, radix?), and parseDate(date, format).
  • Network access, require, and Node.js APIs are not available.
  • It must finish within 100 ms and stay within 32 MB of memory.

If the parser fails (for example, it throws or returns an invalid structure), the event is not turned into a case.

The more fields you map, the more RedCarbon can do with the event: richer enrichment, better correlation across cases, and more accurate detection. To verify the result of your mapping, review the Raw Data section of an ingested case.

Field Mapping​

RedCarbon is able to recognise common values (such as IP addresses) even without an explicit mapping. However, a correct field mapping significantly increases the system's ability to understand and correlate the event.

Example
external_ip: 172.217.16.142✓ RedCarbon can enrich and correlate the IP
eiadsar: 172.217.16.142✗ Value ingested, but meaning is lost

A well-mapped payload improves detection accuracy, alert enrichment, and analyst readability.

When to use​

External integrations are a good fit for:

  • Quick tests — validate that a source can reach RedCarbon without setting up a full integration.
  • Proprietary systems — internal tools or custom SIEMs that can send webhooks but have no native integration.
  • One-off sources — temporary or low-volume sources where a full polling integration is not justified.