Skip to main content
POST
/
enrichment
/
mapping
/
schema
/
create
Create mapping schema
curl --request POST \
  --url 'https://api.flashcat.cloud/enrichment/mapping/schema/create?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "schema_name": "CMDB Lookup",
  "description": "Enrich alerts with CMDB data",
  "source_labels": [
    "host"
  ],
  "result_labels": [
    "owner",
    "team",
    "service"
  ]
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {
    "schema_id": "665f1a2b3c4d5e6f7a8b9c01",
    "schema_name": "CMDB Lookup"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.flashcat.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Restrictions

AspectValue
Rate limits1,000 requests/minute; 50 requests/second per account
PermissionsMappings Manage (on-call)

Usage

  • Schema names must be unique within an account.
  • source_labels (1–3 labels) are used as lookup keys; result_labels (1–10 labels) are the labels written on match.
  • Label names must match ^[a-z][a-z0-9_]{0,39}$ (lowercase).
  • source_labels and result_labels must not overlap.
  • An account can have at most 20 mapping schemas.
  • Every call is recorded in the account audit log. Don’t put secrets in request fields.

Authorizations

app_key
string
query
required

App key issued from the Flashduty console under Account → APP Keys. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json
schema_name
string
required

Unique schema name (max 39 chars).

Maximum string length: 39
source_labels
string[]
required

Lookup key label names (1–3). Must not overlap with result_labels.

Maximum array length: 3
result_labels
string[]
required

Output label names (1–10). Must not overlap with source_labels.

Maximum array length: 10
description
string

Optional description (max 500 chars).

Maximum string length: 500
team_id
integer<int64>

Owning team ID. 0 means no team.

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object
required

Endpoint-specific payload. See each operation's 200 response schema.