Skip to main content
GET
/
api
/
v1
/
api-keys
List Api Keys
curl --request GET \
  --url https://api.promptguard.dev/api/v1/api-keys \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "prefix": "<string>",
    "project_id": "<string>",
    "project_name": "<string>",
    "permissions": [
      "<string>"
    ],
    "is_active": true,
    "last_used_at": "<string>",
    "created_at": "<string>"
  }
]

Authorizations

Authorization
string
header
required

API Key authentication for developer endpoints (/api/v1/*). Use format: 'Bearer pg_api_your_key_here'

Headers

x-api-key
string | null

Response

Successful Response

id
string
required
name
string
required
prefix
string
required
project_id
string | null
required
project_name
string | null
required
permissions
string[]
required
is_active
boolean
required
last_used_at
string | null
required
created_at
string
required