API Documentation
API v1Your 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.
| Key | Description |
|---|---|
X-API-Key | Your unique API key for authentication. |
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
Analyzes one image or video and returns the intellectual property detected in it. The result is returned in the response.
Headers
| Key | Description |
|---|---|
X-API-Key | Your unique API key for authentication. |
Content-Type | multipart/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.
| Field | Type | Default | Description |
|---|---|---|---|
fileconditional | File | — | Image or video file, up to 32 MB. Takes precedence over url. |
urlconditional | String | — | Public or pre-signed http(s) URL of the media, up to 200 MB. Fetched without credentials, as user agent CopysightBot/1.0. |
advanced | Boolean | false | Detection version. false selects V1; true selects V2, which is higher-precision. The response format is unchanged. Form field only. |
scene_change_sensitivity | Number | 0.15 | Video only. Scene-change threshold for frame selection. Lower values analyze more frames. Form field only. |
sensitivitydeprecated | Number | — | Deprecated alias of scene_change_sensitivity. |
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
| Type | Formats | Notes |
|---|---|---|
| Image | JPEG, PNG, WebP, GIF | Returns the image response schema. |
| Video | MP4, MOV, WebM, AVI, MKV, M4V, MPEG, MPG, 3GP | Detected 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
| Field | Type | Description |
|---|---|---|
contains_face | Boolean | Whether the image contains a human face. |
detected_ips | Array | Detected intellectual property. Empty when none is detected. |
detected_ips[].name | String | Name of the intellectual property. |
detected_ips[].category | String | Intellectual property category. One of Trademarks, Brand and iconic designs, Characters, Celebrities and famous people, Art and artists. |
detected_ips[].author | String | Original creator, or "N/A". |
detected_ips[].owner | String | Current rights holder, or "N/A". |
detected_ips[].bounding_box | Object | Location of the detection, as fractions of the image or frame dimensions. |
detected_ips[].bounding_box.x | Number | Left edge. |
detected_ips[].bounding_box.y | Number | Top edge. |
detected_ips[].bounding_box.width | Number | Box width. |
detected_ips[].bounding_box.height | Number | Box height. |
detected_ips[].similarity | Number | Similarity 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
| Field | Type | Description |
|---|---|---|
media_type | String | Always "video". Present on video results only. |
frames_analyzed | Integer | Number of frames analyzed. |
duration_seconds | Number | Timecode of the last analyzed frame, in seconds. |
source_duration_seconds | Number | Duration of the source video, in seconds, when available. |
resolution | Object | Pixel dimensions of the source video, when available. |
resolution.width | Integer | Width in pixels. |
resolution.height | Integer | Height in pixels. |
contains_face | Boolean | Whether any analyzed frame contains a human face. |
detected_ips | Object | Detected intellectual property, keyed by name. Empty when none is detected. |
detected_ips.<key>.category | String | Intellectual property category. One of Trademarks, Brand and iconic designs, Characters, Celebrities and famous people, Art and artists. |
detected_ips.<key>.author | String | Original creator, or "N/A". |
detected_ips.<key>.owner | String | Current rights holder, or "N/A". |
detected_ips.<key>.max_similarity | Number | Highest similarity score across occurrences. |
detected_ips.<key>.occurrence_count | Integer | Number of analyzed frames containing the IP. |
detected_ips.<key>.occurrences | Array | Occurrences in chronological order. |
detected_ips.<key>.occurrences[].timecode | Number | Seconds from the start of the video. |
detected_ips.<key>.occurrences[].timecode_label | String | Timecode formatted as M:SS. |
detected_ips.<key>.occurrences[].similarity | Number | Similarity score in this frame, from 0 to 1. |
detected_ips.<key>.occurrences[].bounding_box | Object | Location of the detection, as fractions of the image or frame dimensions. |
detected_ips.<key>.occurrences[].bounding_box.x | Number | Left edge. |
detected_ips.<key>.occurrences[].bounding_box.y | Number | Top edge. |
detected_ips.<key>.occurrences[].bounding_box.width | Number | Box width. |
detected_ips.<key>.occurrences[].bounding_box.height | Number | Box 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.
| Version | Request | Use for |
|---|---|---|
| V1 (default) | Omit advanced, or send advanced=false | Broad review where a person checks the output |
| V2 | advanced=true | Higher 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.
| Value | Effect | Good for |
|---|---|---|
0.05–0.10 | Analyzes more frames; catches brief appearances | Fast-cut edits, short-form ads, evidence capture |
0.15 | Default balance | General content |
0.25–0.40 | Analyzes scene changes only | Long-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.
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'.
Unauthorized
The API key is missing, invalid or revoked.
Unauthorized. Missing API Key.
Payment Required
The account has no credits remaining. Do not retry until credits are added.
Payment Required: Insufficient credits.
Payload Too Large
The media exceeds the size limit: 32 MB for file, 200 MB for url.
Payload Too Large.
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."
}
Too Many Requests
Rate limit exceeded. Retry after the Retry-After interval when present, otherwise with exponential backoff.
Internal Server Error
Unexpected server error. Safe to retry once.
{
"error": "An internal server error occurred. Our team has been notified."
}
Service Unavailable
The service is temporarily unavailable.
Service temporarily unavailable.
Implementation notes
- Check
media_typebefore parsing.detected_ipsis an array for images and an object for video. - One media item per request. If both
fileandurlare sent,filewins. - Apply your own threshold.
similarityis 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.