Skip to main content

Get Oracle Metric

Returns one metric provider with its connection. The auth secret is never returned: integration.connection.auth.secret_set only says whether one is stored. A deleted provider is not found.

Required permission: oracle:view

Request​

GET /v2/admin/oracle-metrics/{oracle_metric_id}

Parameters​

NameTypeInDescription
oracle_metric_idstringpathRequired. Metric provider id (24-character hex)

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request GET \
--url '{{baseUrl}}/v2/admin/oracle-metrics/6a5d0206379ebd02e53bf1a1' \
--header 'Authorization: Bearer <access_token>'

Response​

{
"id": "6a5d0206379ebd02e53bf1a1",
"category_id": "6a5d0206379ebd02e53bf0df",
"type": "SHEET",
"name": "Togg Şarj İstasyonu Metric Sheet",
"description": "Google Sheets üzerinden yönetilen Togg şarj istasyonu token metrikleri",
"integration": {
"codes": [
{ "code": "TOGG1", "name": "Togg Şarj İstasyonu 1", "description": "İstanbul Ataşehir hızlı şarj istasyonu" },
{ "code": "TOGG2", "name": "Togg Şarj İstasyonu 2", "description": "Ankara Çankaya hızlı şarj istasyonu" }
],
"fiat_currency": "TRY",
"connection": {
"url": "https://docs.google.com/spreadsheets/d/1Q9xWmT4kLp7RzV2sN8bYc3HdF6gJ0aEu5iO/export?format=csv&gid=0",
"timeout": 30,
"cache_ttl_seconds": 300,
"auth": {
"type": "NONE",
"name": "",
"username": "",
"secret_set": false
},
"headers": []
}
},
"created_at": "2026-07-19T16:57:42.876Z",
"updated_at": "2026-07-19T16:57:42.876Z"
}

Response Fields​

FieldTypeDescription
idstringMetric provider id
category_idstringCategory the provider belongs to
typestringSource type: TOGG or SHEET (a published spreadsheet). There is no TEFAS metric provider
namestringProvider name
descriptionstringDescription
integrationobjectSource configuration
integration.codesarrayThe series this provider can read, each addressed by its code
integration.codes[].codestringCode the source knows the series by
integration.codes[].namestringDisplay name of the series
integration.codes[].descriptionstringDescription of the series. Omitted when not set
integration.fiat_currencystringISO 4217 code of the currency the source's rental income is in (e.g. TRY)
integration.connectionobjectWhere the provider reads from
integration.connection.urlstringBase URL of the source
integration.connection.timeoutintegerRequest timeout in seconds. 0 means the default (30)
integration.connection.cache_ttl_secondsintegerHow long a fetched source document is reused within one server process. 0 disables this cache
integration.connection.auth.typestringNONE, BEARER, API_KEY, BASIC or QUERY_PARAM
integration.connection.auth.namestringHeader (API_KEY) or query parameter (QUERY_PARAM) the secret travels in
integration.connection.auth.usernamestringUsername (BASIC only)
integration.connection.auth.secret_setbooleanWhether a secret is stored. The secret itself is never returned
integration.connection.headersarrayStatic headers sent with every request, returned in clear text
integration.connection.headers[].namestringHeader name
integration.connection.headers[].valuestringHeader value
created_atstringCreation time (ISO 8601)
updated_atstringLast update time (ISO 8601)

Errors​

StatusCodeDescription
40010000oracle_metric_id is not a valid 24-character hex id (this endpoint reports a malformed id with the generic code, not 10016)
40010001Metric provider not found or deleted (domain 53)

See Errors for the error format and common codes.