List AI providers
Lists the workspace's connected AI providers.
GET/v1/workspaces/{regionId}/ai-providers
Returns
200 OK with the object shown in the response.
More details
Every direct AI provider connection in the workspace, connected or pending: who it is, the account it reads, the key's last four characters, when it was last synced and how that went. The key itself is never returned. Needs 'view' access to suppliers or to invoices.
Response fields
accountLabelstringWhat the provider calls the organization or account the key reads.
keyHintstringThe key's last four characters, the only trace of it Pleaxy shows. Absent for Snowflake, whose key pair Pleaxy generated.
statusstringconnected, or pending for a Snowflake key pair whose public key hasn't been assigned to the service user yet: SyncAiProvider checks it and finishes connecting.
snowflakeobjectSnowflake only: the account identifier, service user, warehouse and optional role the key pair signs in as, and the public key (PEM) and its fingerprint to assign with ALTER USER ... SET RSA_PUBLIC_KEY.
creditPriceobjectSnowflake only: your contract's price per credit, which turns credits into money. Without it the provider's AI lines stay in credits, with currency credits, and are never summed with money.
supplierConnectionIdstringThe supplier entry the provider is seated on; purchase orders raised to it are what AI spend sets its lines against.
currencystringThe provider's billing currency, as its cost report gives it.
lastSyncStatusstringHow the last read went: ok, error (lastSyncError says why, lastSyncErrorCode is access_revoked when the key no longer works) or throttled (the provider asked Pleaxy to wait; the next run tries again).
Errors
- 401 Unauthorized - No credential was presented, or the Bearer token / X-Api-Key value is missing, invalid, expired, or revoked.
- 403 Forbidden - The caller's Bearer token or API key doesn't grant access to this workspace (regionId), or lacks the required role.
curl "$PLEAXY_API_BASE_URL/v1/workspaces/{regionId}/ai-providers" \
-H "X-Api-Key: $PLEAXY_API_KEY"[
{
"id": "string",
"provider": "openai" | "anthropic" | "mistral" | "snowflake" | "openrouter" | "databricks" | "coreweave",
"accountLabel": "string",
"keyHint": "string",
"status": "connected" | "pending",
"connectedAt": "string",
"connectedBy": "string",
"snowflake": { "account": "string", "user": "string", "warehouse": "string", "role": "string", "publicKeyPem": "string", "publicKeyFingerprint": "string" },
"creditPrice": { "amount": number, "currency": "string", "kind": "on_demand" | "capacity" | "commit" },
"supplierConnectionId": "string",
"currency": "string",
"lastSyncedAt": "string",
"lastSyncStatus": "ok" | "error" | "throttled",
"lastSyncError": "string",
"lastSyncErrorCode": "string"
}
]