API Keys
dev-api

Get current API key

Changed on

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

get/developers/api_keys/me

Request

  • Base URL
    https://gateway.prem.io
  • Auth
    API key in header Authorization

Response

Successful API key self-report response

status200 | 201 | 202 required

Status code of the response

errorstring nullable

Error message of the response, human readable

messagestring nullable required

Message of the response, human readable

env'development' | 'production' required

API environment

support_idstring uuid nullable

Support ID linked to the response, used to identify it when talking with our team.

Example response

{
  "data": {
    "id": "api_key_0197c0ec-a197-719f-84a9-99270a79b42a",
    "description": "Key for development environment",
    "scopes": [
      "chats.completion",
      "api_keys.read"
    ],
    "ip_allow_list": [],
    "expires_at": "2026-05-30 20:23:16",
    "valid": true
  },
  "message": null
}

Changes