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"
}
],
"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)

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