---
title: "GetAICreditMetric"
method: GET
path: "/v1/namespaces/{tenant_meta.namespace}/ai-credit-metrics/{uuid}"
tags: ["AICreditMetricService"]
---

# GetAICreditMetric

`GET /v1/namespaces/{tenant_meta.namespace}/ai-credit-metrics/{uuid}`

## Request

- Base URL: `https://api.endorlabs.com`
- URL: `https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/ai-credit-metrics/{uuid}`
- Auth: none declared

Fetches an AICreditMetric specified by its UUID.

## Path parameters

- `tenant_meta.namespace` string, required
- `uuid` string, required

## Query parameters

- `get_parameters.mask` string

## Response `200`

A successful response.

- V1AICreditMetric: Implements metric to measure credits accrued for AI usage per root tenant.
  - `meta` V1Meta, required: Common fields for all Endor Labs resources.
    - `annotations` object: Annotations can be used to attach metadata to a resource message. Annotation values can be small or large, structured or unstructured, and may include characters not permitted by labels. The keys may contain alphanumerics, underscores (_), dots (.) and dashes (-). The values of an annotation must be 16384 bytes or smaller.
    - `create_time` string, date-time: Time the resource was created. Format: 2017-01-15T01:30:15.01Z RFC 3339: https://www.ietf.org/rfc/rfc3339.txt.
    - `created_by` string: Name and authentication source of the user who created the object, for example, ewok@endor.ai@google@api-key.
    - `description` string: Resource description. Must be less than 1024 bytes.
    - `index_data` V1IndexData: IndexData is used to index the resource for search. It's an internal object.
      - `data` string[]
      - `search_score` number, float: search_score is the score of the resource for search. Internal use only.
      - `tenant` string
      - `will_be_deleted_at` string, date-time: Time that the resource will be deleted.
    - `kind` string: Resource kind, for example, HelloResponse. Auto-generated using the protobuf message proto.MessageName().Name().
    - `name` string, required: Resource name. Must be 63 characters or less.
    - `parent_kind` string: Parent object resource kind, for example, Project.
    - `parent_uuid` string: Parent object UUID.
    - `references` object: Map of objects referenced in a query API.
    - `tags` string[]: List of tags attached to the resource. Tags can be used to select objects and to find collections of objects that satisfy certain conditions. A tag must be 255 characters or less.
    - `update_time` string, date-time: Time the resource was last updated. Note: Updated on all create/patch/delete operations. Format: 2017-01-15T01:30:15.01Z RFC 3339: https://www.ietf.org/rfc/rfc3339.txt.
    - `updated_by` string: Name and authentication source of the last user who updated the object, for example, vulnerabilityingestor@endor.ai@x509.
    - `upsert_time` string, date-time: Time the resource was last upserted. Note: create_time is only set the first time the resource is created. upsert_time is set every time the resource is upseted. Format: 2017-01-15T01:30:15.01Z RFC 3339: https://www.ietf.org/rfc/rfc3339.txt.
    - `version` string: Message version.
  - `spec` V1AICreditMetricSpec
    - `accrued_date` string, date-time, required: Indicates the date when cost was calculated/accrured.
    - `ai_feature` 'AI_FEATURE_UNSPECIFIED' | 'AI_FEATURE_SECURITY_REVIEW' | 'AI_FEATURE_AI_SAST' | 'AI_FEATURE_AIFP_EVALUATOR' | 'AI_FEATURE_LICENSE_EXTRACTION' | 'AI_FEATURE_MODEL_DISCOVERY' | 'AI_FEATURE_MODEL_METADATA_EXTRACTION' | 'AI_FEATURE_SKILL_SCORING' | 'AI_FEATURE_MCP_RISK_EVALUATION' | 'AI_FEATURE_AI_SAST_CONTEXT_SUMMARY' | 'AI_FEATURE_AGENT_POLICY_CMD_CLASSIFICATION' | 'AI_FEATURE_MALWARE_ANALYSIS': AIFeature identifies which AI feature is making the request. This is used for metrics, billing, and feature tracking. - AI_FEATURE_AI_SAST_CONTEXT_SUMMARY: AI SAST per-project context summarization that grounds segment prompts. - AI_FEATURE_AGENT_POLICY_CMD_CLASSIFICATION: Agent-governance adjudication of a command an agent hook policy flagged. - AI_FEATURE_MALWARE_ANALYSIS: Malware analysis of a published package version (ported sr-malware-detection LLM signals).
    - `byok` boolean: Deprecated: read credential_class instead. Still written, derived from it, so readers have one release to move. Indicates the credits were accrued through customer-provided (bring your own key) credentials. Such records are kept for usage monitoring and are excluded from platform credit-limit enforcement. It is not part of the record identity: credential_class is.
    - `cached_token_count` number, double: The prompt tokens the provider served from, or wrote to, its prompt cache, as the provider reports them. OpenAI and Gemini count them inside prompt_token_count. Anthropic reports them in addition to it, and for Anthropic they are not in total_credit_count.
    - `completion_token_count` number, double: The output tokens of total_credit_count, without the reasoning tokens.
    - `credential_class` 'AI_CREDENTIAL_CLASS_UNSPECIFIED' | 'AI_CREDENTIAL_CLASS_PLATFORM' | 'AI_CREDENTIAL_CLASS_BYOK': AICredentialClass names the provider account an AI request billed against. It supersedes the byok boolean, which cannot name a third kind of account and cannot say which of a tenant's keys served a request. The value names carry a constraint. Lowercased and stripped of the AI_CREDENTIAL_CLASS_ prefix, each one must equal the credential-class label value the LLM metrics use, so a stored record and a metric series never name the same account differently. A rename breaks that pairing silently. - AI_CREDENTIAL_CLASS_UNSPECIFIED: No class was assigned, so the record predates credential classification. - AI_CREDENTIAL_CLASS_PLATFORM: Endor's own provider account served the request. - AI_CREDENTIAL_CLASS_BYOK: The tenant's own provider account served the request, reached through one of their AI provider keys.
    - `credential_ref` string: The uuid of the AI provider key the accrued usage billed against, unset unless the credential class is BYOK. Part of the record identity, so each key accrues into its own record for the day.
    - `embedding_call_count` number, double: The provider requests that returned embeddings for calls Endor made on the tenant's behalf, as Endor observed them. One embedding call can span several provider requests. Unset on chat records.
    - `embedding_document_count` number, double: The texts those provider requests embedded. Unset on chat records.
    - `embedding_model` 'EMBEDDING_MODEL_UNSPECIFIED' | 'EMBEDDING_MODEL_OPENAI_TEXT_EMBEDDING_ADA_002' | 'EMBEDDING_MODEL_OPENAI_TEXT_EMBEDDING_3_SMALL' | 'EMBEDDING_MODEL_GOOGLE_TEXT_EMBEDDING_LARGE' | 'EMBEDDING_MODEL_OPENAI_TEXT_EMBEDDING_3_LARGE': EmbeddingModel is the model of the embedding provider.
    - `failed_attempt_count` number, double: The provider responses that were received, billed, and then discarded, for example because the output failed schema validation. Their tokens are in failed_token_count and also in total_credit_count and the token breakdown.
    - `failed_token_count` number, double: The part of total_credit_count that failed attempts consumed.
    - `llm` 'AVAILABLE_LLM_UNSPECIFIED' | 'AVAILABLE_LLM_OPENAI_GPT_5' | 'AVAILABLE_LLM_OPENAI_GPT_5_MINI' | 'AVAILABLE_LLM_OPENAI_GPT_5_NANO' | 'AVAILABLE_LLM_OPENAI_GPT_5_CHAT' | 'AVAILABLE_LLM_OPENAI_GPT_5_1' | 'AVAILABLE_LLM_OPENAI_GPT_5_1_CHAT' | 'AVAILABLE_LLM_OPENAI_GPT_5_1_CODEX' | 'AVAILABLE_LLM_OPENAI_GPT_5_1_CODEX_MINI' | 'AVAILABLE_LLM_OPENAI_GPT_5_2_CODEX' | 'AVAILABLE_LLM_OPENAI_GPT_5_2' | 'AVAILABLE_LLM_OPENAI_GPT_5_3_CODEX' | 'AVAILABLE_LLM_OPENAI_GPT_5_3_CHAT' | 'AVAILABLE_LLM_OPENAI_GPT_5_4_MINI' | 'AVAILABLE_LLM_OPENAI_GPT_5_4_NANO' | 'AVAILABLE_LLM_OPENAI_GPT_5_4' | 'AVAILABLE_LLM_OPENAI_GPT_5_5' | 'AVAILABLE_LLM_OPENAI_GPT_5_6_LUNA' | 'AVAILABLE_LLM_OPENAI_GPT_5_6_SOL' | 'AVAILABLE_LLM_OPENAI_GPT_5_6_TERRA' | 'AVAILABLE_LLM_OPENAI_GPT_6_SOL' | 'AVAILABLE_LLM_OPENAI_GPT_6_LUNA' | 'AVAILABLE_LLM_OPENAI_GPT_6_1_SOL' | 'AVAILABLE_LLM_OPENAI_GPT_6_1_TERRA' | 'AVAILABLE_LLM_OPENAI_GPT_4' | 'AVAILABLE_LLM_OPENAI_GPT_4O_MINI' | 'AVAILABLE_LLM_OPENAI_GPT_4_1' | 'AVAILABLE_LLM_OPENAI_GPT_4_1_MINI' | 'AVAILABLE_LLM_OPENAI_GPT_4_1_NANO' | 'AVAILABLE_LLM_OPENAI_O1' | 'AVAILABLE_LLM_OPENAI_O3' | 'AVAILABLE_LLM_OPENAI_GPT_4O' | 'AVAILABLE_LLM_OPENAI_O3_MINI' | 'AVAILABLE_LLM_OPENAI_O4_MINI' | 'AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_2_0' | 'AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_LATEST' | 'AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_2_5' | 'AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_2_5_PREVIEW' | 'AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_2_5_LITE' | 'AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_2_0_LITE' | 'AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_LITE_LATEST' | 'AVAILABLE_LLM_GOOGLE_GEMINI_2_5_PRO' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_PRO_PREVIEW' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_1_PRO_PREVIEW' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_1_FLASH_LITE_PREVIEW' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_1_FLASH_LITE' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_5_FLASH_LITE' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_5_FLASH' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_6_FLASH' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_7_FLASH' | 'AVAILABLE_LLM_GOOGLE_GEMINI_3_FLASH_PREVIEW' | 'AVAILABLE_LLM_ANTHROPIC_CLAUDE_3_5_SONNET' | 'AVAILABLE_LLM_ANTHROPIC_CLAUDE_4_5_SONNET' | 'AVAILABLE_LLM_ANTHROPIC_CLAUDE_4_5_HAIKU' | 'AVAILABLE_LLM_GROQ_LLAMA_3_2_90B' | 'AVAILABLE_LLM_GROQ_COMPOUND' | 'AVAILABLE_LLM_GROQ_COMPOUND_MINI' | 'AVAILABLE_LLM_GROQ_LLAMA_3_3_70B_VERSATILE' | 'AVAILABLE_LLM_GROQ_LLAMA_4_MAVERICK_17B' | 'AVAILABLE_LLM_GROQ_LLAMA_4_SCOUT_17B' | 'AVAILABLE_LLM_GROQ_OPENAI_GPT_OSS_20B' | 'AVAILABLE_LLM_GROQ_OPENAI_GPT_OSS_120B' | 'AVAILABLE_LLM_GROQ_OPENAI_GPT_OSS_SAFEGUARD_20B' | 'AVAILABLE_LLM_GROQ_QWEN_3_32B' | 'AVAILABLE_LLM_GROQ_LLAMA_PROMPT_GUARD_2_22M' | 'AVAILABLE_LLM_GROQ_LLAMA_PROMPT_GUARD_2_86M' | 'AVAILABLE_LLM_GROQ_LLAMA_GUARD_4_12B' | 'AVAILABLE_LLM_ENDOR_DEEPSEEK_R1' | 'AVAILABLE_LLM_ENDOR_QWEN_3_8_27B' | 'AVAILABLE_LLM_GOOGLE_GEMMA_4_26B_A4B_IT' | 'AVAILABLE_LLM_GOOGLE_GEMINI_R2D2_LATEST' | 'AVAILABLE_LLM_FIREWORKS_GPT_OSS_20B' | 'AVAILABLE_LLM_FIREWORKS_GPT_OSS_120B' | 'AVAILABLE_LLM_FIREWORKS_KIMI_K25' | 'AVAILABLE_LLM_FIREWORKS_MINIMAX_M27' | 'AVAILABLE_LLM_FIREWORKS_QWEN_3_6_PLUS', required: LLMs available to AgentConfig. - AVAILABLE_LLM_OPENAI_GPT_5_CHAT: GPT-5 chat is a variant of GPT-5 that is optimized for chat use cases and does not support reasoning. - AVAILABLE_LLM_OPENAI_GPT_5_6_LUNA: GPT-5.6 Luna is the cost-efficient GPT-5.6 tier. - AVAILABLE_LLM_OPENAI_GPT_5_6_SOL: GPT-5.6 Sol is the highest-capability GPT-5.6 tier. - AVAILABLE_LLM_OPENAI_GPT_5_6_TERRA: GPT-5.6 Terra balances GPT-5.6 cost and capability. - AVAILABLE_LLM_OPENAI_GPT_6_1_SOL: GPT-6.1 Sol provides reasoning through the OpenAI provider. - AVAILABLE_LLM_OPENAI_GPT_6_1_TERRA: GPT-6.1 Terra supports visual reasoning and computer use through OpenAI. - AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_2_5_PREVIEW: deprecated: use AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_2_5_LITE instead. - AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_LITE_LATEST: NEVER USE: use AVAILABLE_LLM_GOOGLE_GEMINI_FLASH_2_5_LITE instead. - AVAILABLE_LLM_GOOGLE_GEMINI_3_1_FLASH_LITE_PREVIEW: deprecated: use AVAILABLE_LLM_GOOGLE_GEMINI_3_1_FLASH_LITE instead. - AVAILABLE_LLM_GOOGLE_GEMINI_3_1_FLASH_LITE: GA Gemini 3.1 Flash Lite; in the EU it is served from the eu.rep data-residency endpoint. - AVAILABLE_LLM_GOOGLE_GEMINI_3_5_FLASH_LITE: Generally available Gemini 3.5 Flash Lite model on Vertex AI: the high-throughput tier of the 3.5 generation. - AVAILABLE_LLM_GOOGLE_GEMINI_3_5_FLASH: Generally available Gemini 3.5 Flash model on Vertex AI. - AVAILABLE_LLM_GOOGLE_GEMINI_3_6_FLASH: Generally available Gemini 3.6 Flash model on Vertex AI: the successor to 3.5 Flash. - AVAILABLE_LLM_GOOGLE_GEMINI_3_7_FLASH: Generally available Gemini 3.7 Flash model on Vertex AI: the successor to 3.6 Flash.
    - `llm_cost` number, double: Indicates total cost accrued for using this specific AI model for the said AI feature on the accrued date, priced at the platform rate and including failed attempts. Unset for BYOK records: the customer's provider account bills that usage, at a price the platform does not know.
    - `prompt_token_count` number, double: The input tokens of total_credit_count, as the provider counts them.
    - `reasoning_token_count` number, double: The reasoning (thinking) output tokens of total_credit_count. Zero for providers that report none.
    - `route_usage` V1RouteUsage: RouteUsage stores recorded counter increments by serving route. Historical totals without this field remain as unattributed residuals.
      - `cached_token_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `completion_token_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `embedding_call_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `embedding_document_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `failed_attempt_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `failed_token_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `incomplete_usage_response_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `llm_cost` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `prompt_token_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `provider_response_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `reasoning_token_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
      - `total_credit_count` V1RouteCounter: RouteCounter stores one counter value for each fixed serving route.
        - `anthropic_api` number, double: Recorded value for Anthropic API observations.
        - `azure_ai_inference` number, double: Recorded value for Azure AI Inference observations.
        - `azure_openai` number, double: Recorded value for Azure OpenAI observations.
        - `endor_gateway` number, double: Recorded value for Endor gateway observations.
        - `fireworks_api` number, double: Recorded value for Fireworks observations.
        - `gemini_api` number, double: Recorded value for Gemini API observations.
        - `groq_api` number, double: Recorded value for Groq observations.
        - `openai_compatible` number, double: Recorded value for OpenAI-compatible service observations.
        - `openai_direct` number, double: Recorded value for direct OpenAI API observations.
        - `unknown` number, double: Recorded value for observations without a safe route classification.
        - `vertex_ai` number, double: Recorded value for Vertex AI observations.
    - `source_revision` string, int64: Per-document source-state revision. Absent or zero means unknown. Trust this value only after writer cutover. This is not a request count.
    - `successful_call_count` number, double: The AI requests of this record that succeeded end to end: the provider answered and Endor saved the response. A request whose response could not be saved is not counted here, although its tokens are in total_credit_count, because the provider billed them. A record opened before this count existed counts only the requests after it began. Unset on embedding records.
    - `total_credit_count` number, double, required: Indicates total tokens/credits accrued for using this specific AI model for the said AI feature on the accrued date. On records opened after the token breakdown fields were added, it equals prompt_token_count + completion_token_count + reasoning_token_count. It includes the tokens of failed attempts.
  - `tenant_meta` V1TenantMeta, required: Tenant related data for the tenant containing the resource.
    - `namespace` string, required: Namespaces are a way to organize organizational units into virtual groupings of resources. Namespaces must be a fully qualified name, for example, the child namespace of namespace "endor.prod" called "app" is called "endor.prod.app".
  - `uuid` string: The uuid of the resource.

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `4acd9fe15140`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/endorlabs/apis/endor-labs-rest-api-reference/changes/v1/namespaces/:tenant_meta.namespace/ai-credit-metrics/:uuid/get.md)

---

[API](https://skmtc.dev/endorlabs/apis/endor-labs-rest-api-reference.md) - [All operations](https://skmtc.dev/endorlabs/apis/endor-labs-rest-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/endorlabs/apis/endor-labs-rest-api-reference/revisions/4acd9fe15140?raw)
