---
title: "List API key activity"
method: GET
path: "/v1/api-keys/{id}/activity"
tags: ["API Keys"]
---

# List API key activity

`GET /v1/api-keys/{id}/activity`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/api-keys/{id}/activity`
- Auth: API key in header `x-api-key`

Returns the sends attributed to an API key, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.

## Path parameters

- `id` string, required

## Query parameters

- `limit` string, nullable
- `cursor` string

## Response `200`

ApiKeyActivityPage

- ApiKeyActivityPage
  - `items` object[], required
    - `id` string, required
    - `timestamp` string, required
    - `method` string, required
    - `endpoint` string, required
    - `statusCode` integer, required
    - `latency` number, required
  - `nextCursor` string, nullable, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
