Token FactoryAPI Reference

Model owners

List and create catalog vendors (model owners).

Model owners

Prefix: /api/v1/catalog/vendors

See Overview for authentication and the StandardPageResponse page shape.

A model owner is a catalog vendor. name is required. When slug is omitted, the server derives one from the name. When sourceId is omitted, the row is stored as manual source c4a7a10c-a701-4e89-b012-345678902013.

Endpoint summary

MethodPath
GET/vendors
POST/vendors

List model owners

GET /api/v1/catalog/vendors?page=0&size=100
Authorization: Bearer YOUR_API_TOKEN
QueryDefaultDescription
page00-based page index
size20Page size, clamped to 1–100. A request for 200 is returned as 100
searchCase-insensitive match on name and slug

Response 200

{
  "items": [
    {
      "id": "34343434-3434-3434-3434-343434343434",
      "name": "MMM",
      "slug": "MMM",
      "icon": null,
      "iconUrl": null,
      "description": "dwaaw",
      "sourceId": "c4a7a10c-a701-4e89-b012-345678902011",
      "sourceLabel": "seed",
      "raw": {}
    }
  ],
  "page": 0,
  "size": 100,
  "totalElements": 1,
  "totalPages": 1
}

raw is the stored vendor record.


Create a model owner

POST /api/v1/catalog/vendors
Content-Type: application/json
Authorization: Bearer YOUR_API_TOKEN

{
  "name": "MMM",
  "slug": "MMM",
  "description": "dwaaw",
  "sourceId": "c4a7a10c-a701-4e89-b012-345678902011"
}
FieldRequiredDescription
nameyesDisplay name. Blank is rejected
slugnoStable key. Derived from name when omitted
descriptionnoFree text
iconnoIcon file id or icon key
iconUrlnoIcon URL
sourceIdnoCatalog Source item id. See the table below. Omitted values are stored as manual
NameId
seedc4a7a10c-a701-4e89-b012-345678902011
openrouterc4a7a10c-a701-4e89-b012-345678902012
manualc4a7a10c-a701-4e89-b012-345678902013
privatec4a7a10c-a701-4e89-b012-345678902014

Response 200 — one vendor object, same fields as a list item.