API Documentation

API v1

Your guide to integrating with the CopySight API.

Building with a coding agent or generating a client? Use the OpenAPI 3.1 specification.

Base URL

All API requests should be made to the following base URL:

https://api.copysight.ai/v1

All requests must be made over HTTPS.

Authentication

Authentication is by API key, sent as a request header on every call.

KeyDescription
X-API-KeyYour unique API key for authentication.
Keep your key server-side. An API key authorizes analysis on your account. Do not embed it in browser code, mobile apps, or anything distributed to end users — call the API from your own backend instead.

Quick start

# Image file
curl -X POST "https://api.copysight.ai/v1/verify" \
  -H "X-API-Key: $COPYSIGHT_API_KEY" \
  -F "file=@artwork.png"

# URL, with V2 detection
curl -X POST "https://api.copysight.ai/v1/verify" \
  -H "X-API-Key: $COPYSIGHT_API_KEY" \
  -F "url=https://example.com/artwork.png" \
  -F "advanced=true"

# Video
curl -X POST "https://api.copysight.ai/v1/verify" \
  -H "X-API-Key: $COPYSIGHT_API_KEY" \
  -F "file=@spot.mp4" \
  -F "scene_change_sensitivity=0.10"

Endpoints

POST/verify

Analyzes one image or video and returns the intellectual property detected in it. The result is returned in the response.

Headers

KeyDescription
X-API-KeyYour unique API key for authentication.
Content-Typemultipart/form-data for uploads and for any request that sets options. application/json is accepted when submitting a URL only.

Request Body

Send a multipart/form-data payload. Provide the media either as a file upload or as a url — one media item per request.

FieldTypeDefaultDescription
fileconditionalFile—Image or video file, up to 32 MB. Takes precedence over url.
urlconditionalString—Public or pre-signed http(s) URL of the media, up to 200 MB. Fetched without credentials, as user agent CopysightBot/1.0.
advancedBooleanfalseDetection version. false selects V1; true selects V2, which is higher-precision. The response format is unchanged. Form field only.
scene_change_sensitivityNumber0.15Video only. Scene-change threshold for frame selection. Lower values analyze more frames. Form field only.
sensitivitydeprecatedNumber—Deprecated alias of scene_change_sensitivity.
Options must be sent as form fields. advanced and scene_change_sensitivity are read from the multipart/form-data body. They are not read from the query string or from a JSON body — a request that sends the URL as ?url= or as JSON runs with the defaults. If you need either option, send the request as multipart with url as a form field.

Supported media

TypeFormatsNotes
ImageJPEG, PNG, WebP, GIFReturns the image response schema.
VideoMP4, MOV, WebM, AVI, MKV, M4V, MPEG, MPG, 3GPDetected from the content type or file extension. Returns the video response schema.

Maximum media size is 200 MB when submitting a url, and 32 MB for a direct file upload — use a URL for anything larger. The endpoint fetches a submitted URL for up to 120 seconds and identifies itself as CopysightBot/1.0; allow that agent if your origin filters by user agent.

Successful Response (200 OK)

For an image, a JSON object containing a contains_face boolean and a detected_ips array of detected intellectual property objects.

{
  "contains_face": false,
  "detected_ips": [
    {
      "name": "Mickey Mouse",
      "category": "Characters",
      "author": "Walt Disney and Ub Iwerks",
      "owner": "The Walt Disney Company",
      "bounding_box": {
        "x": 0.277,
        "y": 0.469,
        "width": 0.021,
        "height": 0.022
      },
      "similarity": 0.98
    }
  ]
}

An empty detected_ips array means no intellectual property was detected.

Response Object Schema

FieldTypeDescription
contains_faceBooleanWhether the image contains a human face.
detected_ipsArrayDetected intellectual property. Empty when none is detected.
detected_ips[].nameStringName of the intellectual property.
detected_ips[].categoryStringIntellectual property category. One of Trademarks, Brand and iconic designs, Characters, Celebrities and famous people, Art and artists.
detected_ips[].authorStringOriginal creator, or "N/A".
detected_ips[].ownerStringCurrent rights holder, or "N/A".
detected_ips[].bounding_boxObjectLocation of the detection, as fractions of the image or frame dimensions.
detected_ips[].bounding_box.xNumberLeft edge.
detected_ips[].bounding_box.yNumberTop edge.
detected_ips[].bounding_box.widthNumberBox width.
detected_ips[].bounding_box.heightNumberBox height.
detected_ips[].similarityNumberSimilarity score, from 0 to 1.

Video Response (200 OK)

Video returns a different shape. Instead of an array, detected_ips is an object keyed by IP name, and each entry lists the timecodes where that IP appears. The presence of media_type tells you which shape you received.

