Velacent Bridge: beta December 2026, general availability early 2027. E-mail sales to request beta access.

Documentation menu

Mappings API

Last updated . Documentation for the current release. Ask in the product.

4 operations. Back to the API overview. Examples use synthetic data.

List mappings

GET /admin/v1/mappings

Needs the permission: config:history.

Response 200

Response fields of List mappings
FieldTypePresenceDescription
code_mapsarray of stringoptional-
code_setsarray of stringoptional-
functionsanyoptional-
mappingsarray of object (MappingSummary)optional-
mappings.[]activeobject (ActiveJSON)optional-
mappings.[]descriptionstringoptional-
mappings.[]draftobject (ScriptCode)optionalCode is one script version: what runs.
mappings.[]draft_sha256stringoptional-
mappings.[]hand_editedbooleanoptional-
mappings.[]idstringoptional-
mappings.[]kept_blocksbooleanoptional-
mappings.[]pendingbooleanoptionalPending: the draft differs from the active version.
mappings.[]routesarray of stringoptional-
mappings.[]rulesintegeroptional-
mappings.[]samplesintegeroptional-
mappings.[]versionintegeroptional-
max_rulesanyoptional-
Example response (synthetic data)
{
  "code_maps": [
    "example"
  ],
  "code_sets": [
    "example"
  ],
  "functions": {},
  "mappings": [
    {
      "active": {
        "activated_at": "2026-01-15T14:30:00Z",
        "activated_by": "example",
        "code": {
          "dialect": "example",
          "format": "example",
          "kind": "example",
          "language": "example",
          "limits": {},
          "output": "example",
          "source": "example"
        },
        "draft_version": 1,
        "samples_passed": 1,
        "sha256": "example"
      },
      "description": "example",
      "draft": {
        "dialect": "example",
        "format": "example",
        "kind": "example",
        "language": "example",
        "limits": {
          "memory_mb": 1,
          "time_ms": 1
        },
        "output": "example",
        "source": "example"
      },
      "draft_sha256": "example",
      "hand_edited": true,
      "id": "example-id",
      "kept_blocks": true,
      "pending": true,
      "routes": [
        "example"
      ],
      "rules": 1,
      "samples": 1,
      "version": 1
    }
  ],
  "max_rules": {}
}

Other responses

  • 401 Authentication required
  • 403 Not permitted
  • 404 Not Found
  • 503 Unavailable (nothing was changed)
Example request
curl --request GET \
  --header "Authorization: Bearer $ID_TOKEN" \
  "https://YOUR-CONSOLE-HOST/admin/v1/mappings"

Preview mapping

POST /admin/v1/mappings/preview

Needs the permissions: config:write, payload:read.

Request body

Request body of Preview mapping
FieldTypePresenceDescription
idstringoptionalID is the script the rules belong to (its kept blocks run too and its saved samples can be used); empty for a new mapping.
mappingobject (MappingMapping)optionalMapping is a visual mapping: the message format and its rules.
mapping.formatstringoptional-
mapping.namespacesmap of stringoptionalNamespaces binds the prefixes an xml mapping's paths use ("p" to its namespace URI). An unprefixed name matches that local name in any namespace, so most mappings need none.
mapping.rulesarray of object (MappingRule)optional-
messagestringoptionalMessage is a pasted sample (payload:read); Sample names a saved one.
samplestringoptional-
Example request body (synthetic data)
{
  "id": "example-id",
  "mapping": {
    "format": "example",
    "namespaces": {
      "example": "example"
    },
    "rules": [
      {
        "from": "example",
        "index": 1,
        "map": "example",
        "note": "example",
        "op": "example",
        "otherwise": "example",
        "part": "example",
        "separator": "example",
        "sources": [
          "example"
        ],
        "system": "example",
        "target": "example",
        "to": "example",
        "transform": "example",
        "value": "example",
        "when": {
          "op": "example",
          "source": "example",
          "value": "example"
        }
      }
    ]
  },
  "message": "Example text",
  "sample": "example"
}

Response 200

Example response (synthetic data)
{}

Other responses

  • 401 Authentication required
  • 403 Not permitted
  • 404 Not Found
  • 503 Unavailable (nothing was changed)
Example request
curl --request POST \
  --header "Authorization: Bearer $ID_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"id":"example-id","mapping":{"format":"example","namespaces":{"example":"example"},"rules":[{"from":"example","index":1,"map":"example","note":"example","op":"example","otherwise":"example","part":"example","separator":"example","sources":["example"],"system":"example","target":"example","to":"example","transform":"example","value":"example","when":{"op":"example","source":"example","value":"example"}}]},"message":"Example text","sample":"example"}' \
  "https://YOUR-CONSOLE-HOST/admin/v1/mappings/preview"

Get mapping

