API reference

Read your approved product data, manage media and register webhooks from your own systems, or let an AI assistant work with your workspace.

Overview

The REST API sits at https://app.supplyfi.co.uk/api/v1. Every endpoint takes and returns JSON over HTTPS, and every call is for the one workspace that owns the key. Use it to pull approved snapshots into a website or ERP, keep stock systems in step with families and bills of materials, or push images in.

A machine-readable description is available as an OpenAPI 3.1 file. It is built from the same source as this page, so the two always agree.

The API is for server-to-server use. It sends no CORS headers by default, so a browser cannot call it from a web page, and an API key must never be put in browser code. Call it from your back end, a scheduled job or an integration platform.

A first call
curl "https://app.supplyfi.co.uk/api/v1/usage" \
  -H "Authorization: Bearer $SUPPLYFI_API_KEY"

Authentication

Send an API key as a bearer token: Authorization: Bearer <key>. A workspace admin creates keys in SupplyFi under Admin, then Integrations & AI, then API keys & webhooks. A key starts spk_live_, is shown once when you create it, may have an expiry date, and can be revoked at any time. SupplyFi stores only a hash of it.

Each key carries scopes that limit what it can call. Choose the fewest the integration needs. A key that has only the mcp scope is for the MCP connector and is refused on every REST endpoint.

API key scopes
ScopeWhat it allows
catalog:readRead approved product snapshots (/catalog).
families:readRead families, variants, bills of materials and where-used (/families, /variants).
schemas:readRead product types and their fields (/product-types).
webhooks:writeList, register, pause or re-enable, and remove webhooks (/webhooks). There is no read-only webhook scope.
assets:readRead media assets and their links (/assets).
assets:writeCreate, change and delete assets and their links (/assets).
mcpUse the MCP connector only. It must be on its own key; a key with only this scope is refused (403) on the REST API.
Using a key
curl "https://app.supplyfi.co.uk/api/v1/families?limit=20" \
  -H "Authorization: Bearer $SUPPLYFI_API_KEY"

Plans and limits

API access is included on every paid plan, with a monthly call allowance that grows with the plan:

API calls included by plan
PlanAPI calls
FreeNot included
Starter50,000 calls a month
Growth50,000 calls a month
Pro250,000 calls a month
Scale1,000,000 calls a month
EnterpriseCustom

Calls are counted per calendar month (UTC) for the whole workspace. Over the allowance you get a 429 with Retry-After and X-Quota-Limit, X-Quota-Remaining and X-Quota-Reset headers. Call GET /usage any time to see where you are; it does not use up an allowance call.

Two shorter limits apply as well, both counted per minute: 60 requests from one IP address across the API, and 120 requests on one API key. Over either you get a 429 with code rate_limited and a Retry-After number of seconds to wait. These counters are kept per server instance, so treat them as a guide rather than an exact meter; space out bulk jobs.

Page through lists with limit (1 to 200, default 50) and offset (0 to 1,000,000); a value outside the range is clamped. Ids in paths are UUIDs, and anything else is a 404.

See plans and pricing for what else each plan includes.

Errors

Every error has the same shape, and every response from the endpoints below has an X-Request-Id header with the same id. Branch on error.code, not on the message, and quote the request id if you contact us.

An error
{
  "error": {
    "code": "not_found",
    "message": "Family not found",
    "requestId": "req_5d1c0a9e7b3f4a2c8e6d1f0b"
  }
}

Some errors add fields beside error, such as quota on a quota 429. The codes are invalid_request, unauthorized, insufficient_scope, feature_locked, workspace_locked, workspace_suspended, forbidden, not_found, conflict, webhook_limit_reached, deletion_pending, payload_too_large, unsupported_media_type, unprocessable, rate_limited, quota_exceeded, internal_error. Any endpoint can return these statuses:

