Skip to contentSkip to page list

Docs

List Organization

List the organization's own model providers with masked API keys. Requires organization:view at the organization.

GET/api/v1/model-providers/organization
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/model-providers/organization"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

{  "providers": [    {      "id": "string",      "provider": "string",      "enabled": false,      "customKeys": {},      "deploymentMapping": null,      "models": [        "string"      ],      "embeddingsModels": [        "string"      ],      "customModels": [        {          "modelId": null,          "displayName": null,          "mode": null,          "maxTokens": null,          "supportedParameters": null,          "multimodalInputs": null        }      ],      "customEmbeddingsModels": [        {          "modelId": null,          "displayName": null,          "mode": null,          "maxTokens": null,          "supportedParameters": null,          "multimodalInputs": null        }      ],      "disabledByDefault": false,      "extraHeaders": [        {          "key": null,          "value": null        }      ],      "name": "string"    }  ]}
api-reference/model-providers/list-organization

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Responses

200

Success

application/json

providersobject[]required
idstringrequired
providerstringrequired
enabledbooleanrequired
customKeysobject | nullrequired
deploymentMappingany | nullrequired
modelsstring[] | null
embeddingsModelsstring[] | null
customModelsobject[] | null
customEmbeddingsModelsobject[] | null
disabledByDefaultboolean
extraHeadersobject[] | null
namestringrequired
400

Bad Request

application/json

errorstringrequired
messagestring
401

Unauthorized

application/json

errorstringrequired
messagestring
422

Unprocessable Entity

application/json

errorstringrequired
messagestring
500

Internal Server Error

application/json

errorstringrequired
messagestring

Documentation