Ana içeriğe geç

List LLM Provider Definitions

Endpoint

GET /apiops/projects/{projectName}/llm-provider-definitions/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name

Query Parameters

None

Response

Success Response (200 OK)

{
"status": "SUCCESS",
"resultList": [
{
"id": "6702a1f4e1b2c3d4e5f60101",
"projectId": null,
"name": "openai",
"code": "openai",
"displayName": "OpenAI",
"defaultEndpoint": "https://api.openai.com/v1",
"defaultApiVersion": null,
"defaultAuthScheme": "BEARER",
"defaultAuthHeaderName": "Authorization",
"iconUrl": "https://cdn.apinizer.com/ai-icons/openai.svg",
"docsUrl": "https://platform.openai.com/docs",
"builtIn": true,
"lastUpdatedAt": "2026-05-10T08:00:00Z"
},
{
"id": "6712b2f4e1b2c3d4e5f60222",
"projectId": "660f1e2a9c4b5a6d7e8f9012",
"name": "internal-llm-gateway",
"code": "internal-llm-gateway",
"displayName": "Internal LLM Gateway",
"defaultEndpoint": "https://llm-gateway.internal.example.com/v1",
"defaultApiVersion": "v1",
"defaultAuthScheme": "API_KEY_HEADER",
"defaultAuthHeaderName": "x-api-key",
"iconUrl": null,
"docsUrl": null,
"builtIn": false,
"lastUpdatedAt": "2026-07-20T14:32:00Z"
}
],
"resultCount": 2
}

Response Fields

FieldTypeDescription
statusstringResponse status: SUCCESS or FAILURE
resultListarrayList of LLM provider catalog definition objects
resultCountintegerTotal number of definitions returned

LLM Provider Definition Object Fields

FieldTypeDescription
idstringInternal identifier (read-only)
projectIdstringOwning project identifier; null for built-in (global) entries (read-only)
namestringDefinition name — unique within its visible scope
codestringProvider type code (e.g. openai, anthropic, azure-openai); matches EnumLlmProviderType values for built-in entries
displayNamestringUI label (e.g. OpenAI, Anthropic Claude)
defaultEndpointstringDefault base API URL; blank for tenant-specific providers (Azure/Bedrock/Vertex)
defaultApiVersionstringDefault API version (e.g. 2024-02-15-preview for Azure)
defaultAuthSchemestringDefault auth scheme enum constant (BEARER, API_KEY_HEADER, BASIC, AWS_SIGV4, OAUTH2, NONE, CUSTOM)
defaultAuthHeaderNamestringDefault credential header name (e.g. Authorization, x-api-key, api-key)
iconUrlstringProvider icon URL (optional)
docsUrlstringVendor documentation deep link (optional)
builtInbooleantrue for platform-shipped catalog entries (read-only, seeded by Mongock); false for project custom entries
lastUpdatedAtstringISO-8601 timestamp of the last update (read-only)

EnumStatus

  • SUCCESS - Operation successful
  • FAILURE - Operation failed

Error Response (400 Bad Request)

{
"status": "FAILURE",
"resultMessage": "Project (name: MyProject) was not found!"
}

Error Response (401 Unauthorized)

{
"status": "FAILURE",
"resultMessage": "Token is not valid!"
}

cURL Example

curl -X GET \
"https://demo.apinizer.com/apiops/projects/MyProject/llm-provider-definitions/" \
-H "Authorization: Bearer YOUR_TOKEN"

Notes and Warnings

  • Read Scope:
    • Returns the union of built-in catalog entries (projectId: null) and the calling project's own custom entries — not other projects' custom entries
  • No Secrets:
    • The entity carries no @SecretData fields (endpoint/API-version/auth-scheme defaults only); nothing is masked in this response
  • Enum Serialization:
    • defaultAuthScheme serializes as the enum constant name (e.g. BEARER, API_KEY_HEADER), not lowercase
  • Empty List:
    • If the project has no custom entries and no built-in catalog is seeded, an empty resultList with resultCount: 0 is returned