Errors any endpoint can return
StatusCodeMeaning
401unauthorizedNo bearer token, or the key is invalid, revoked or expired.
402feature_lockedThe workspace does not have API access, for example after a subscription ends. The key is kept.
403insufficient_scopeThe key lacks the scope the endpoint needs, or it is an MCP-only key.
403workspace_locked, workspace_suspendedThe workspace is read-only: a locked one blocks all API calls, a suspended one blocks writes.
410deletion_pendingThe workspace owner has confirmed deletion. The API is unavailable until that is cancelled.
429rate_limited, quota_exceededOver the per-IP or per-key limit, or the monthly allowance. Wait for Retry-After seconds.
500internal_errorSomething went wrong on our side. Try again, and quote the request id if it persists.

Each endpoint below lists its own errors as well: 400 for a bad request, 404 when the id is not in your workspace, and so on.

Endpoints

Parameters marked * are required. Examples use made-up data; replace the capitalised placeholders such as FAMILY_ID with real ids.

Families

Product families and their variants (SKUs): read what you hold and what is approved.

get/families

List your product families.

Families are groups of variants (SKUs) that share a product type. Filter by status or product type.

Needs scope: families:read

Parameters
Parameters of get /families
NameInTypeDescription
statusquerydraft | sent_to_supplier | submitted | completedOnly families with this status.
productTypequerystringOnly families of this product type, matched by name, ignoring case.
limitqueryintegerPage size, 1 to 200. Default 50. A value outside the range is clamped; an unreadable one uses the default.
offsetqueryintegerHow many items to skip, 0 to 1,000,000. Default 0. A value outside the range is clamped.
Request
curl "https://app.supplyfi.co.uk/api/v1/families" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

A page of families.

{
  "data": [
    {
      "id": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
      "name": "Example cordless garden trimmer",
      "productType": "Garden power tool",
      "productTypeId": "0e1d2c3b-4a59-4687-b7a6-958473625140",
      "supplier": "Example Ceramics Ltd",
      "status": "completed",
      "variantCount": 3,
      "fieldCount": 24,
      "createdAt": "2026-03-02T09:30:00.000Z"
    }
  ],
  "meta": {
    "total": 1,
    "limit": 50,
    "offset": 0,
    "returned": 1
  }
}

get/families/{familyId}

Get one family with its field schema.

Needs scope: families:read

Parameters
Parameters of get /families/{familyId}
NameInTypeDescription
familyId *pathstringThe product family's id (a UUID). An id that is not a UUID returns 404.
Request
curl "https://app.supplyfi.co.uk/api/v1/families/FAMILY_ID" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

The family, with the fields its product type defines.

{
  "id": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
  "name": "Example cordless garden trimmer",
  "productType": "Garden power tool",
  "productTypeId": "0e1d2c3b-4a59-4687-b7a6-958473625140",
  "supplier": "Example Ceramics Ltd",
  "status": "completed",
  "variantCount": 3,
  "createdAt": "2026-03-02T09:30:00.000Z",
  "schema": [
    {
      "key": "width_mm",
      "label": "Width (mm)",
      "section": "Dimensions",
      "type": "Number",
      "required": true,
      "system": false,
      "options": null
    }
  ]
}
Errors from this endpoint
Errors of get /families/{familyId}
StatusCodeWhenMessage
404not_foundFamily not found.Family not found

get/families/{familyId}/variants

List a family's variants (SKUs) with their latest approved data.

Needs scope: families:read

Parameters
Parameters of get /families/{familyId}/variants
NameInTypeDescription
familyId *pathstringThe product family's id (a UUID). An id that is not a UUID returns 404.
Request
curl "https://app.supplyfi.co.uk/api/v1/families/FAMILY_ID/variants" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

The family's variants.

{
  "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
  "familyName": "Example cordless garden trimmer",
  "productType": "Garden power tool",
  "data": [
    {
      "id": "4c8a1d2e-7b3f-4a90-9e65-0d1f2a3b4c5d",
      "sku": "EX-1001-600",
      "name": "Example cordless garden trimmer 600 mm",
      "completeness": 100,
      "lastEditedAt": "2026-04-11T14:05:00.000Z",
      "approvedData": {
        "width_mm": "600",
        "finish": "Matt white"
      }
    }
  ],
  "meta": {
    "total": 1
  }
}
Errors from this endpoint
Errors of get /families/{familyId}/variants
StatusCodeWhenMessage
404not_foundFamily not found.Family not found