GET /admin/v1/mappings/{id}

Needs the permissions: config:history, payload:read.

Parameters

Parameters of Get mapping
NameInTypePresenceDescription
idpathstringrequired-

Response 200

Response fields of Get mapping
FieldTypePresenceDescription
code_mapsarray of stringoptional-
code_setsarray of stringoptional-
editableanyoptional-
functionsanyoptional-
max_rulesanyoptional-
not_editablestringoptional-
parsedanyoptional-
samplesanyoptional-
samples_visiblebooleanoptional-
scriptobject (ScriptSummary)optional-
script.activeobject (ActiveJSON)optional-
script.descriptionstringoptional-
script.draftobject (ScriptCode)optionalCode is one script version: what runs.
script.draft_sha256stringoptional-
script.idstringoptional-
script.pendingbooleanoptionalPending: the draft differs from the active version.
script.routesarray of stringoptional-
script.samplesintegeroptional-
script.versionintegeroptional-
Example response (synthetic data)
{
  "code_maps": [
    "example"
  ],
  "code_sets": [
    "example"
  ],
  "editable": {},
  "functions": {},
  "max_rules": {},
  "not_editable": "example",
  "parsed": {},
  "samples": {},
  "samples_visible": true,
  "script": {
    "active": {
      "activated_at": "2026-01-15T14:30:00Z",
      "activated_by": "example",
      "code": {
        "dialect": "example",
        "format": "example",
        "kind": "example",
        "language": "example",
        "limits": {
          "memory_mb": 1,
          "time_ms": 1
        },
        "output": "example",
        "source": "example"
      },
      "draft_version": 1,
      "samples_passed": 1,
      "sha256": "example"
    },
    "description": "example",
    "draft": {
      "dialect": "example",
      "format": "example",
      "kind": "example",
      "language": "example",
      "limits": {
        "memory_mb": 1,
        "time_ms": 1
      },
      "output": "example",
      "source": "example"
    },
    "draft_sha256": "example",
    "id": "example-id",
    "pending": true,
    "routes": [
      "example"
    ],
    "samples": 1,
    "version": 1
  }
}

Other responses

  • 401 Authentication required
  • 403 Not permitted
  • 404 Not Found
  • 503 Unavailable (nothing was changed)
Example request
curl --request GET \
  --header "Authorization: Bearer $ID_TOKEN" \
  "https://YOUR-CONSOLE-HOST/admin/v1/mappings/example-id"

Put mapping

PUT /admin/v1/mappings/{id}

Needs the permission: config:write.

Parameters

Parameters of Put mapping
NameInTypePresenceDescription
idpathstringrequired-

Request body

Request body of Put mapping
FieldTypePresenceDescription
descriptionstringoptional-
mappingobject (MappingMapping)optionalMapping is a visual mapping: the message format and its rules.
mapping.formatstringoptional-
mapping.namespacesmap of stringoptionalNamespaces binds the prefixes an xml mapping's paths use ("p" to its namespace URI). An unprefixed name matches that local name in any namespace, so most mappings need none.
mapping.rulesarray of object (MappingRule)optional-
reasonstringoptional-
sampleobject (MappingSampleIn)optional-
sample.messagestringoptional-
sample.namestringoptional-
versionintegeroptional-
Example request body (synthetic data)
{
  "description": "example",
  "mapping": {
    "format": "example",
    "namespaces": {
      "example": "example"
    },
    "rules": [
      {
        "from": "example",
        "index": 1,
        "map": "example",
        "note": "example",
        "op": "example",
        "otherwise": "example",
        "part": "example",
        "separator": "example",
        "sources": [
          "example"
        ],
        "system": "example",
        "target": "example",
        "to": "example",
        "transform": "example",
        "value": "example",
        "when": {
          "op": "example",
          "source": "example",
          "value": "example"
        }
      }
    ]
  },
  "reason": "Example text",
  "sample": {
    "message": "Example text",
    "name": "example-name"
  },
  "version": 1
}

Response 200

Example response (synthetic data)
{}

Other responses

  • 401 Authentication required
  • 403 Not permitted
  • 404 Not Found
  • 503 Unavailable (nothing was changed)
Example request
curl --request PUT \
  --header "Authorization: Bearer $ID_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"description":"example","mapping":{"format":"example","namespaces":{"example":"example"},"rules":[{"from":"example","index":1,"map":"example","note":"example","op":"example","otherwise":"example","part":"example","separator":"example","sources":["example"],"system":"example","target":"example","to":"example","transform":"example","value":"example","when":{"op":"example","source":"example","value":"example"}}]},"reason":"Example text","sample":{"message":"Example text","name":"example-name"},"version":1}' \
  "https://YOUR-CONSOLE-HOST/admin/v1/mappings/example-id"

Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.