DELETE/api/orgs/{org_id}/provider/credential

Remove the provider house key

Drops the stored key and returns the provider to bring-your-own-key (auth_mode: none), where the platform holds no credential. Idempotent. Org admin session or the org's own key; 422 for a native provider.

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメータ

  • org_idstring必須

    Your organization id (uuid). GET /api/whoami returns it.

レスポンス

  • 200

    The updated provider row.

    レスポンス
    • slugstring必須
    • display_namestring必須
    • familyenum必須
      "native""openai_compatible"
    • base_urlstring | null必須

      The OpenAI-compatible base URL the gateway calls.

    • auth_modeenum必須

      house_key: the platform holds your key. none: no stored key. native: a built-in integration whose credential the platform manages.

      "house_key""none""native"
    • statusenum必須

      Provider lifecycle.

      "onboarding""canary""live""offboarded"
    • max_concurrencyinteger | null必須
    • advertised_tpsnumber | null必須
    • data_policyobject必須

      Self-declared prompt-data handling. retention_days is required when retains_prompts is true and must be omitted otherwise; zero_data_retention requires retains_prompts and trains_on_data both false.

      data_policy
      • retains_promptsboolean必須
      • retention_daysinteger | null

        Days prompts are kept.

      • trains_on_databoolean必須
      • zero_data_retentionboolean必須
      • policy_urlstring | null

        Public https URL of the policy.

    • contactobject必須
      contact
      • emailstring必須

        Where the platform reaches you when a lane misbehaves.

      • escalationstring | null

        Free-form escalation instructions (pager, shared channel, phone).

      • status_pagestring | null

        Public https status page.

    • logo_urlstring | null必須
    • credential_last4string | null必須

      Last four characters of the stored house key. The key itself is never returned.

    • has_credentialboolean必須
    • stripe_account_idstring | null必須

      Linked Stripe Connect account.

    • payouts_enabledboolean必須

      Whether Stripe reports the linked account payout-ready.

  • 401

    Missing, unknown or revoked API key.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 403

    The key is valid but may not perform this action (for example an inference key on a provisioning-key route, or a feature outside your plan).

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 422

    The provider is native.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

リクエスト

curl -X DELETE https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider/credential \
  -H "Authorization: Bearer YOUR_API_KEY"

レスポンス

{
  "slug": "acme-inference",
  "display_name": "Acme Inference",
  "family": "openai_compatible",
  "base_url": "https://api.acme-inference.example/v1",
  "auth_mode": "none",
  "status": "canary",
  "max_concurrency": 256,
  "advertised_tps": 80,
  "data_policy": {
    "retains_prompts": false,
    "retention_days": null,
    "trains_on_data": false,
    "zero_data_retention": true,
    "policy_url": null
  },
  "contact": {
    "email": "oncall@acme-inference.example",
    "escalation": null,
    "status_page": null
  },
  "logo_url": null,
  "credential_last4": null,
  "has_credential": false,
  "stripe_account_id": null,
  "payouts_enabled": false
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider/credential