---
title: "Get current API key"
method: GET
path: "/developers/api_keys/me"
tags: ["API Keys", "dev-api"]
---

# Get current API key

`GET /developers/api_keys/me`

## Request

- Base URL: `https://gateway.prem.io`
- URL: `https://gateway.prem.io/developers/api_keys/me`
- Auth: API key in header `Authorization`

Returns the validity and scopes of the API key used to authenticate the request

## Response `200`

Successful API key self-report response

- object
  - `status` 200 | 201 | 202, required: Status code of the response
  - `data` object, nullable, required
    - `id` string, required: Unique identifier for the API key
    - `description` string, nullable: Optional description for the API key
    - `scopes` string[], required: List of scopes this API key has access to
    - `ip_allow_list` string[], required: List of IP addresses allowed to use this API key
    - `expires_at` string, mysql-date-time, nullable: Timestamp when the API key expires
    - `valid` boolean, required: Whether the API key is valid
    - `billing_mode` string: Billing mode for the API key. API usage is charged to the organization balance.
  - `error` string, nullable: Error message of the response, human readable
  - `message` string, nullable, required: Message of the response, human readable
  - `env` 'development' | 'production', required: API environment
  - `log` union: Useful informaiton, not always present, to debug the response
    - string
    - object
  - `validator` union: Validator response object, each key is the field name and value is the error message
    - object
    - unknown[]
      - unknown
  - `support_id` string, uuid, nullable: Support ID linked to the response, used to identify it when talking with our team.

## Other responses

- `401`: Access token is missing or invalid
- `403`: You do not have the required permissions to access this resource

## Changes

- **2026-11-13** `d46bc3931b34`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/premai-io/apis/prem-studio-api/changes/developers/api_keys/me/get.md)

---

[API](https://skmtc.dev/premai-io/apis/prem-studio-api.md) - [All operations](https://skmtc.dev/premai-io/apis/prem-studio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/premai-io/apis/prem-studio-api/revisions/d46bc3931b34?raw)
