The Platform API

Compiled Policies

Manage your videos, ask questions, and build applications with the Platform API. Explore the operations below for request details, responses, and examples.

Compiled Policies

The structured rule-sets produced by the Policy Compiler. Moderation evaluates content against the active compiled policy version.

GET/api/v1/projects/:projectId/compiled-policiesList compiled policy versions

List compiled policy versions

Send the request to https://platform.endlessai.com/api/v1/projects/:projectId/compiled-policies using your project key or user token.

GET/api/v1/projects/:projectId/compiled-policies/:policyIdGet one version (rules + open questions)

Get one version (rules + open questions)

Send the request to https://platform.endlessai.com/api/v1/projects/:projectId/compiled-policies/:policyId using your project key or user token.

PATCH/api/v1/projects/:projectId/compiled-policies/:policyIdBetaEdit a compiled policy version

Edit a compiled policy version

Beta: this operation may change before it is final.

Send the request to https://platform.endlessai.com/api/v1/projects/:projectId/compiled-policies/:policyId using your project key or user token.

PUT/api/v1/projects/:projectId/compiled-policies/activeSet the active policy version

Set the active policy version

{ "policyId": "pol_a1b2c3" }
DELETE/api/v1/projects/:projectId/compiled-policies/:policyIdDelete a version

Delete a version

Send the request to https://platform.endlessai.com/api/v1/projects/:projectId/compiled-policies/:policyId using your project key or user token.