List AI providers

SDK platic.aiProviders.list()

Read all four AI providers, whether or not a key is connected. Check the workspace's key status and available models.

Example

await platic.aiProviders.list();

Response

200 OK. data is the list, in this order: openai, google, anthropic, and xai. The example shows two.

{
  "status": "success",
  "data": [
    {
      "provider": "google",
      "name": "Google",
      "status": "connected",
      "health": "ok",
      "fallback": "platform",
      "lastVerifiedAt": "2026-11-13T16:20:00.000Z",
      "lastError": null,
      "secretName": "Google key",
      "models": [
        { "id": "gemini-4-argon", "name": "Gemini 4 Argon", "status": "available", "code": null, "ownKeyOnly": true },
        { "id": "gemini-3.8-flash", "name": "Gemini 3.8 Flash", "status": "available", "code": null, "ownKeyOnly": false },
        { "id": "gemini-3.5-flash-lite", "name": "Gemini 3.5 Flash-Lite", "status": "unavailable", "code": "MODEL_OR_DEPLOYMENT_NOT_FOUND", "ownKeyOnly": false }
      ]
    },
    {
      "provider": "anthropic",
      "name": "Anthropic",
      "status": "not_connected",
      "health": null,
      "fallback": null,
      "lastVerifiedAt": null,
      "lastError": null,
      "secretName": null,
      "models": [
        { "id": "claude-sonnet-5-5", "name": "Claude Sonnet 5.5", "status": "unverified", "code": null, "ownKeyOnly": true },
        { "id": "claude-haiku-5-5", "name": "Claude Haiku 5.5", "status": "unverified", "code": null, "ownKeyOnly": true },
        { "id": "claude-opus-5-5", "name": "Claude Opus 5.5", "status": "unverified", "code": null, "ownKeyOnly": true }
      ]
    }
  ]
}

The provider

FieldTypeDescription
providerstringopenai, google, anthropic, or xai
namestringThe provider's name
statusstringnot_connected, verifying, connected, invalid, or disabled. See states
healthstring | nullWhy the key fails: ok, key_rejected, no_credit, or no_model_access. null without a key. See states
fallbackstring | nullplatform or none. null without a key. See the fallback
lastVerifiedAtstring | nullWhen the key was last tested, in ISO 8601
lastErrorstring | nullWhy the key does not work, as a code: AUTH_INVALID, NO_CREDIT, QUOTA_OR_RATE_LIMIT…
secretNamestring | nullThe name of the secret that holds the key. Only appears if the credential can view secrets
modelsarrayThe provider's models
models[].id, models[].namestringId and name of the model
models[].statusstringavailable: your key runs it. unavailable: it does not run it. unverified: it has not been tested
models[].codestring | nullWith unavailable, why
models[].ownKeyOnlybooleantrue if the model only works with your own key

Notes