Skip to content

API: Projects

Check a rendered asset against the brief: each mismatch of size, rate, length or alpha with the value expected

GET /api/v1/projects/{id}/motion/check: Check a rendered asset against the brief: each mismatch of size, rate, length or alpha with the value expected

Last updated:

GET/api/v1/projects/{id}/motion/check

Authentication#

Send the secret in the header Authorization: Bearer <secret>: the local token in local mode, an API key in network mode. An API key needs the read scope; the local token has every scope. See the API overview for both modes.

Path parameters#

NameTypeRequiredDescription
idstringyesmin length 1

Query parameters#

NameTypeRequiredDescription
asset_idstringyesThe asset to check: an asset of the project, ready.. min length 1
timeline_idstringnoThe timeline of the project; required when the project has several.
fromstringnoStart of the range, a time; default 0s.
untilstringnoEnd of the range, exclusive; default the end of the timeline.
track_idstringnoThe visual track the clip will go on; tells whether the render needs alpha.

Responses#

200 OK#

Content type application/json. Schema: MotionCheckResult.

NameTypeRequiredDescription
asset_idstringno
asset_namestringno
duration_framesintegerno
frame_rateRationalno
heightintegerno
mismatchesarray of Mismatchno
needs_alphabooleanno
okbooleanno
project_idstringno
revisioninteger (int64)no
textstringno
untrusted_noticestringno
widthintegerno

400#

Validation failed; errors maps each field to its messages and issues lists each problem with its code, key and params

Content type application/problem+json. Schema: Problem.

401 Unauthorized#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

403#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

404#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

429#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

Any other status#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

curl -X GET "http://127.0.0.1:7878/api/v1/projects/PROJECT_ID/motion/check?asset_id=string" \
  -H "Authorization: Bearer $STUARTY_KEY"

Response examples

{
  "asset_id": "string",
  "asset_name": "string",
  "duration_frames": 0,
  "frame_rate": {
    "den": 0,
    "num": 0
  },
  "height": 0,
  "mismatches": [
    {
      "expected": "string",
      "field": "string",
      "found": "string",
      "hint": "string"
    }
  ],
  "needs_alpha": false,
  "ok": false,
  "project_id": "string",
  "revision": 0,
  "text": "string",
  "untrusted_notice": "string",
  "width": 0
}

The examples are built from the schemas of the OpenAPI document, so a value is a placeholder of its type. The fields that carry the real values are in the tables.