Skip to content

Developer documentation

One video. One API call.

Submit a video, follow its analysis, and bring structured findings into your workflow.

Quickstart

The base URL is https://api.artlint.com. Responses are JSON: successful results are wrapped in data, and failures in error.

1. Create a key

Open Account → API keys in the Artlint console. Create a Full access key to submit videos, or a Read only key to read results. Copy the secret when it is shown; keep it in your server’s secrets manager.

Send Authorization: Bearer $ARTLINT_API_KEY on each request. Keys are scoped to a workspace. They cannot sign in to the app, and session cookies and login tokens do not authenticate API requests.

2. Submit a file or URL

For a file, send multipart form data with the JSON options part first, then the file part:

curl https://api.artlint.com/v1/analyses \
  -H "Authorization: Bearer $ARTLINT_API_KEY" \
  -H "Idempotency-Key: video-job-8812" \
  -F 'options={"max_credits":20,"client_reference":"video-job-8812"};type=application/json' \
  -F '[email protected]'

For a URL, send JSON. A presigned URL is supported; make sure it remains valid while Artlint downloads the video.

curl https://api.artlint.com/v1/analyses \
  -H "Authorization: Bearer $ARTLINT_API_KEY" \
  -H "Idempotency-Key: video-job-8813" \
  -H "Content-Type: application/json" \
  -d '{"video_url":"https://your-media.example/video.mp4","max_credits":20}'

A new request returns 202 Accepted. The response includes an id beginning with ana_, its status, and your balance. File submissions begin as preparing; URL submissions begin as fetching.

3. Follow the analysis

curl https://api.artlint.com/v1/analyses/ana_YOUR_ANALYSIS_ID \
  -H "Authorization: Bearer $ARTLINT_API_KEY"

An analysis moves through fetching, preparing, and analyzing. Its terminal status is completed, completed_with_gaps, failed, or canceled. The stage field gives finer progress, including queued and finalizing.

When completed, read summary on the analysis and use links.findings for paginated findings. Review coverage gaps alongside findings: a completed analysis does not mean every part of the video could be assessed.

Full-report retrieval and evidence download links are currently disabled in the developer API and return 404. The Artlint app still provides report and evidence access. Evidence IDs in findings are identifiers, not download links.

Retry safely

Use one Idempotency-Key per job: 1–200 printable ASCII characters without spaces. Repeating the same request in the same workspace returns the existing analysis with 200 OK, including when plan slots are full. Reusing the key with different options returns 409 idempotency_key_reused. Uploaded bytes are not compared on a replay, so use a new key for a different video.

Submission options

Options for POST /v1/analyses
FieldRequiredMeaning
max_creditsRequiredA whole number from 0 to 1,000,000,000. Artlint starts only when the whole clip’s price fits this ceiling.
client_referenceOptionalYour job reference: 1–128 characters, without control characters. Returned with the analysis and webhook.
modeOptionalanalysis, the default and only supported mode.
analysis_levelOptionalstandard (default) or max. Max includes Standard, with deeper review of motion and physical interactions.
filenameOptional1–255 bytes, without slashes or control characters. Defaults to the file name or URL’s last path segment.
project_idOptionalA project in the key’s workspace. Defaults to the workspace’s API project.
video_urlJSON onlyAn HTTPS URL on a public host, up to 2,048 characters, without a username or password.

Unknown fields and invalid values return 422 invalid_request, with error.details.field naming the option. JSON options are limited to 16 KiB.

API reference

All endpoints below require an API key. Reads require api.read; submitting, canceling, and deleting require api.write.

POST/v1/analyses

Submit a file or URL. Returns 202 with an analysis; an idempotent replay returns 200.

GET/v1/analyses

List analyses in the key’s workspace, newest first. Filter by client_reference or status. limit is 1–100 (default 50); pass next_cursor as cursor.

GET/v1/analyses/{analysis_id}

Read status, stage, credits, balance, source, and result links.

GET/v1/analyses/{analysis_id}/findings

Read paginated findings. limit is 1–100 (default 50); pass next_cursor as cursor. Optionally filter by category.

POST/v1/analyses/{analysis_id}/cancel

Cancel an unfinished analysis. Returns 202; a canceled run’s credits are refunded.

DELETE/v1/analyses/{analysis_id}

Delete the video, report, and evidence. Returns 202 with deletion state; subsequent reads return 410 analysis_deleted.

GET/v1/balance

Read the organization’s shared credit balance and configured Standard and Max pricing.

GET/v1/key

Describe the current key, its access and workspace. The secret is masked.

Get results by webhook

Register an endpoint under Account → Webhooks. An analysis records one terminal event: artlint.analysis.completed, artlint.analysis.failed, or artlint.analysis.canceled, while an endpoint subscribes to it. Delivery can be retried, so deduplicate using webhook-id.