Bill of materials

Which parts and spares make up a product, and where a part is used.

get/families/{familyId}/bom

Get the parts and spares that make up each variant in a family.

Returns only variants that have a bill of materials. By default each variant lists its direct components. With explode=true each variant instead lists every part in the assembly tree with the total quantity needed.

Needs scope: families:read

Parameters
Parameters of get /families/{familyId}/bom
NameInTypeDescription
familyId *pathstringThe product family's id (a UUID). An id that is not a UUID returns 404.
explodequerybooleanSend true for the fully exploded, multi-level parts list. Any other value gives the direct components.
Request
curl "https://app.supplyfi.co.uk/api/v1/families/FAMILY_ID/bom" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

Bill of materials by variant.

{
  "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
  "familyName": "Example floor lamp",
  "variants": [
    {
      "variantId": "4c8a1d2e-7b3f-4a90-9e65-0d1f2a3b4c5d",
      "sku": "EX-2001-CH",
      "name": "Example floor lamp black",
      "components": [
        {
          "sku": "EX-S-0042",
          "name": "Example cartridge",
          "family": "Example spares",
          "quantity": "1",
          "unit": "each",
          "role": "component",
          "position": null,
          "notes": null,
          "isSpare": true,
          "isOrderable": true
        }
      ]
    }
  ],
  "meta": {
    "variantsWithBom": 1,
    "totalVariants": 3
  }
}
Errors from this endpoint
Errors of get /families/{familyId}/bom
StatusCodeWhenMessage
404not_foundFamily not found.Family not found

get/variants/{variantId}/where-used

Find every product that uses a given component or spare.

The reverse bill of materials: the direct parents of one variant.

Needs scope: families:read

Parameters
Parameters of get /variants/{variantId}/where-used
NameInTypeDescription
variantId *pathstringThe variant's id (a UUID), typically a spare. An id that is not a UUID returns 404.
Request
curl "https://app.supplyfi.co.uk/api/v1/variants/VARIANT_ID/where-used" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

The variant and the products that use it.

{
  "variant": {
    "id": "4c8a1d2e-7b3f-4a90-9e65-0d1f2a3b4c5d",
    "sku": "EX-S-0042",
    "name": "Example cartridge",
    "family": "Example spares",
    "isSpare": true,
    "isOrderable": true
  },
  "usedIn": [
    {
      "variantId": "6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b2a",
      "sku": "EX-2001-CH",
      "name": "Example floor lamp black",
      "family": "Example floor lamp"
    }
  ],
  "meta": {
    "total": 1
  }
}
Errors from this endpoint
Errors of get /variants/{variantId}/where-used
StatusCodeWhenMessage
404not_foundVariant not found.Variant not found

Catalogue

Approved, version-locked product snapshots. Use these to sync approved data elsewhere.

get/catalog

List approved product snapshots.

A snapshot is a version-locked record of a family's data at the moment it was approved. This is the endpoint to sync approved data into another system.

Needs scope: catalog:read

Parameters
Parameters of get /catalog
NameInTypeDescription
productTypequerystringOnly snapshots of this product type, matched by name, ignoring case.
sincequerystringAn ISO 8601 date or timestamp. Only snapshots approved on or after it. An unreadable value is ignored.
limitqueryintegerPage size, 1 to 200. Default 50. A value outside the range is clamped; an unreadable one uses the default.
offsetqueryintegerHow many items to skip, 0 to 1,000,000. Default 0. A value outside the range is clamped.
Request
curl "https://app.supplyfi.co.uk/api/v1/catalog" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

A page of approved snapshots.

{
  "data": [
    {
      "id": "d1e2f3a4-5b6c-4d7e-8f90-a1b2c3d4e5f6",
      "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
      "familyName": "Example cordless garden trimmer",
      "productType": "Garden power tool",
      "supplier": "Example Ceramics Ltd",
      "approvedAt": "2026-04-12T08:00:00.000Z",
      "variantCount": 1,
      "skus": [
        "EX-1001-600"
      ],
      "variants": [
        {
          "id": "4c8a1d2e-7b3f-4a90-9e65-0d1f2a3b4c5d",
          "sku": "EX-1001-600",
          "name": "Example cordless garden trimmer 600 mm"
        }
      ],
      "fieldCount": 24
    }
  ],
  "meta": {
    "total": 1,
    "limit": 50,
    "offset": 0,
    "returned": 1
  }
}