{
  "media_type": "video",
  "frames_analyzed": 12,
  "duration_seconds": 27.4,
  "contains_face": true,
  "detected_ips": {
    "Mickey Mouse": {
      "category": "Characters",
      "author": "Walt Disney and Ub Iwerks",
      "owner": "The Walt Disney Company",
      "max_similarity": 0.98,
      "occurrence_count": 2,
      "occurrences": [
        {
          "timecode": 4,
          "timecode_label": "0:04",
          "similarity": 0.91,
          "bounding_box": {
            "x": 0.1,
            "y": 0.2,
            "width": 0.22,
            "height": 0.14
          }
        },
        {
          "timecode": 19,
          "timecode_label": "0:19",
          "similarity": 0.98,
          "bounding_box": {
            "x": 0.55,
            "y": 0.31,
            "width": 0.19,
            "height": 0.12
          }
        }
      ]
    }
  }
}

Video Response Schema

FieldTypeDescription
media_typeStringAlways "video". Present on video results only.
frames_analyzedIntegerNumber of frames analyzed.
duration_secondsNumberTimecode of the last analyzed frame, in seconds.
source_duration_secondsNumberDuration of the source video, in seconds, when available.
resolutionObjectPixel dimensions of the source video, when available.
resolution.widthIntegerWidth in pixels.
resolution.heightIntegerHeight in pixels.
contains_faceBooleanWhether any analyzed frame contains a human face.
detected_ipsObjectDetected intellectual property, keyed by name. Empty when none is detected.
detected_ips.<key>.categoryStringIntellectual property category. One of Trademarks, Brand and iconic designs, Characters, Celebrities and famous people, Art and artists.
detected_ips.<key>.authorStringOriginal creator, or "N/A".
detected_ips.<key>.ownerStringCurrent rights holder, or "N/A".
detected_ips.<key>.max_similarityNumberHighest similarity score across occurrences.
detected_ips.<key>.occurrence_countIntegerNumber of analyzed frames containing the IP.
detected_ips.<key>.occurrencesArrayOccurrences in chronological order.
detected_ips.<key>.occurrences[].timecodeNumberSeconds from the start of the video.
detected_ips.<key>.occurrences[].timecode_labelStringTimecode formatted as M:SS.
detected_ips.<key>.occurrences[].similarityNumberSimilarity score in this frame, from 0 to 1.
detected_ips.<key>.occurrences[].bounding_boxObjectLocation of the detection, as fractions of the image or frame dimensions.
detected_ips.<key>.occurrences[].bounding_box.xNumberLeft edge.
detected_ips.<key>.occurrences[].bounding_box.yNumberTop edge.
detected_ips.<key>.occurrences[].bounding_box.widthNumberBox width.
detected_ips.<key>.occurrences[].bounding_box.heightNumberBox height.

Detection versions: V1 and V2

The API offers two detection versions, selected per request with the advanced field. The response schema is identical in both.

VersionRequestUse for
V1 (default)Omit advanced, or send advanced=falseBroad review where a person checks the output
V2advanced=trueHigher precision: clearance checks and automated decisions

Video sensitivity

Videos are not analyzed frame by frame. Frames are sampled along the timeline and analyzed only when they differ visually from the previously analyzed frame by more than scene_change_sensitivity.

ValueEffectGood for
0.05–0.10Analyzes more frames; catches brief appearancesFast-cut edits, short-form ads, evidence capture
0.15Default balanceGeneral content
0.25–0.40Analyzes scene changes onlyLong-form, static or single-shot footage

Error Responses

When an error occurs, the API returns an appropriate HTTP status code with a short message. Most error bodies are plain text; 422 and some 500 responses are JSON with a single error field. Branch on the status code rather than on the message text, which may change.

400

Bad Request

The request is invalid: no media was provided, the file is empty, or the url is not a reachable http(s) address. Do not retry unchanged.

Bad Request: provide a 'file' or a 'url'.
401

Unauthorized

The API key is missing, invalid or revoked.

Unauthorized. Missing API Key.
402

Payment Required

The account has no credits remaining. Do not retry until credits are added.

Payment Required: Insufficient credits.
413

Payload Too Large

The media exceeds the size limit: 32 MB for file, 200 MB for url.

Payload Too Large.
422

Unprocessable Entity

The media could not be decoded or has no analyzable content. Do not retry unchanged.

{
  "error": "The image could not be processed. Please ensure it is a valid format and try again."
}
429

Too Many Requests

Rate limit exceeded. Retry after the Retry-After interval when present, otherwise with exponential backoff.

500

Internal Server Error

Unexpected server error. Safe to retry once.

{
  "error": "An internal server error occurred. Our team has been notified."
}
503

Service Unavailable

The service is temporarily unavailable.

Service temporarily unavailable.

Implementation notes

  • Check media_type before parsing. detected_ips is an array for images and an object for video.
  • One media item per request. If both file and url are sent, file wins.
  • Apply your own threshold. similarity is a confidence signal, not a verdict. Pick a cutoff that suits your workflow — for example auto-flag above 0.9 and queue 0.6–0.9 for review.
  • Detection is not a legal determination. The API reports detected intellectual property and the evidence for it. It does not assess infringement, fair use, or licensing status.

Questions or a problem with an integration: hello@copysight.ai. Include the request timestamp, the response status, the X-Request-Id response header when present, and the first 8 characters of your key — never the full key.