EUrouter

Logs

List, look up and export the request log of your organization: who made each request, where it was processed, the decision and its reasons. Never any content.

OpenAPI JSON

List request logs

GET
/api/v1/logs

List the requests of your organization, newest first: who made each one, which model and provider served it, where it was processed, what it cost, and the decision EUrouter took with its reasons. A call covers at most 31 days; page through the result with next_cursor. Owners and admins see every request of the organization; members see the requests made with their own API keys or while signed in. Call it signed in or with a management API key; an inference key gets 403. No prompt, completion or other content is ever stored or returned.

Authentication: Requires an organization-wide management key. Read-only management keys are accepted.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Query Parameters

from*string

Start of the period, inclusive. An ISO 8601 date or date-time such as 2026-11-01 or 2026-11-01T08:30:00Z. A value without a time zone is read as UTC.

Lengthlength <= 40
to*string

End of the period, exclusive. Same format as from. A date without a time means the start of that day, so to=2026-12-01 includes all of November.

Lengthlength <= 40
key_id?string

Only requests made with this API key

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
workspace_id?string

Only requests made in this workspace

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
member_id?string

Only requests made by this member (user id), with any of their keys or signed in

Match^[A-Za-z0-9_-]{1,128}$
model?string

Only requests served by this model. A request that no model served matches on the model it asked for.

Match^[A-Za-z0-9._:@+/-]{1,128}$
provider?string

Only requests served by this provider (slug)

Match^[A-Za-z0-9._-]{1,128}$
country?string

Only requests processed in this country (ISO 3166-1 alpha-2, such as FR)

Match^[A-Za-z]{2}$
decision?string

Only requests with this decision. allowed: sent to a provider unchanged. redacted: sent to a provider after personal data was redacted. blocked: refused before it reached a provider. error: failed with an error.

Value in"allowed" | "redacted" | "blocked" | "error"
reason_code?string

Only requests that carry this reason code. One of: residency.countries_unknown (EUrouter rule: verified processing countries only), residency.country_not_allowed (EUrouter rule: processing inside the allowed countries only), policy.country_not_allowed (Your rule: allowed processing countries), policy.eu_owned_only (Your rule: EU-owned providers only), policy.certification_missing (Your rule: required certifications), policy.keeps_data (Your rule: no providers that keep data), policy.trains_on_data (Your rule: no providers that may train on your data), policy.provider_not_allowed (Your rule: allowed providers), policy.model_not_allowed (Your rule: allowed models), pii.blocked (Your rule: block requests that contain personal data), pii.scan_limit (The request was too large to scan for personal data), pii.redacted (Personal data was redacted before the request was sent), pii.flagged (Personal data was found and flagged), prompt_injection.blocked (Your rule: block requests that contain a known prompt-injection phrasing), prompt_injection.flagged (A known prompt-injection phrasing was found and flagged), prompt_injection.scan_limit (The request was too large to check completely for prompt injection), budget.key_cap_reached (The API key reached its spending limit), budget.org_cap_reached (The organization reached its monthly budget), budget.workspace_cap_reached (The workspace reached its monthly budget), budget.member_cap_reached (The member reached their monthly budget), balance.insufficient (The account balance was too low), plan.rate_limited (The rate limit of your plan was reached), plan.monthly_quota (The request limit of your plan was reached), model.not_in_eu (The model is not available from an EU provider), model.not_found (The model does not exist or is retired), request.invalid (The request was not valid).

Value in"residency.countries_unknown" | "residency.country_not_allowed" | "policy.country_not_allowed" | "policy.eu_owned_only" | "policy.certification_missing" | "policy.keeps_data" | "policy.trains_on_data" | "policy.provider_not_allowed" | "policy.model_not_allowed" | "pii.blocked" | "pii.scan_limit" | "pii.redacted" | "pii.flagged" | "prompt_injection.blocked" | "prompt_injection.flagged" | "prompt_injection.scan_limit" | "budget.key_cap_reached" | "budget.org_cap_reached" | "budget.workspace_cap_reached" | "budget.member_cap_reached" | "balance.insufficient" | "plan.rate_limited" | "plan.monthly_quota" | "model.not_in_eu" | "model.not_found" | "request.invalid"
limit*integer

Rows per page

Default50
Range1 <= value <= 100
cursor?string

The next_cursor of the previous page. Keep the other parameters the same.

Lengthlength <= 512

Response Body

application/json

