Ana içeriğe geç

Get LLM Provider Definition

Endpoint

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

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
definitionNamestringYesProvider catalog definition 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",
"wireProtocol": "OPENAI_COMPATIBLE",
"defaultChatCompletionPath": "/chat/completions",
"defaultEmbeddingPath": "/embeddings",
"defaultAudioTranscriptionPath": "/audio/transcriptions",
"defaultAudioSpeechPath": "/audio/speech",
"defaultImageGenerationPath": "/images/generations",
"defaultResponsesPath": "/responses",
"supportsEmbedding": true,
"supportsResponses": true
}
],
"resultCount": 1
}

Response Fields

FieldTypeDescription
statusstringResponse status: SUCCESS or FAILURE
resultListarraySingle-element list containing the requested definition
resultCountintegerAlways 1 on success

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)
displayNamestringUI label
defaultEndpointstringDefault base API URL
defaultApiVersionstringDefault API version
defaultAuthSchemestringDefault auth scheme enum constant (BEARER, API_KEY_HEADER, BASIC, AWS_SIGV4, OAUTH2, NONE, CUSTOM)
defaultAuthHeaderNamestringDefault credential header name
iconUrlstringProvider icon URL (optional)
docsUrlstringVendor documentation deep link (optional)
builtInbooleantrue for platform-shipped catalog entries (read-only); false for project custom entries
lastUpdatedAtstringISO-8601 timestamp of the last update (read-only)
wireProtocolstringThe adapter family this provider's wire format resolves against — one of OPENAI_COMPATIBLE, ANTHROPIC, GEMINI, BEDROCK, VLLM; null when the catalog doesn't vouch for a specific wire format (a Cohere-style provider that only falls through to the OpenAI adapter, for example)
defaultChatCompletionPathstringDefault chat-completion endpoint path (e.g. /chat/completions, /messages)
defaultEmbeddingPathstringDefault embedding endpoint path; null when supportsEmbedding is false
defaultAudioTranscriptionPathstringDefault speech-to-text endpoint path (optional)
defaultAudioSpeechPathstringDefault text-to-speech endpoint path (optional)
defaultImageGenerationPathstringDefault image-generation endpoint path (optional)
defaultResponsesPathstringDefault OpenAI Responses API-style endpoint path (optional)
supportsEmbeddingbooleanWhether this provider has an embedding endpoint
supportsResponsesbooleanWhether this provider supports the Responses-style endpoint
wireProtocol and the path fields can be null

These nine fields were added after the original catalog shape and are backward-compatible: any provider definition saved before they existed simply returns them as null, and nothing about existing behavior changes because of it. See the Provider Type Catalog section for what a null value falls back to.

EnumStatus

  • SUCCESS - Operation successful
  • FAILURE - Operation failed

Error Response (400 Bad Request)

{
"status": "FAILURE",
"resultMessage": "Provider definition (name: internal-llm-gateway) was not found!"
}

or

{
"status": "FAILURE",
"resultMessage": "Provider definition name can not be empty!"
}

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/openai/" \
-H "Authorization: Bearer YOUR_TOKEN"

Notes and Warnings

  • Name-based Lookup:
    • definitionName is matched case-insensitively against the definition name, across the caller's visible scope (built-in ∪ this project's custom entries)
    • A non-existent name — or a name that only exists in another project's custom scope — returns a 400 Bad Request with a "was not found" message
  • No Secrets:
    • The entity carries no @SecretData fields; nothing is masked in this response