LikogramDevelopers

The Likogram API

Create matchups from your own systems and read back how people voted — and why. Every matchup gets a share link people vote on in their browser, no app needed.

Sign-in opens shortly. The documentation below is complete in the meantime.

25 free matchups per organization per month

How it works

  1. Sign in, create an organization, and invite your team.
  2. An admin creates an API key. It's shown once — store it as a secret on your server.
  3. Upload two or more images, create a matchup from them, and send people its share link.
  4. Read the results whenever you like: the split, and the reasons voters gave.

Authentication

Send the key on every request. Keys belong to an organization, not a person, and can only reach these endpoints — never anyone's account. Never put a key in an app or web page; call the API from your server.

Authorization: Bearer lk_…

1. Upload an image

Raw bytes in the body: JPEG, PNG, HEIC, WebP or AVIF, up to 8 MB. Short audio clips are accepted too (M4A, MP3 or WAV, add ?kind=audio&duration_ms=…, 30 seconds max). Video isn't supported.

curl -X POST https://likogram.com/api/v1/uploads \
  -H "Authorization: Bearer $LIKOGRAM_KEY" \
  -H "Content-Type: image/jpeg" \
  --data-binary @front.jpg
# → {"key":"abc123….jpg","url":"…"}

2. Create a matchup

mode is favorite, eliminate, swipe (exactly two) or ladder (up to eight). Two or three options otherwise. Each image can be used once. API matchups are link-only: they're never shown in Likogram's public feed.

curl -X POST https://likogram.com/api/v1/polls \
  -H "Authorization: Bearer $LIKOGRAM_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Which cover should we ship?",
    "mode": "favorite",
    "closes_in_hours": 72,
    "options": [ {"image_key": "abc123….jpg", "label": "Warm"},
                 {"image_key": "def456….jpg", "label": "Cool"} ]
  }'
# → {"poll":{…},"share_url":"https://likogram.com/p/pl_…"}

Optional: ai_generated: true labels the images as AI-made for voters; ladder_style: "bracket" runs a ladder as a bracket instead of winner-stays-on.

3. Read the results

curl https://likogram.com/api/v1/polls/pl_… -H "Authorization: Bearer $LIKOGRAM_KEY"

results has each option's count, share and winner flag; reasons counts the one-tap reasons voters gave (better light, more natural…); reason_notes holds their short written notes. Voters are anonymous — you never receive who voted.

Everything else

RequestDoes
GET /api/v1/pollsYour organization's matchups, newest first. ?limit= up to 50; pass next_before back as ?before= for the next page.
DELETE /api/v1/polls/:idDelete a matchup and its images.
GET /api/v1/usageMatchups used this month, the limit, and when it resets.

Limits

25 free matchups per organization per calendar month (UTC), shared by every key in the organization. Deleting a matchup doesn't give it back. Past the limit, creating returns 429 with used, limit and resets_at; everything else keeps working. Separately, uploads and creation are rate-limited per organization per hour. Need more? Write to support@likogram.com.

Errors are JSON: {"error":"…"}, with a plain-English message.

Your responsibilities

Only upload images you have the right to use, and don't upload images of people who haven't agreed to be voted on. The Terms apply to everything sent through the API, including the rules on objectionable content. We can revoke keys that break them.