curl -X GET "https://api.eurouter.ai/api/v1/logs?from=string&to=string&limit=50"
{
  "data": [
    {
      "id": "string",
      "created_at": "string",
      "finished_at": "string",
      "latency_ms": -9007199254740991,
      "key_id": "string",
      "key_name": "string",
      "member_id": "string",
      "member_email": "string",
      "workspace_id": "string",
      "auth_method": "string",
      "endpoint": "string",
      "stream": true,
      "requested_model": "string",
      "model": "string",
      "provider": "string",
      "region": "string",
      "processing_countries": [
        "string"
      ],
      "routing_rule_id": "string",
      "routing_strategy": "string",
      "provider_attempts": -9007199254740991,
      "model_attempts": -9007199254740991,
      "decision": "allowed",
      "reason_codes": [
        "string"
      ],
      "reasons": [
        {
          "code": "string",
          "sentence": "string"
        }
      ],
      "pii_counts": {
        "property1": -9007199254740991,
        "property2": -9007199254740991
      },
      "prompt_injection": {
        "action": "flag",
        "count": -9007199254740991,
        "techniques": [
          "string"
        ],
        "not_scanned": [
          "string"
        ]
      },
      "policy_org_revision": -9007199254740991,
      "policy_key_revision": -9007199254740991,
      "http_status": -9007199254740991,
      "error_code": "string",
      "error_type": "string",
      "tokens_in": -9007199254740991,
      "tokens_out": -9007199254740991,
      "images_in": 0,
      "images_out": 0,
      "cost_eur": "string",
      "addon_charges": [
        {
          "addon": "string",
          "units": -9007199254740991,
          "cost_eur": "string",
          "free": true
        }
      ]
    }
  ],
  "next_cursor": "string"
}

Export request logs

GET
/api/v1/logs/export

Download the request log for any period as one file, newest first, with the same filters as the list. The response is streamed, so a long period works too. format=json returns one JSON object per line (NDJSON), each in the shape of a list item. CSV columns, in order: request_id, time (ISO 8601, UTC), key_name, key_id, member_email, member_id, endpoint, requested_model, model, provider, processing_countries, decision, reason_codes, reasons (each reason code as a sentence), pii_counts (such as EMAIL:2; PHONE:1), prompt_injection_action (flag or block), prompt_injection_count, prompt_injection_techniques, prompt_injection_not_scanned, tokens_in, tokens_out, cost_eur, addon_charges (each as add-on, units and cost, or free, such as prompt_injection_ai_check:1000:0.0002000000), http_status, latency_ms, images_in, images_out. Cells with several values separate them with ; . A text cell that starts with =, +, -, @, a tab or a carriage return gets a leading apostrophe, so a spreadsheet never runs it as a formula. Owners and admins see every request of the organization; members see the requests made with their own API keys or while signed in. Call it signed in or with a management API key; an inference key gets 403. No prompt, completion or other content is ever stored or returned.

Authentication: Requires an organization-wide management key. Read-only management keys are accepted.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Query Parameters

from*string

Start of the period, inclusive. An ISO 8601 date or date-time such as 2026-11-01 or 2026-11-01T08:30:00Z. A value without a time zone is read as UTC.

Lengthlength <= 40
to*string

End of the period, exclusive. Same format as from. A date without a time means the start of that day, so to=2026-12-01 includes all of November.

Lengthlength <= 40
key_id?string

Only requests made with this API key

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
workspace_id?string

Only requests made in this workspace

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
member_id?string

Only requests made by this member (user id), with any of their keys or signed in

Match^[A-Za-z0-9_-]{1,128}$
model?string

Only requests served by this model. A request that no model served matches on the model it asked for.

Match^[A-Za-z0-9._:@+/-]{1,128}$
provider?string

Only requests served by this provider (slug)

Match^[A-Za-z0-9._-]{1,128}$
country?string

Only requests processed in this country (ISO 3166-1 alpha-2, such as FR)

Match^[A-Za-z]{2}$
decision?string

Only requests with this decision. allowed: sent to a provider unchanged. redacted: sent to a provider after personal data was redacted. blocked: refused before it reached a provider. error: failed with an error.

Value in"allowed" | "redacted" | "blocked" | "error"
reason_code?string

