---
title: "Validate API key"
method: POST
path: "/api/v1/auth/validate"
tags: ["Authentication"]
---

# Validate API key

`POST /api/v1/auth/validate`

## Request

- Base URL: `https://botsee.io`
- URL: `https://botsee.io/api/v1/auth/validate`
- Auth: HTTP bearer

Validates the API key and returns organization info and credit balance.

## Response `201`

Resource created.

- object
  - `api_key` object
    - `id` integer
    - `key_prefix` string
    - `last_used_at` string
    - `name` string
    - `status` string
  - `credits` object
    - `balance` integer
  - `organization` object
    - `id` integer
    - `name` string
    - `slug` string
  - `valid` boolean

## Other responses

- `401`: Missing, invalid, or revoked API key.
- `403`: Authenticated but lacks permission (e.g. botsee_disabled).
- `404`: The requested resource does not exist or is not accessible.
- `422`: Request body or parameters failed validation.
- `429`: Too many requests. Wait and retry per Retry-After header.

---

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