Tellmark's seal pup mascot reading a book
AI-generated Tellmark

API reference

Every endpoint below is exactly as it exists in the code today. An endpoint marked "API key" needs an Authorization: Bearer <api_key> header; the rest are public and need no key.

Every endpoint answers over https only. A request over plain http is refused and not acted on, so an API key sent that way is never used. A request body over 2 MiB gets a 413. Neither SDK follows a redirect.

POST /v1/marks

API key. Allocates a mark.

Body:

  • media_type: "image", "audio", "video" or "text", required.
  • For "image": mime, required, exactly one of "image/jpeg", "image/png" or "image/webp".
  • For "audio": mime, required, exactly one of "audio/wav", "audio/mpeg" or "audio/flac".
  • For "video": mime, required, exactly one of "video/mp4" or "video/quicktime".
  • For "image", "audio" or "video": model, app_name, optional strings of up to 256 characters.
  • For "text": asset_sha256 (a 64-character hex SHA-256 hash) is required; model, app_name are optional strings.

Response, image or audio (201): { "mark_id", "wm_id", "manifest_template" }.

Response, video (201): { "mark_id", "manifest_template" }.

Response, text (201): { "mark_id", "media_type": "text", "asset_sha256" }. A text mark is already complete on this one call: there is no sign or complete step for text.

Errors: 400 (missing or invalid body), 402 (monthly limit reached, body includes upgrade_url, the full address of the Billing page in your dashboard, and marks_used, quota, limit and reserved for this calendar month; quota is your plan's marks, and marking continues past it up to limit, 125% of it), 503 (image only: could not allocate a unique watermark id this time, safe to retry), 503 (audio only: audio marks are not available right now, and nothing is allocated or counted), 503 (video only: video marks are not available right now, and nothing is allocated or counted).

An image, audio or video mark holds one mark of the month's quota from this call until it is signed, when it counts as used, or for an hour if it is never signed. reserved counts these holds. When holds are all that stand in the way, the 402's error is "quota held by unfinished marks", and a Retry-After header (also retry_after_seconds in the body) gives the seconds until the oldest hold ends.

GET /v1/signing-cert

API key. Used by the SDKs.

Optional query parameter media_type: image (the default), audio or video.

Response (200): { "chain_pem" }.

Errors: 400 (a media_type other than image, audio or video, or more than one), 503 (no active signing certificate configured).

POST /v1/marks/{mark_id}/sign and /complete

API key. The SDKs call these two endpoints to sign and record an image, audio or video mark. Image, audio and video marking need an SDK. Their request bodies are internal to the SDKs and may change. An optional Idempotency-Key header makes a retry safe.

Errors: 404 (mark not found), 409 (already done, or out of order), 400 or 422 (a request the SDK did not build; the error says why), 503 (signing unavailable), 503 (audio only: audio marks are not available right now), 503 (video only: video marks are not available right now).

GET /v1/verify

Public. Looks up a mark by wm_id or asset_sha256 query parameter (exactly one is required). Rate limited to 60 requests per minute per IP address. Requests that carry an access key in an Authorization: Bearer header are not rate limited. Two accounts can log the same text, so a lookup by asset_sha256 returns the earliest mark with that hash.

Response by asset_sha256 (200): { "account_name", "media_type", "signed_at", "model", "manifest_url", "fingerprint": null }. Marking sends us a file's hash, never the file, so this answer says which account recorded that hash, not that the account made the file.

Response by wm_id (200): { "fingerprint" }, with no account or mark details, since a wm_id on its own does not prove that an image is the one that was marked. fingerprint is null for a mark made before marks carried one. A lookup by wm_id finds image marks only. A text, audio or video mark is found by its asset_sha256.

To show people who marked a file, send them to the free checker at /check or your account's verify page. For an image, that includes a copy that was re-saved or stripped of its metadata. They check the mark the file carries and confirm the image with our server before they name an account, and never upload it.

Errors: 400 (neither query parameter given), 404 (no completed mark found), 429 (rate limited).

Free unlimited checks for authorities and researchers

The checker and the verify API are free for everyone. To keep them fast, each network can make a limited number of checks a minute. Market surveillance authorities and other regulators, law enforcement, media, fact-checkers, trusted flaggers, independent researchers, educational and research institutions and civil society organisations can ask for a free access key with no limit on the number of checks. Email hello@tellmark.si from your organisation's address, and say who you are and what you check.

GET /v1/manifests/{mark_id}

Public. Streams the stored manifest store's raw bytes (content-type: application/octet-stream). Metadata and hashes only, never pixels.

Errors: 404 (no manifest stored for this mark).

POST /v1/disclosure/{config_id}/ping

Public. Increments today's shown count for a disclosure or label configuration. Reads and sets no cookies, sends no user id.

Response: 204, no body.

Errors: 404 (unknown configuration id).

Tellmark never asks for the raw file or text you are marking on any of these endpoints: only metadata and hashes (the file's SHA-256 and, for an image, its fingerprint).