get/catalog/{snapshotId}

Get one approved snapshot with its full field data.

Needs scope: catalog:read

Parameters
Parameters of get /catalog/{snapshotId}
NameInTypeDescription
snapshotId *pathstringThe snapshot's id (a UUID; the id field from GET /catalog). An id that is not a UUID returns 404.
Request
curl "https://app.supplyfi.co.uk/api/v1/catalog/SNAPSHOT_ID" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

The snapshot with schema, values and a flattened field list.

{
  "id": "d1e2f3a4-5b6c-4d7e-8f90-a1b2c3d4e5f6",
  "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
  "familyName": "Example cordless garden trimmer",
  "productType": "Garden power tool",
  "supplier": "Example Ceramics Ltd",
  "approvedAt": "2026-04-12T08:00:00.000Z",
  "variants": [
    {
      "id": "4c8a1d2e-7b3f-4a90-9e65-0d1f2a3b4c5d",
      "sku": "EX-1001-600",
      "name": "Example cordless garden trimmer 600 mm"
    }
  ],
  "schema": [
    {
      "key": "width_mm",
      "label": "Width (mm)",
      "section": "Dimensions",
      "type": "Number",
      "required": true,
      "options": null
    }
  ],
  "carbonFootprint": null,
  "data": {
    "width_mm": "600"
  },
  "fields": [
    {
      "key": "width_mm",
      "label": "Width (mm)",
      "value": "600"
    }
  ]
}
Errors from this endpoint
Errors of get /catalog/{snapshotId}
StatusCodeWhenMessage
404not_foundSnapshot not found.Snapshot not found

Product types

The reusable field templates your families follow.

get/product-types

List your product types and the fields each one defines.

Needs scope: schemas:read

Request
curl "https://app.supplyfi.co.uk/api/v1/product-types" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

All product types.

{
  "data": [
    {
      "id": "0e1d2c3b-4a59-4687-b7a6-958473625140",
      "name": "Garden power tool",
      "description": "Cordless garden tools",
      "icon": null,
      "familyCount": 4,
      "createdAt": "2026-02-01T10:00:00.000Z",
      "fields": [
        {
          "key": "width_mm",
          "label": "Width (mm)",
          "section": "Dimensions",
          "type": "Number",
          "required": true,
          "system": false,
          "options": null
        }
      ]
    }
  ],
  "meta": {
    "total": 1
  }
}

Usage

How much of your monthly call allowance you have used.

get/usage

See how many API calls you have used this month.

Works with any valid key except an MCP-only one, and does not count against the quota. The same figures come back on quota 429 responses as X-Quota-* headers.

Needs scope: any valid key

Request
curl "https://app.supplyfi.co.uk/api/v1/usage" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

This month's usage against the quota.

{
  "period": "2026-10",
  "limit": 50000,
  "used": 1280,
  "remaining": 48720,
  "resetAt": "2026-11-01T00:00:00.000Z"
}

Assets

Images, drawings, manuals and other media, and which products they belong to.

get/assets

List media assets (images, drawings, manuals) with filters.

Needs scope: assets:read

Parameters
Parameters of get /assets
NameInTypeDescription
rolequeryhero | drawing | manual | compliance | lifestyle | otherOnly assets with this role. An unknown value is ignored.
statusqueryapproved | pending | missingOnly assets with this approval status. Anything else is a 400.
familyIdquerystringOnly assets of this origin family (a UUID; anything else is a 400).
productTypequerystringA product type id (a UUID; anything else is a 400): only assets of its families.
tagquerystringA single tag to match.
qquerystringSearch the name and alt text.
limitqueryintegerPage size, 1 to 200. Default 50. A value outside the range is clamped; an unreadable one uses the default.
offsetqueryintegerHow many items to skip, 0 to 1,000,000. Default 0. A value outside the range is clamped.
Request
curl "https://app.supplyfi.co.uk/api/v1/assets" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