Only requests that carry this reason code. One of: residency.countries_unknown (EUrouter rule: verified processing countries only), residency.country_not_allowed (EUrouter rule: processing inside the allowed countries only), policy.country_not_allowed (Your rule: allowed processing countries), policy.eu_owned_only (Your rule: EU-owned providers only), policy.certification_missing (Your rule: required certifications), policy.keeps_data (Your rule: no providers that keep data), policy.trains_on_data (Your rule: no providers that may train on your data), policy.provider_not_allowed (Your rule: allowed providers), policy.model_not_allowed (Your rule: allowed models), pii.blocked (Your rule: block requests that contain personal data), pii.scan_limit (The request was too large to scan for personal data), pii.redacted (Personal data was redacted before the request was sent), pii.flagged (Personal data was found and flagged), prompt_injection.blocked (Your rule: block requests that contain a known prompt-injection phrasing), prompt_injection.flagged (A known prompt-injection phrasing was found and flagged), prompt_injection.scan_limit (The request was too large to check completely for prompt injection), budget.key_cap_reached (The API key reached its spending limit), budget.org_cap_reached (The organization reached its monthly budget), budget.workspace_cap_reached (The workspace reached its monthly budget), budget.member_cap_reached (The member reached their monthly budget), balance.insufficient (The account balance was too low), plan.rate_limited (The rate limit of your plan was reached), plan.monthly_quota (The request limit of your plan was reached), model.not_in_eu (The model is not available from an EU provider), model.not_found (The model does not exist or is retired), request.invalid (The request was not valid).

Value in"residency.countries_unknown" | "residency.country_not_allowed" | "policy.country_not_allowed" | "policy.eu_owned_only" | "policy.certification_missing" | "policy.keeps_data" | "policy.trains_on_data" | "policy.provider_not_allowed" | "policy.model_not_allowed" | "pii.blocked" | "pii.scan_limit" | "pii.redacted" | "pii.flagged" | "prompt_injection.blocked" | "prompt_injection.flagged" | "prompt_injection.scan_limit" | "budget.key_cap_reached" | "budget.org_cap_reached" | "budget.workspace_cap_reached" | "budget.member_cap_reached" | "balance.insufficient" | "plan.rate_limited" | "plan.monthly_quota" | "model.not_in_eu" | "model.not_found" | "request.invalid"
format*string

csv for a spreadsheet, json for one JSON object per line (NDJSON)

Default"csv"
Value in"csv" | "json"

Response Body

curl -X GET "https://api.eurouter.ai/api/v1/logs/export?from=string&to=string&format=csv"
Empty

Get request log

GET
/api/v1/logs/{request_id}

Look up one request by its id: the x-request-id response header that every inference request returns, also a request that was blocked. The log is written right after the response ends, so a lookup made immediately may return 404 for a moment. A request outside what you may see returns 404. Owners and admins see every request of the organization; members see the requests made with their own API keys or while signed in. Call it signed in or with a management API key; an inference key gets 403. No prompt, completion or other content is ever stored or returned.

Authentication: Requires an organization-wide management key. Read-only management keys are accepted.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Path Parameters

request_id*string

The request id: the x-request-id response header of the original request

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

application/json

curl -X GET "https://api.eurouter.ai/api/v1/logs/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "data": {
    "id": "string",
    "created_at": "string",
    "finished_at": "string",
    "latency_ms": -9007199254740991,
    "key_id": "string",
    "key_name": "string",
    "member_id": "string",
    "member_email": "string",
    "workspace_id": "string",
    "auth_method": "string",
    "endpoint": "string",
    "stream": true,
    "requested_model": "string",
    "model": "string",
    "provider": "string",
    "region": "string",
    "processing_countries": [
      "string"
    ],
    "routing_rule_id": "string",
    "routing_strategy": "string",
    "provider_attempts": -9007199254740991,
    "model_attempts": -9007199254740991,
    "decision": "allowed",
    "reason_codes": [
      "string"
    ],
    "reasons": [
      {
        "code": "string",
        "sentence": "string"
      }
    ],
    "pii_counts": {
      "property1": -9007199254740991,
      "property2": -9007199254740991
    },
    "prompt_injection": {
      "action": "flag",
      "count": -9007199254740991,
      "techniques": [
        "string"
      ],
      "not_scanned": [
        "string"
      ]
    },
    "policy_org_revision": -9007199254740991,
    "policy_key_revision": -9007199254740991,
    "http_status": -9007199254740991,
    "error_code": "string",
    "error_type": "string",
    "tokens_in": -9007199254740991,
    "tokens_out": -9007199254740991,
    "images_in": 0,
    "images_out": 0,
    "cost_eur": "string",
    "addon_charges": [
      {
        "addon": "string",
        "units": -9007199254740991,
        "cost_eur": "string",
        "free": true
      }
    ]
  }
}

Was this page helpful?

Still stuck? Contact support