Skip to content

Public API and webhooks

Read what the public marketplace already shows, from your own systems, and get told when it changes. The API is read-only.

Getting access

Ask TEMMIC for an API key. A key is shown once, when it is created, and is stored by TEMMIC only as a hash; if you lose it, ask for a new one.

Send the key on every request as a bearer token. A key can be revoked at any time.

Checking a single verification needs no key at all; see “Checking a verification” below.

Authorization: Bearer tmk_…

https://temmic.habibicodes.site/api

What the API returns

  • Exactly what an anonymous visitor to the marketplace sees, and nothing more. A confidential listing stays anonymised.
  • Every Profile-tier listing carries the unverified label in the unverifiedLabel field. Show it wherever you show the listing.
  • Every listing carries TEMMIC’s conflict disclosures in the disclosures field. Show them with the listing; do not drop them.
  • Every figure carries its provenance: self-reported, document-backed, system-verified or human-verified.

Rate limits

Each key may make a set number of requests a minute. Every response says how many remain in the RateLimit-Remaining header. Past the limit the API answers 429 with a Retry-After header in seconds.

Endpoints

Endpoints
RequestReturns
GET /public/v1/listingsPublished listings. Query: q, sector, stage, geography, verifiedOnly, sort (relevance, recent, tick_date), page, pageSize (up to 50).
GET /public/v1/listings/{slug}One listing as the public sees it, with its tier, unverified label, sections, provenance and disclosures.
GET /public/v1/ticks/{slug}The verification status of one listing.
GET /public/v1/publicationsPublished research.
GET /public/v1/publications/{slug}One publication, with its holdings disclosure.

Errors are JSON: { "code": "…", "message": "…" }. The code is stable; the message is written for people.

Checking a verification

Anyone can check whether a company’s verification is real and current, with no key: GET /ticks/verify/{slug}. It is rate limited per address. The Trust Centre describes the fields it returns.

Trust Centre: check a verification

Webhooks

TEMMIC can call an https address of yours when something changes. Ask TEMMIC to register the address and choose the events; you are given a signing secret once.

Each delivery is a POST with a JSON body: { "id", "event", "occurredAt", "data" }. Use id to ignore a delivery you have already handled: the same delivery can arrive more than once.

A delivery that does not get a 2xx answer within 10 seconds is retried after 1, 5, 30, 120 and 720 minutes, then given up. An address that fails 20 deliveries in a row is switched off until TEMMIC switches it back on. Redirects are not followed.

Events

Events
EventsReturns
listing.publishedA listing was published or republished. data: slug, tier.
listing.unpublishedA listing was taken down. data: slug.
tick.issuedA listed company was verified. data: slug, issuedAt, expiresAt.
tick.withdrawnA verification stopped being valid: revoked, or a data connection behind it was withdrawn. data: slug, status.
publication.publishedResearch was published. data: slug, type.

Headers on every delivery

Headers on every delivery
Headers on every deliveryReturns
X-Temmic-Eventthe event name
X-Temmic-Deliverythe delivery id, the same as id in the body
X-Temmic-Signaturet=<unix seconds>,v1=<hex>: an HMAC-SHA256 of <t>.<raw body> with your signing secret

Checking the signature

Compute the HMAC over the raw body exactly as received, compare it in constant time, and reject a delivery whose timestamp is more than five minutes old.

import { createHmac, timingSafeEqual } from 'node:crypto';

export function isFromTemmic(rawBody: string, header: string, secret: string): boolean {
  const match = /^t=(\d+),v1=([0-9a-f]+)$/.exec(header ?? '');
  if (!match) return false;
  const [, t, signature] = match;
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  return expected.length === signature.length && timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
}