A page of assets.

{
  "data": [
    {
      "id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
      "name": "ex-1001-main",
      "kind": "image",
      "role": "hero",
      "status": "approved",
      "url": "https://files.example.com/media/ex-1001-main.jpg",
      "altText": "Cordless garden trimmer, front view",
      "tags": [
        "trimmer"
      ],
      "width": 2400,
      "height": 2400,
      "mimeType": "image/jpeg",
      "bytes": 512340,
      "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
      "renditions": {
        "thumb": "https://files.example.com/media/ex-1001-main-thumb.webp"
      },
      "uploadedAt": "12 Apr 2026"
    }
  ],
  "meta": {
    "total": 1,
    "limit": 50,
    "offset": 0,
    "returned": 1
  }
}
Errors from this endpoint
Errors of get /assets
StatusCodeWhenMessage
400invalid_requeststatus is not one of approved, pending, missing; or familyId or productType is not a UUID.Invalid status. One of: approved, pending, missing

post/assets

Add an image to a family, from a URL or as base64.

SupplyFi checks the family first: it must be a UUID of a family in your workspace, or the call fails before anything is fetched or stored. A URL must be HTTPS and publicly reachable. The file must be a supported media type, its first bytes must match the declared type, it must be within the size limit and the workspace must have storage left. Assets created with an API key are approved straight away.

Needs scope: assets:write

Request
curl -X POST "https://app.supplyfi.co.uk/api/v1/assets" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY" \n  -H "Content-Type: application/json" \n  -d '{"familyId":"9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11","url":"https://files.example.com/photos/ex-1001-detail.jpg","role":"lifestyle","altText":"Trimmer detail","tags":["trimmer","detail"]}'

Send a url, or dataBase64 together with mimeType.

Response 201

The new asset.

{
  "id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
  "name": "ex-1001-detail",
  "kind": "image",
  "role": "lifestyle",
  "status": "approved",
  "url": "https://files.example.com/media/ex-1001-detail.jpg",
  "altText": "Trimmer detail",
  "tags": [
    "trimmer",
    "detail"
  ],
  "width": 1600,
  "height": 1200,
  "mimeType": "image/jpeg",
  "bytes": 301122,
  "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
  "renditions": {},
  "uploadedAt": "24 Oct 2026"
}
Errors from this endpoint
Errors of post /assets
StatusCodeWhenMessage
400invalid_requestThe body is not valid JSON.Invalid JSON body
400invalid_requestfamilyId is missing or not a UUID; the url is not a valid public HTTPS address or could not be fetched; or neither url nor dataBase64 with mimeType was sent.familyId must be a UUID
404not_foundFamily not found.Family not found
413payload_too_largeThe file is too large, or the workspace is out of storage.File too large
415unsupported_media_typeThe media type is not supported, or the file's content does not match its declared type.File content does not match its declared media type

get/assets/{assetId}

Get one asset, its renditions and the families it is attached to.

Needs scope: assets:read

Parameters
Parameters of get /assets/{assetId}
NameInTypeDescription
assetId *pathstringThe asset's id (a UUID). An id that is not a UUID returns 404.
Request
curl "https://app.supplyfi.co.uk/api/v1/assets/ASSET_ID" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

The asset, with linkedFamilyIds.

{
  "id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
  "name": "ex-1001-main",
  "kind": "image",
  "role": "hero",
  "status": "approved",
  "url": "https://files.example.com/media/ex-1001-main.jpg",
  "altText": null,
  "tags": [],
  "width": 2400,
  "height": 2400,
  "mimeType": "image/jpeg",
  "bytes": 512340,
  "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
  "renditions": {},
  "uploadedAt": "12 Apr 2026",
  "linkedFamilyIds": [
    "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11"
  ]
}
Errors from this endpoint
Errors of get /assets/{assetId}
StatusCodeWhenMessage
404not_foundAsset not found.Asset not found

patch/assets/{assetId}

Change an asset's role, alt text or tags.

Send only the fields you want to change.

Needs scope: assets:write

