HeyData
Sign inJoin
Developers

HeyData API for labs.

Read dataset specs and deliveries from your own pipeline, and get webhooks when data is ready. Create keys under API and webhooks in the app.

Authentication

Send your key as a bearer token. Keys are shown once, stored only as a hash, scoped, and can be revoked at any time. Each key is rate limited (120 requests a minute by default).

curl https://heydata.now/api/v1/datasets -H "Authorization: Bearer hd_live_xxxxxxxx_..."

Endpoints

GET /api/v1/datasets
Public dataset spec sheets: modalities, volume, label schema, consent, provenance, delivery format, price and licence options. Scope read:datasets.
GET /api/v1/deliveries
Your company's delivery versions with file names, sizes and SHA-256 checksums. Scope read:deliveries.
GET /api/v1/deliveries/:id/files
Fresh signed download links for one version (valid 15 minutes), including manifest.json. Every call is logged. Scope read:deliveries.

Webhooks

Events: delivery.ready, sample.ready, order.signed (and ping from the test button). We POST JSON to your https URL with these headers:

HeyData-Event: delivery.ready
HeyData-Delivery: <delivery id>
HeyData-Signature: t=1733150000,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your secret>

Check the signature and reject timestamps older than five minutes:

import crypto from 'node:crypto';
function verify(rawBody, header, secret) {
  const t = /t=(\d+)/.exec(header)?.[1], v1 = /v1=([0-9a-f]+)/.exec(header)?.[1];
  if (!t || !v1 || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const want = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  return crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(want));
}

Answer with any 2xx status. Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, then marked failed. The delivery log is in the app.