EmbodiFlowDocs
Open console
Get startedDataWorkflows and algorithmsTraining and deploymentDeveloper reference
  • Developer reference

Authentication

  • Authentication overview
  • API keys
  • Personal access tokens
  • Browser sessions

REST API

  • Using the REST API
  • All endpoints
  • Projects
    • Recordings
      • Upload
        • Episodes and versions
          • Annotation
            • Quality and tasks
              • POST
                Create a episode exclusion request
              • GET
                List quality findings for a dataset version
              • GET
                List quality gate for a dataset version
              • GET
                List quality baselines for a project
              • GET
                List series for a quality baseline
              • POST
                Create a quality reinspection request
              • GET
                List quality rule set for a project
              • PUT
                Update a quality rule set
              • GET
                List health for a quality
              • GET
                List failing or warning quality checks for a project
              • GET
                List summary for a quality
              • GET
                List quality rule catalog
              • POST
                Create a preview request
              • GET
                List repair tasks
              • POST
                Create a repair task
              • GET
                Get a repair task
              • PATCH
                Update a repair task
              • GET
                List review tasks
              • GET
                Get a review task
              • PATCH
                Update a review task
              • POST
                Create a decision request
              • GET
                List quality policy for a current
              • PUT
                Update a quality policy
            • Search
              • Workflows
                • Algorithms
                  • Models
                    • Artifacts and export
                      • Billing and usage
                        • Team and governance
                          • Account and notifications
                            • Webhook endpoints

                              Events

                              • Outbound events
                              • Signature verification

                              Tools

                              • CLI
                              • SDK
                              • MCP

                              Updates

                              • Changelog

                              © 2026 EmbodiFlow

                              llms.txtOpenAPI JSON
                              1. Developer reference
                              2. REST API
                              3. Quality and tasks
                              4. Create a preview request

                              Create a preview request

                              POST
                              /v1/quality-rule-sets/{ruleSetId}/preview-requests
                              curl -X POST 'https://api.embodiflow.io/v1/quality-rule-sets/{ruleSetId}/preview-requests' \
                                -H 'Authorization: Bearer $EMBODIFLOW_PAT' \
                                -H 'Content-Type: application/json' \
                                -d '{
                                  "datasetVersionId": "00000000-0000-0000-0000-000000000000",
                                  "ruleSetDraft": {}
                                }'

                              Authorization

                              Send a personal access token with every request.

                              • Authorization: Bearer PAT
                              Authentication guide

                              Path parameters

                              • ruleSetIdstringrequired

                              Header parameters

                              • Idempotency-Keystring

                                Optional idempotency key, at most 255 characters (UUIDv4 recommended). A repeated key returns the first response byte-for-byte, including a 5xx. The same key with a different body, or a second in-flight request, returns 409 IDEMPOTENCY_CONFLICT. Keys are unique per tenant and retained for 24 hours.

                              Request body

                              Content-Typeapplication/json
                              • datasetVersionIdstring (uuid)required
                              • ruleSetDraftobject

                              Responses

                              Success

                              • dataobjectrequired
                                • qualityRuleSetIdstringrequired
                                • projectIdstringrequired
                                • datasetVersionIdstringrequired
                                • usedDraftone ofrequired
                                • summaryobjectrequired
                                • findingsarray<QualityRuleSetPreviewFindingDto>required
                                • diagnosticsarray<QualityRuleSetPreviewDiagnosticDto>required
                                • versionFindingsarray<object>required
                                • policySnapshotHashstring
                                • metricsDocumentSourcestring | null
                                • draftPolicyErrorstring | null
                                • checksarray<QualityRuleSetPreviewCheckDto>
                              Response example
                              {
                                "data": {
                                  "qualityRuleSetId": "string",
                                  "projectId": "string",
                                  "datasetVersionId": "string",
                                  "usedDraft": false,
                                  "summary": {
                                    "overallStatus": "failed",
                                    "passedCount": 0,
                                    "warningCount": 0,
                                    "failedCount": 0,
                                    "fileCount": 0,
                                    "visibilityStatus": "active",
                                    "notEvaluatedCount": 0
                                  },
                                  "findings": [
                                    {
                                      "datasetVersionFileId": "string",
                                      "logicalPath": "string",
                                      "qualityStatus": "failed",
                                      "details": [
                                        {}
                                      ]
                                    }
                                  ],
                                  "diagnostics": [
                                    {
                                      "severity": "warning",
                                      "code": "string",
                                      "message": "string",
                                      "details": {}
                                    }
                                  ],
                                  "versionFindings": [
                                    {}
                                  ],
                                  "policySnapshotHash": "string",
                                  "metricsDocumentSource": "string",
                                  "draftPolicyError": "string",
                                  "checks": [
                                    {
                                      "checkId": "string",
                                      "bindingIdentity": "string",
                                      "ruleVersion": 0,
                                      "family": "string",
                                      "enabled": false,
                                      "severity": "string",
                                      "blocking": false,
                                      "verdict": "warn",
                                      "nonVerdictReason": "string",
                                      "status": "string",
                                      "message": "string",
                                      "findingCount": 0,
                                      "previewSupported": false
                                    }
                                  ]
                                }
                              }
                              Servershttps://api.embodiflow.io/v1https://api.embodiflow.dev/v1
                              Previous

                              GET /quality-rule-catalog

                              Next

                              GET /repair-tasks

                              curl -X POST 'https://api.embodiflow.io/v1/quality-rule-sets/{ruleSetId}/preview-requests' \
                                -H 'Authorization: Bearer $EMBODIFLOW_PAT' \
                                -H 'Content-Type: application/json' \
                                -d '{
                                  "datasetVersionId": "00000000-0000-0000-0000-000000000000",
                                  "ruleSetDraft": {}
                                }'
                              Response example
                              Status code
                              201
                              ​
                              {
                                "data": {
                                  "qualityRuleSetId": "string",
                                  "projectId": "string",
                                  "datasetVersionId": "string",
                                  "usedDraft": false,
                                  "summary": {
                                    "overallStatus": "failed",
                                    "passedCount": 0,
                                    "warningCount": 0,
                                    "failedCount": 0,
                                    "fileCount": 0,
                                    "visibilityStatus": "active",
                                    "notEvaluatedCount": 0
                                  },
                                  "findings": [
                                    {
                                      "datasetVersionFileId": "string",
                                      "logicalPath": "string",
                                      "qualityStatus": "failed",
                                      "details": [
                                        {}
                                      ]
                                    }
                                  ],
                                  "diagnostics": [
                                    {
                                      "severity": "warning",
                                      "code": "string",
                                      "message": "string",
                                      "details": {}
                                    }
                                  ],
                                  "versionFindings": [
                                    {}
                                  ],
                                  "policySnapshotHash": "string",
                                  "metricsDocumentSource": "string",
                                  "draftPolicyError": "string",
                                  "checks": [
                                    {
                                      "checkId": "string",
                                      "bindingIdentity": "string",
                                      "ruleVersion": 0,
                                      "family": "string",
                                      "enabled": false,
                                      "severity": "string",
                                      "blocking": false,
                                      "verdict": "warn",
                                      "nonVerdictReason": "string",
                                      "status": "string",
                                      "message": "string",
                                      "findingCount": 0,
                                      "previewSupported": false
                                    }
                                  ]
                                }
                              }