# Get identity verification stats

```http
GET https://trydimmi.com/api/v1/identity-verification/stats
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `settings:read`.

## Query parameters

- `days` (integer): How many days back, up to 90; defaults to 7.

## Response 200 (OK)

- `data` (object, required)
  - `anonymous` (integer, required): How many messenger sessions started without a signed-in customer in the period.
  - `by_day` (object[] | null, required): The counts for each day of the period, by outcome.
    - `day` (string, required): The day the counts are for, written YYYY-MM-DD in UTC, such as 2026-01-31.
    - `outcomes` (object, required): That day's counts by outcome: verified, anonymous_started, or the error code of a refused token.
  - `days` (integer, required): How many days the counts cover.
  - `invalid` (integer, required): How many session starts were refused in the period because their token was not valid.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `totals` (object, required): Counts for the whole period by outcome: verified, anonymous_started, or the error code of a refused token.
  - `verified` (integer, required): How many messenger sessions started with a valid signed token in the period.
  - `verified_share` (number, required): The part of session starts that were signed in, from 0 to 1, such as 0.82. 0 when there were no starts.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/identity-verification/stats' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "anonymous": 123,
    "by_day": [
      {
        "day": "<string>",
        "outcomes": {
          "<key>": 123
        }
      }
    ],
    "days": 123,
    "invalid": 123,
    "object": "<string>",
    "totals": {
      "<key>": 123
    },
    "verified": 123,
    "verified_share": 123.45
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
