---
title: "Test Cel"
method: POST
path: "/api/v1/workload_federation/test-cel"
tags: ["Workload Federation"]
---

# Test Cel

`POST /api/v1/workload_federation/test-cel`

TestCEL evaluates a CEL expression against provided claims without
 requiring a JWT, provider, or trust. Used for expression authoring.

## Request body

- C1ApiWorkloadFederationV1WorkloadFederationServiceTestCELRequest — The WorkloadFederationServiceTestCELRequest message.
  - `claimsJson` string — The claims to evaluate against, as a JSON string. Parsed into map[string]any for CEL evaluation.
  - `expression` string — The CEL expression to evaluate. Must return bool.

## Response `200`

Successful response

- C1ApiWorkloadFederationV1WorkloadFederationServiceTestCELResponse — The WorkloadFederationServiceTestCELResponse message.
  - `error` string — Error message if compilation or evaluation failed.
  - `expression` string — The expression that was evaluated (echo back).
  - `matched` boolean — Whether the expression matched (returned true).

---

[API](https://skmtc.net/conductorone/apis/c1-api.md) · [All operations](https://skmtc.net/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conductorone/c1-api/versions/d391405a35d3/schema)