Parameters
Parameters of patch /assets/{assetId}
NameInTypeDescription
assetId *pathstringThe asset's id (a UUID). An id that is not a UUID returns 404.
Request
curl -X PATCH "https://app.supplyfi.co.uk/api/v1/assets/ASSET_ID" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY" \n  -H "Content-Type: application/json" \n  -d '{"role":"drawing","altText":"Dimensioned drawing","tags":["drawing"]}'

Any of role, altText, tags.

Response 200

The updated asset.

{
  "id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
  "name": "ex-1001-drawing",
  "kind": "image",
  "role": "drawing",
  "status": "approved",
  "url": "https://files.example.com/media/ex-1001-drawing.png",
  "altText": "Dimensioned drawing",
  "tags": [
    "drawing"
  ],
  "width": 1800,
  "height": 1200,
  "mimeType": "image/png",
  "bytes": 220010,
  "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
  "renditions": {},
  "uploadedAt": "12 Apr 2026"
}
Errors from this endpoint
Errors of patch /assets/{assetId}
StatusCodeWhenMessage
400invalid_requestThe body is not valid JSON.Invalid JSON body
400invalid_requestThe role is not one of the allowed values.Invalid role. One of: hero, drawing, manual, compliance, lifestyle, other
404not_foundAsset not found.Asset not found

delete/assets/{assetId}

Delete an asset, with its renditions and links.

Needs scope: assets:write

Parameters
Parameters of delete /assets/{assetId}
NameInTypeDescription
assetId *pathstringThe asset's id (a UUID). An id that is not a UUID returns 404.
Request
curl -X DELETE "https://app.supplyfi.co.uk/api/v1/assets/ASSET_ID" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

Deleted.

{
  "deleted": true,
  "id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d"
}
Errors from this endpoint
Errors of delete /assets/{assetId}
StatusCodeWhenMessage
404not_foundAsset not found.Asset not found

post/assets/{assetId}/links

Attach an asset to one or more families.

Send one familyId, or up to 100 in familyIds (duplicates are ignored). Ids that are not UUIDs or not found are listed in failed. If none could be attached the call fails with 422.

Needs scope: assets:write

Parameters
Parameters of post /assets/{assetId}/links
NameInTypeDescription
assetId *pathstringThe asset's id (a UUID). An id that is not a UUID returns 404.
Request
curl -X POST "https://app.supplyfi.co.uk/api/v1/assets/ASSET_ID/links" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY" \n  -H "Content-Type: application/json" \n  -d '{"familyIds":["9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11"],"isPrimary":false,"sortOrder":2}'

familyId, or familyIds for several.

Response 200

Which families were linked and which were not.

{
  "assetId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
  "linked": [
    "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11"
  ],
  "failed": []
}
Errors from this endpoint
Errors of post /assets/{assetId}/links
StatusCodeWhenMessage
400invalid_requestThe body is not valid JSON.Invalid JSON body
400invalid_requestNeither familyId nor familyIds was sent, or familyIds holds more than 100 ids.Provide familyId or familyIds[]
404not_foundAsset not found.Asset not found
422unprocessableNone of the families could be found.No valid families to attach. Unknown family ids: abc

delete/assets/{assetId}/links

Detach an asset from a family.

Needs scope: assets:write

Parameters
Parameters of delete /assets/{assetId}/links
NameInTypeDescription
assetId *pathstringThe asset's id (a UUID). An id that is not a UUID returns 404.
familyId *querystringThe family to detach from.
Request
curl -X DELETE "https://app.supplyfi.co.uk/api/v1/assets/ASSET_ID/links?familyId=FAMILY_ID" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

Detached.

{
  "detached": true,
  "assetId": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
  "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11"
}
Errors from this endpoint
Errors of delete /assets/{assetId}/links
StatusCodeWhenMessage
400invalid_requestThe familyId query parameter is missing.familyId query param is required
404not_foundLink not found.Link not found

Webhooks

Register and remove the URLs SupplyFi calls when something happens.

get/webhooks

List the webhooks registered for your workspace.

Needs the webhooks:write scope, because a webhook URL can carry a token (there is no read-only webhook scope). Secrets are never returned.

Needs scope: webhooks:write

