API reference

Renders

1 operation. Base URL https://api.scarleta.ai. Select an operation to see its parameters, samples and errors.

Jump to an operation
GET/v1/audio/{fileId}/children

List the files made from a file

Free and paid accounts
  • API key required
  • Free and paid accounts
  • No token cost

Returns the files that were made from one of your files: crops, effects, noise-reduced versions and stems (the "renders" of a take), newest first. Archived renders are left out. Each entry has the audio_url to use when analysing it. A file with no renders, a file that does not exist and a file that is not yours all answer an empty list; the route never reveals another account's files. On success this route answers { data, meta }, and meta carries counts but no request_id. If the database is briefly unavailable the route answers 503 db_unavailable; retry after a short wait.

Cost. Free of charge.

FILEID="YOUR_FILEID"
curl "https://api.scarleta.ai/v1/audio/$FILEID/children" \
  -H "Authorization: Bearer $SCARLETA_API_KEY"

Parameters

NameTypeRequiredDescription
fileIdpathstringRequiredThe `audio_id` of one of your files. A trailing media extension such as `.wav` is ignored.
Response fields
FieldTypeDescription
[].audio_idstringRegistry identifier of the derived file; it starts with `audio_`.
[].namestring | nullDisplay name of the derived file, or null.
[].relationship_typestring | nullHow it was made from the parent, for example `crop`, `effect`, `stem` or `noise_reduction`.
[].derived_rolestring | nullFor a stem, which part it is (for example `vocals`); null for the other kinds.
[].formatstring | nullFile format, for example `wav`, when known.
[].file_size_bytesnumber | nullSize in bytes, when known.
[].duration_secondsnumber | nullLength of the audio, when known.
[].uploadednumber | nullWhen the file was created, in milliseconds since the Unix epoch.
[].analyzed_categoriesarray<string>Analysis categories this file already has results for.
[].audio_urlstring | nullURL to pass as `audio_url` when running an analysis on this file.
[].playback_urlstring | nullLink for playing the file in a browser; the same as `audio_url` where that link is signed.
Errors
StatusCodeDescription
401invalid_keyMissing, malformed, unknown or revoked API key.
429rate_limit_exceededOver the account request budget or the per-minute cap of this route. Wait for the `Retry-After` header, then retry.
503auth_unavailableTemporary platform condition; retry shortly.
Example responses
{
  "data": [
    {
      "audio_id": "audio_a81e5c40d7f2",
      "name": "Stem: vocals",
      "relationship_type": "stem",
      "derived_role": "vocals",
      "format": "wav",
      "file_size_bytes": 5290044,
      "duration_seconds": 30.2,
      "uploaded": 1791333870854,
      "analyzed_categories": [],
      "audio_url": "https://api.scarleta.ai/v1/audio/media/9b2c7d1e-5a40-4f83-b6c9-0d1e2f3a4b5c.wav",
      "playback_url": "https://api.scarleta.ai/v1/audio/media/9b2c7d1e-5a40-4f83-b6c9-0d1e2f3a4b5c.wav"
    }
  ],
  "meta": {
    "count": 1
  }
}
  • 200 The renders of the file, newest first.
  • 401 Missing, malformed, unknown or revoked API key.
  • 429 Over the account request budget or the per-minute cap of this route. Wait for the `Retry-After` header, then retry.
  • 503 Temporary platform condition; retry shortly.

Try it

Sends this request from your browser to https://api.scarleta.ai with your own key. The key stays in this page only (never saved or put in the address) and is cleared when you leave. Revoke any key you have shared.

Other error codes this operation can return: db_unavailable, invalid_auth_format, invalid_key_format, missing_api_key, missing_auth, rate_limit_unavailable, unauthorized.