Skip to content
Get started

Run Layer

POST/api/v1/layers/run

Execute a set of policies on input data and return the processed result. Policies can be referenced by ID or passed as transient objects with parameters.

Query ParametersExpand Collapse
use_cache: optional boolean
Body ParametersExpand Collapse
input_data: string
layer_position: "input" or "output"
Accepts one of the following:
"input"
"output"
kwargs: optional map[unknown]
policies: optional array of unknown
ReturnsExpand Collapse
overall_policy_outcome: string
policy_results: map[map[unknown]]
span_context: map[string]
processed_data: optional string
Run Layer
curl http://api-staging.overmind.ai/api/v1/layers/run \
    -H 'Content-Type: application/json' \
    -d '{
          "input_data": "input_data",
          "layer_position": "input"
        }'
{
  "overall_policy_outcome": "overall_policy_outcome",
  "policy_results": {
    "foo": {
      "foo": "bar"
    }
  },
  "span_context": {
    "foo": "string"
  },
  "processed_data": "processed_data"
}
Returns Examples
{
  "overall_policy_outcome": "overall_policy_outcome",
  "policy_results": {
    "foo": {
      "foo": "bar"
    }
  },
  "span_context": {
    "foo": "string"
  },
  "processed_data": "processed_data"
}