Verify the Standard Webhooks signature against the raw request body using your endpoint’s signing secret before processing the event. Headers are webhook-id, webhook-timestamp, and webhook-signature. Enforce timestamp freshness.

Completed events include summary, the most severe findings that fit, and credits charged and remaining. If findings_truncated is true, retrieve the full findings through the API. Polling the analysis is also available if you do not use webhooks.

Credits and billing

App and API analyses use the same organization credit balance. Read GET /v1/balance for the current price in pricing.standard.credits_per_second and pricing.standard.minimum_credits and Max pricing in pricing.max. Standard is the default: one credit per second, with a 10-credit minimum. Max uses five credits per second, with a 150-credit minimum (30 seconds). Started seconds round up.

Artlint prices the whole clip after preparation and starts only if the price is within max_credits. Otherwise it ends as failed with max_credits_exceeded and charges nothing. Credits are charged when the check starts and refunded if it delivers no report. Read credits.quoted, credits.charged, and credits.refunded on the analysis.

File and plan limits

MP4, MOV, and WebM are supported, up to 2 GiB (2,147,483,648 bytes) per file on every plan. The actual duration and media compatibility are checked during preparation.

Plan limits shared by app and API analyses
PlanFile sizeVideo durationConcurrent analyses
Free2 GiB1 minute1
Creator2 GiB5 minutes1
Pro2 GiB10 minutes2
Studio2 GiB30 minutes3

Concurrent analyses are shared across all workspaces in your organization, including work started in the app. Downloads, preparation, and queued checks consume slots. Cancellation, failure, and completion release capacity. Credit packs and unlimited credits do not increase plan limits; an expired subscription falls back to Free.

Send one upload at a time per key. Default request budgets are 120 requests and 20 submissions per minute per key, and 600 requests per minute per workspace, per API process. Replays and refused submissions count. Honor Retry-After on 429 and retryable 503 responses. Workspace storage allowances and service capacity may impose additional limits.

URL downloads allow up to five redirects, with a 30-minute total budget and a 60-second idle timeout. Private hosts and non-HTTPS sources are refused.

Handle errors

A refused request returns an error object:

{
  "error": {
    "code": "invalid_request",
    "message": "…",
    "details": { "field": "max_credits" },
    "request_id": "…"
  }
}

Request errors

Request errors
HTTP statusError codeMeaning and next step
401unauthorizedUse a valid API key. The key is missing, expired, revoked, or invalid.
403insufficient_scopeUse a Full access key for requests that submit, cancel, or delete an analysis.
403developer_api_disabledAPI access is not enabled for this installation.
409idempotency_key_reusedUse a new job key when the options or video change.
413file_too_largeThe upload exceeds 2 GiB. Submit a smaller file.
422invalid_requestCheck details.field for the invalid option. In multipart uploads, send options before file.
429plan_concurrency_limitWait for an analysis slot. Check details.plan_limits and honor Retry-After.
429too_many_active_analysesThe workspace service ceiling has been reached. Retry when capacity is available.

Analysis failures

An accepted analysis can fail asynchronously. Check its error field or failed webhook.

Analysis failures
Error codeMeaning and next step
source_too_largeThe video downloaded from the URL exceeds 2 GiB. Use a smaller source file.
plan_duration_limitThe accepted video exceeds your plan’s duration limit. Shorten the video or choose a plan with a higher limit.
credits_insufficientThe check did not start and nothing was charged. Add credits before trying again.
max_credits_exceededThe check did not start and nothing was charged. Raise max_credits to cover the clip’s price.

How checks work

Visual and technical checks

Artlint examines selected frames and compares details across moments for visual glitches and continuity changes. Technical checks also look for playback problems such as flicker, frozen or black frames, and audio-level issues. Selected-frame analysis can miss brief or subtle defects between inspected moments.

Standard and Max

Both levels include visual, continuity, and playback checks, including hands and anatomy. Max adds review focused on movement and physical interaction. It does not guarantee that every issue will be found.

Reading your report

A finding describes a potential issue and points to its time in the video. In the app, you can inspect supporting source frames. Review these in context: an intentional effect, cut, or obscured detail can resemble an error.

Reports show coverage gaps separately from findings. A skipped or incomplete check is not a clean result, and a report with no findings does not guarantee that the video has no issues.

Prefer the app?

Sign in and open Videos. Select Analyze video, then choose an MP4, MOV, or WebM file up to 2 GiB. The maximum video length is 1 minute on Free, 5 minutes on Creator, 10 minutes on Pro, and 30 minutes on Studio. You'll also need enough credits for the check. Once the analysis completes, inspect findings, original source-frame evidence, and coverage gaps. See Data & privacy for processing and retention details.

Cookie settings

Developer API documentation | Artlint