Request
curl "https://app.supplyfi.co.uk/api/v1/webhooks" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

Registered webhooks.

{
  "data": [
    {
      "id": "5f4e3d2c-1b0a-4f9e-8d7c-6b5a49382716",
      "url": "https://hooks.example.com/supplyfi",
      "events": [
        "snapshot.approved"
      ],
      "active": true,
      "failCount": 0,
      "lastFiredAt": "2026-10-20T11:15:00.000Z",
      "createdAt": "2026-09-01T09:00:00.000Z"
    }
  ],
  "meta": {
    "total": 1
  }
}

post/webhooks

Register a URL to be called when something happens.

The URL must be HTTPS and reachable from the public internet. The signing secret is returned once. A workspace can have 20 webhooks, and registration is limited to 30 a minute per key. Four event names are accepted; today SupplyFi sends snapshot.approved only.

Needs scope: webhooks:write

Request
curl -X POST "https://app.supplyfi.co.uk/api/v1/webhooks" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY" \n  -H "Content-Type: application/json" \n  -d '{"url":"https://hooks.example.com/supplyfi","events":["snapshot.approved"]}'

The URL and the events to subscribe to.

Response 201

The webhook, with its signing secret (shown once).

{
  "id": "5f4e3d2c-1b0a-4f9e-8d7c-6b5a49382716",
  "url": "https://hooks.example.com/supplyfi",
  "events": [
    "snapshot.approved"
  ],
  "active": true,
  "createdAt": "2026-10-24T10:00:00.000Z",
  "secret": "whsec_<64 hex characters>",
  "_note": "Save the secret now — it will not be shown again. Verify incoming deliveries using X-SupplyFi-Signature (HMAC-SHA256)."
}
Errors from this endpoint
Errors of post /webhooks
StatusCodeWhenMessage
400invalid_requestThe body is not valid JSON.Invalid JSON body
400invalid_requestThe url is missing, not a valid HTTPS address, or not publicly reachable; or events is empty or has an unknown name.Unknown events: order.paid. Valid values: snapshot.approved, snapshot.created, family.sent, submission.received
409webhook_limit_reachedThe workspace already has 20 webhooks. Delete one first.Webhook limit reached (20 per workspace). Delete one before registering another.

patch/webhooks/{webhookId}

Pause a webhook, or switch it back on after SupplyFi turned it off.

SupplyFi switches a webhook off after repeated failed deliveries. Send active true to re-enable it (this resets its failure count), or false to pause it.

Needs scope: webhooks:write

Parameters
Parameters of patch /webhooks/{webhookId}
NameInTypeDescription
webhookId *pathstringThe webhook's id (a UUID). An id that is not a UUID returns 404.
Request
curl -X PATCH "https://app.supplyfi.co.uk/api/v1/webhooks/WEBHOOK_ID" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY" \n  -H "Content-Type: application/json" \n  -d '{"active":true}'

Only active is accepted, and it must be a boolean.

Response 200

The updated webhook.

{
  "id": "5f4e3d2c-1b0a-4f9e-8d7c-6b5a49382716",
  "url": "https://hooks.example.com/supplyfi",
  "events": [
    "snapshot.approved"
  ],
  "active": true,
  "failCount": 0,
  "lastFiredAt": "2026-10-20T11:15:00.000Z",
  "createdAt": "2026-09-01T09:00:00.000Z"
}
Errors from this endpoint
Errors of patch /webhooks/{webhookId}
StatusCodeWhenMessage
400invalid_requestThe body is not valid JSON.Invalid JSON body
400invalid_requestThe body is not an object with a boolean active.Body must be { "active": true | false }
404not_foundWebhook not found.Webhook not found

delete/webhooks/{webhookId}

Remove a webhook.

Needs scope: webhooks:write

Parameters
Parameters of delete /webhooks/{webhookId}
NameInTypeDescription
webhookId *pathstringThe webhook's id (a UUID). An id that is not a UUID returns 404.
Request
curl -X DELETE "https://app.supplyfi.co.uk/api/v1/webhooks/WEBHOOK_ID" \n  -H "Authorization: Bearer $SUPPLYFI_API_KEY"
Response 200

