BazaarLinkBazaarLink
Sign in
DocsAPI ReferenceSDK ReferenceAgentic UsageAI Skills
Management Keys

Create or update · Organization virtual models

Use a browser session or management key. Members may read; only org admins may write. Org-bound keys work only in their own org; inference keys are rejected.

PUT/api/orgs/:orgId/virtual-models

Authorizations

Authorizationrequired
string · header

API key as bearer token in the Authorization header.

Path parameters

orgIdrequired
string

Organization ID.

Example: org_abc123

Body

slugrequired
string

Owner-scoped model slug without vm/.

^[a-z0-9]+(?:-[a-z0-9]+)*$; maxLength: 80
Example: team-chat
stepsrequired
{source, model, resourceId?}[]

Ordered steps; BYOK/BYOC require resourceId.

1-32 steps; source: platform | byok | byoc; model: 1-200 chars, no vm/; resourceId: 1-200 chars
PUT /api/orgs/:orgId/virtual-models
curl -X PUT "https://bazaarlink.ai/api/orgs/$ORG_ID/virtual-models" \
  -H "Authorization: Bearer $BAZAARLINK_MANAGEMENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"team-chat","steps":[{"source":"platform","model":"qwen/qwen3.7-flash"}]}'
Response examples

Success.

{
  "model": {
    "slug": "team-chat",
    "steps": [
      {
        "source": "platform",
        "model": "qwen/qwen3.7-flash"
      }
    ],
    "updatedAt": "2026-10-03T00:00:00.000Z"
  }
}
Support
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
Create or update · Organization virtual models — BazaarLink API