Skip to main content
GET
Validate API Key

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.

Headers

x-project-id
string<uuid>

Project ID to validate (required for organization-level keys when accessing project resources)

Response

Default Response

valid
boolean
required

Whether the API key is valid

keyType
enum<string>
required

Type of API key - project-level or organization-level

Available options:
project,
organization
organization
object
required
apiKey
object
required
project
object | null

Project details. For org keys, only present when X-Project-Id header is provided.

availableProjects
object[] | null

List of available projects. Only present for organization-level keys when no X-Project-Id header is provided.