Removed.

{
  "deleted": true,
  "id": "5f4e3d2c-1b0a-4f9e-8d7c-6b5a49382716"
}
Errors from this endpoint
Errors of delete /webhooks/{webhookId}
StatusCodeWhenMessage
404not_foundWebhook not found.Webhook not found

Webhooks

A webhook is a URL of yours that SupplyFi calls when something happens, so you do not have to poll. Register one with POST /webhooks. The URL must be HTTPS and reachable from the public internet. A workspace can have 20 webhooks (past that, a 409 with code webhook_limit_reached). Listing, registering, pausing and removing webhooks all need the webhooks:write scope. SupplyFi switches a webhook off after repeated failed deliveries; turn it back on with PATCH /webhooks/{webhookId} and { "active": true }.

You can subscribe to snapshot.approved, snapshot.created, family.sent, submission.received. Today SupplyFi sends snapshot.approved only, when a product snapshot is approved; the other names are accepted now and nothing is sent for them yet.

Delivery body (made-up data)
{
  "event": "snapshot.approved",
  "timestamp": "2026-10-24T10:05:00.000Z",
  "snapshotId": "d1e2f3a4-5b6c-4d7e-8f90-a1b2c3d4e5f6",
  "familyId": "9b2f6c1e-3d4a-4e57-8a10-5c7d2f0e1a11",
  "familyName": "Example cordless garden trimmer",
  "productType": "Garden power tool",
  "supplier": "Example Tools Ltd",
  "approvedAt": "2026-10-24T10:05:00.000Z",
  "variantCount": 1,
  "skus": [
    "EX-1001-600"
  ]
}

Each delivery is a POST with these headers: X-SupplyFi-Event, X-SupplyFi-Delivery and X-SupplyFi-Signature. The signature is sha256= followed by the hex HMAC-SHA256 of the raw request body, made with the secret returned when you registered the webhook (shown once). Check it before you trust a delivery, and answer with any 2xx status. SupplyFi waits 10 seconds for a reply and counts a failure when there is none or it is not 2xx.

Verify a delivery (Node.js)
import { createHmac, timingSafeEqual } from "node:crypto";

export function isValidSignature(rawBody, header, secret) {
  const expected =
    "sha256=" + createHmac("sha256", secret).update(rawBody).digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(header ?? "");
  return a.length === b.length && timingSafeEqual(a, b);
}

MCP connector

The Model Context Protocol (MCP) lets an AI assistant such as Claude or Cursor look things up in your workspace and suggest changes. SupplyFi runs a hosted MCP server at https://app.supplyfi.co.uk/api/mcp. It is free on every paid plan and during the free trial. It is not available on the Free plan.

  • Key: create an MCP key in SupplyFi under Admin, then Integrations & AI, then AI assistants (MCP). This is a different screen from the REST API keys (API keys & webhooks). It carries the mcp scope on its own, and does nothing on the REST API (and the other way round).
  • Transport: Streamable HTTP, stateless, JSON responses. POST only. Send Authorization: Bearer <key>.
  • What it can do: read tools search products, product types, data quality and review queues. Propose tools only record a proposal; nothing changes until a workspace admin approves it in SupplyFi. Supplier and customer records are not available through it.
  • Limit: 120 requests a minute per key. Errors: 401 for a missing or bad key, 403 for a key without the mcp scope, 402 on the Free plan (MCP needs a paid plan or a trial), 429 when over the limit.
Connect Claude Code
claude mcp add --transport http supplyfi https://app.supplyfi.co.uk/api/mcp \
  --header "Authorization: Bearer <your MCP key>"
Cursor (mcp.json)
{
  "mcpServers": {
    "supplyfi": {
      "url": "https://app.supplyfi.co.uk/api/mcp",
      "headers": {
        "Authorization": "Bearer <your MCP key>"
      }
    }
  }
}

The assistant gets the list of tools from the server itself, which is built for your workspace, so it is always current.

OpenAPI file

Download the description of the REST API to generate a client, import it into an API tool, or give it to an AI assistant:

This page is at https://www.supplyfi.co.uk/developers. Questions? Email hello@supplyfi.co.uk.