Skip to content

API: Projects

What a render by an external motion engine must fit: size, rate, length, safe area, brand kit, captions and reference frames

GET /api/v1/projects/{id}/motion/brief: What a render by an external motion engine must fit: size, rate, length, safe area, brand kit, captions and reference frames

Last updated:

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

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
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: MotionBriefResult.

NameTypeRequiredDescription
brand_kitMotionBrandno
captionsarray of MotionCaptionno
durationTimeValueno
duration_framesintegerno
frame_rateRationalno
framesarray of MotionFrameno
fromTimeValueno
heightintegerno
image_tokensintegerno
marginsMarginsno
needs_alphabooleanno
project_idstringno
revisioninteger (int64)no
safe_areaRectno
textstringno
trackTrackInfo or any or null or nullno
untilTimeValueno
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/brief" \
  -H "Authorization: Bearer $STUARTY_KEY"

Response examples

{
  "brand_kit": {
    "colors": {},
    "fonts": [
      "string"
    ],
    "logo": "string"
  },
  "captions": [
    {
      "end": 0,
      "item_id": "string",
      "start": 0,
      "text": "string"
    }
  ],
  "duration": {
    "frame": 0,
    "seconds": 0
  },
  "duration_frames": 0,
  "frame_rate": {
    "den": 0,
    "num": 0
  },
  "frames": [
    {
      "at": {},
      "height": 0,
      "image_base64": "string",
      "image_tokens": 0,
      "mime": "string",
      "path": "string",
      "role": "string",
      "width": 0
    }
  ],
  "from": {
    "frame": 0,
    "seconds": 0
  },
  "height": 0,
  "image_tokens": 0,
  "margins": {
    "bottom": 0,
    "left": 0,
    "right": 0,
    "top": 0
  },
  "needs_alpha": false,
  "project_id": "string",
  "revision": 0,
  "safe_area": {
    "height": 0,
    "width": 0,
    "x": 0,
    "y": 0
  },
  "text": "string",
  "track": {
    "id": "string",
    "name": "string",
    "overlay": false
  },
  "until": {
    "frame": 0,
    "seconds": 0
  },
  "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.