---
title: "Get Latest Tenant Api Key"
method: GET
path: "/api/admin/tenants/{tenant_id}/api-keys/latest"
tags: ["Admin"]
---

# Get Latest Tenant Api Key

`GET /api/admin/tenants/{tenant_id}/api-keys/latest`

## Request

- Base URL: `https://api.e-invoice.be`
- URL: `https://api.e-invoice.be/api/admin/tenants/{tenant_id}/api-keys/latest`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/e-invoice-be/apis/e-invoice-be-peppol-access-point-api/docs/api/admin/tenants/:tenant_id/api-keys/latest/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenant_id` string, required

## Response `200`

Successful Response

- ApiKeyResponse: API Key response schema for authentication.
  - `id` string, required
  - `tenant_id` string, required
  - `name` string, required
  - `description` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `is_deleted` boolean

## Other responses

- `401`: Unauthorized: Invalid or missing admin key
- `404`: Not Found: Tenant not found or no active API keys exist
- `422`: Validation Error
- `500`: Internal Server Error: Unexpected server error

## Changes

- **2025-10-31** `97871d8011b0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/e-invoice-be/apis/e-invoice-be-peppol-access-point-api/changes/api/admin/tenants/:tenant_id/api-keys/latest/get.md)

---

[API](https://skmtc.dev/e-invoice-be/apis/e-invoice-be-peppol-access-point-api.md) - [All operations](https://skmtc.dev/e-invoice-be/apis/e-invoice-be-peppol-access-point-api/llms.txt) - [OpenAPI document](https://skmtc.dev/e-invoice-be/apis/e-invoice-be-peppol-access-point-api/revisions/0ee5e3d3992a?raw)
