Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.
GET
/
validate
Validate API Key
curl --request GET \ --url https://server.promptwatch.com/api/v1/validate \ --header 'X-API-Key: <api-key>'
List of available projects. Only present for organization-level keys when no X-Project-Id header is provided.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"Promptwatch API Documentation","colors":{"primary":"#155EEF","light":"#6196FF","dark":"#0D4FD1"},"logo":{"light":"https://mintcdn.com/promptwatch/FBwQmv0BrcUvup55/logo/text-logo-light.svg?fit=max\u0026auto=format\u0026n=FBwQmv0BrcUvup55\u0026q=85\u0026s=6ff2b45e7fb7b0343f0a0cdc24a4df3e","dark":"https://mintcdn.com/promptwatch/FBwQmv0BrcUvup55/logo/text-logo-dark.svg?fit=max\u0026auto=format\u0026n=FBwQmv0BrcUvup55\u0026q=85\u0026s=a40935830f28dd78680df7c44500515c","href":"https://promptwatch.com"},"favicon":"https://mintcdn.com/promptwatch/dWspv4M8e4BF4QMY/favicon.svg?fit=max\u0026auto=format\u0026n=dWspv4M8e4BF4QMY\u0026q=85\u0026s=d972b8a82fc6037e544f41fb552f57b0","api":{},"navbar":{"links":[{"href":"/academy","label":"Promptwatch Academy"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.promptwatch.com/"}},"footer":{"socials":{"x":"https://x.com/promptwatch","github":"https://github.com/promptwatch","linkedin":"https://linkedin.com/company/promptwatch"},"links":[{"header":"Resources","items":[{"label":"Academy","href":"/academy"},{"label":"Website","href":"https://promptwatch.com"},{"label":"Blog","href":"https://promptwatch.com/blog"}]},{"header":"Developer Tools","items":[{"label":"Postman Collection","href":"/docs/public/assets/promptwatch-api.postman_collection.json"},{"label":"API v2 Reference","href":"/docs/introduction"},{"label":"API v1 Reference","href":"/docs/v1/introduction"}]},{"header":"Support","items":[{"label":"Contact Support","href":"mailto:support@promptwatch.com"},{"label":"Getting Started","href":"https://app.promptwatch.com/signin"},{"label":"Rate Limits","href":"/docs/rate-limits"}]}]},"seo":{"indexing":"all"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"promptwatch","hasAudioNarration":false,"actualSubdomain":"promptwatch","customDomains":["promptwatch.com"],"gitSource":{"type":"github","owner":"promptwatch-com","repo":"promptwatch","deployBranch":"main","contentDirectory":"apps/server/src/api/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af2f64e734ccd78509b9f7d","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":175},{"language":"default","tag":"API Documentation","count":151},{"language":"default","tag":"Promptwatch Academy","count":111},{"language":"default","tag":"Content Agent","count":21},{"language":"default","tag":"Analytics","count":19},{"language":"default","tag":"Crawler log setup","count":16},{"language":"default","tag":"Prompts","count":16},{"language":"default","tag":"Citations","count":15},{"language":"default","tag":"Set Up Your Project","count":12},{"language":"default","tag":"Responses","count":12}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"widgets/cta/cta.css","content":".promptwatch-cta-widget{width:100%;max-width:290px;margin-top:1rem;margin-right:auto;margin-left:auto}.promptwatch-cta-box{padding:1.25rem;background:linear-gradient(\n 180deg,\n color-mix(in srgb, #155eef 6%, white),\n white 62%\n );border:1px solid color-mix(in srgb, #155eef 24%, transparent);border-radius:14px}.promptwatch-cta-logo{display:block;width:auto;height:24px;margin-bottom:0.9rem}.promptwatch-cta-logo-dark{display:none}.promptwatch-cta-title{margin:0;font-size:1.125rem;font-weight:700;line-height:1.4;color:#0f172a}.promptwatch-cta-description{margin:0.6rem 0 1rem;font-size:0.94rem;line-height:1.55;color:#334155}.promptwatch-cta-buttons{display:flex;flex-direction:column;gap:0.55rem;width:100%}.promptwatch-cta-btn-primary{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:0.65rem 0.95rem;font-size:0.875rem;font-weight:600;line-height:1;color:#ffffff;text-decoration:none;background:#155eef;border:1px solid #155eef;border-radius:0.6rem;transition:background-color 0.16s ease,\n border-color 0.16s ease,\n transform 0.16s ease}.promptwatch-cta-btn-primary:hover{background:#0d4fd1;border-color:#0d4fd1;transform:translateY(-1px)}.promptwatch-cta-btn-primary:focus-visible{outline:2px solid #6196ff;outline-offset:2px}.promptwatch-cta-btn-secondary{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:0.65rem 0.95rem;font-size:0.875rem;font-weight:600;line-height:1;color:#155eef;text-decoration:none;background:transparent;border:1px solid #155eef;border-radius:0.6rem;transition:background-color 0.16s ease,\n border-color 0.16s ease,\n color 0.16s ease,\n transform 0.16s ease}.promptwatch-cta-btn-secondary:hover{color:#0d4fd1;background:color-mix(in srgb, #155eef 10%, transparent);border-color:#0d4fd1;transform:translateY(-1px)}.promptwatch-cta-btn-secondary:focus-visible{outline:2px solid #6196ff;outline-offset:2px}.dark .promptwatch-cta-box{background:linear-gradient(\n 180deg,\n color-mix(in srgb, #155eef 22%, #0b1220),\n #0b1220 70%\n );border-color:color-mix(in srgb, #6196ff 36%, transparent)}.dark .promptwatch-cta-logo-light{display:none}.dark .promptwatch-cta-logo-dark{display:block}.dark .promptwatch-cta-title{color:#eef2ff}.dark .promptwatch-cta-description{color:#cbd5e1}.dark .promptwatch-cta-btn-secondary{color:#c7d9ff;border-color:#6196ff}.dark .promptwatch-cta-btn-secondary:hover{color:#e7efff;background:color-mix(in srgb, #6196ff 18%, transparent);border-color:#8eb3ff}@media (max-width: 768px){.promptwatch-cta-box{padding:1rem}}"}],"page":{"pagePath":"api-reference/v1/authentication/validate-api-key","slug":"/api-reference/v1/authentication/validate-api-key","pageMetadata":{"title":"Validate API Key","description":"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.","deprecated":null,"version":null,"sidebarTitle":"Validate api key","openapi":"/v1/openapi.json get /validate","href":"/api-reference/v1/authentication/validate-api-key","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Validate API Key","description":"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.","deprecated":null,"version":null,"sidebarTitle":"Validate api key","openapi":"/v1/openapi.json get /validate","href":"/api-reference/v1/authentication/validate-api-key","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/promptwatch/550da6aed460c9b9/widgets/cta/cta.js"],"openApiReferenceData":{"operation":{"operationId":"validateApiKeyV1","summary":"Validate API Key","tags":["Authentication"],"description":"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.","parameters":["8e0e4bb8-1ee9-47bf-9cdb-0427f04a33cc"],"security":["0de0f8c8-b3f9-41d6-b62d-051284a18d59"],"responses":{"200":"9c5ce6a3-1425-4a10-9a78-2e5102c79a36","401":"753b0e15-9d3c-4cb6-b05a-832252602db1","403":"3d5d3f8d-33a0-4bf1-bf81-c3f6fdb6c95f","500":"bffcccba-7a19-4aa1-8d11-8aeb5d21ad18"},"x-mint":{"href":"/api-reference/v1/authentication/validate-api-key"},"method":"get","type":"path","servers":["3c3e15d4-4e22-4c33-8dcc-b0b94d3ede74"],"path":"/validate","baseUrlOptions":["https://server.promptwatch.com/api/v1"],"title":"Validate API Key","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8e0e4bb8-1ee9-47bf-9cdb-0427f04a33cc":{"schema":{"type":"string","format":"uuid","isRequired":false,"description":"Project ID to validate (required for organization-level keys when accessing project resources)","uniqueKey":"","typeLabel":"string\u003cuuid>"},"in":"header","name":"x-project-id","required":false,"description":"Project ID to validate (required for organization-level keys when accessing project resources)"}},"responses":{"9c5ce6a3-1425-4a10-9a78-2e5102c79a36":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean","description":"Whether the API key is valid","isRequired":true,"uniqueKey":"valid","typeLabel":"boolean"},"keyType":{"type":"string","enum":["project","organization"],"description":"Type of API key - project-level or organization-level","isRequired":true,"uniqueKey":"keyType","typeLabel":"enum\u003cstring>"},"organization":{"type":"object","properties":{"id":{"type":"string","description":"Organization ID","isRequired":true,"uniqueKey":"organization.id","typeLabel":"string"},"name":{"type":"string","description":"Organization name","isRequired":true,"uniqueKey":"organization.name","typeLabel":"string"},"slug":{"type":"string","description":"Organization slug","isRequired":true,"uniqueKey":"organization.slug","typeLabel":"string"}},"required":["id","name","slug"],"isRequired":true,"uniqueKey":"organization","typeLabel":"object"},"apiKey":{"type":"object","properties":{"id":{"type":"string","description":"API key ID","isRequired":true,"uniqueKey":"apiKey.id","typeLabel":"string"},"name":{"type":"string","description":"API key name","isRequired":true,"uniqueKey":"apiKey.name","typeLabel":"string"},"permission":{"type":"string","enum":["FULL","READ_ONLY"],"description":"Permission level of the API key","isRequired":true,"uniqueKey":"apiKey.permission","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","format":"date-time","description":"When the API key was created","isRequired":true,"uniqueKey":"apiKey.createdAt","typeLabel":"string\u003cdate-time>"},"lastUsedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the API key was last used","uniqueKey":"apiKey.lastUsedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the API key was last used","uniqueKey":"apiKey.lastUsedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"apiKey.lastUsedAt","typeLabel":"string\u003cdate-time> | null"}},"required":["id","name","permission","createdAt"],"isRequired":true,"uniqueKey":"apiKey","typeLabel":"object"},"project":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Project ID","isRequired":true,"uniqueKey":"project.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Project name","isRequired":true,"uniqueKey":"project.oneOf.0.name","typeLabel":"string"},"slug":{"type":"string","description":"Project slug","isRequired":true,"uniqueKey":"project.oneOf.0.slug","typeLabel":"string"}},"required":["id","name","slug"],"description":"Project details. For org keys, only present when X-Project-Id header is provided.","uniqueKey":"project.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","description":"Project ID"},"name":{"type":"string","description":"Project name"},"slug":{"type":"string","description":"Project slug"}},"required":["id","name","slug"],"description":"Project details. For org keys, only present when X-Project-Id header is provided.","uniqueKey":"project.oneOf.1","typeLabel":"null"}],"uniqueKey":"project","typeLabel":"object | null"},"availableProjects":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Project ID","isRequired":true,"uniqueKey":"availableProjects.oneOf.0.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Project name","isRequired":true,"uniqueKey":"availableProjects.oneOf.0.items.[INDEX].name","typeLabel":"string"},"slug":{"type":"string","description":"Project slug","isRequired":true,"uniqueKey":"availableProjects.oneOf.0.items.[INDEX].slug","typeLabel":"string"}},"required":["id","name","slug"],"uniqueKey":"availableProjects.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"List of available projects. Only present for organization-level keys when no X-Project-Id header is provided.","uniqueKey":"availableProjects.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string","description":"Project ID"},"name":{"type":"string","description":"Project name"},"slug":{"type":"string","description":"Project slug"}},"required":["id","name","slug"]},"description":"List of available projects. Only present for organization-level keys when no X-Project-Id header is provided.","uniqueKey":"availableProjects.oneOf.1","typeLabel":"null"}],"uniqueKey":"availableProjects","typeLabel":"object[] | null"}},"required":["valid","keyType","organization","apiKey"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"valid":true,"keyType":"project","organization":{"id":"\u003cstring>","name":"\u003cstring>","slug":"\u003cstring>"},"apiKey":{"id":"\u003cstring>","name":"\u003cstring>","permission":"FULL","createdAt":"2023-11-07T05:31:56Z","lastUsedAt":"2023-11-07T05:31:56Z"},"project":{"id":"\u003cstring>","name":"\u003cstring>","slug":"\u003cstring>"},"availableProjects":[{"id":"\u003cstring>","name":"\u003cstring>","slug":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"753b0e15-9d3c-4cb6-b05a-832252602db1":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean","description":"Whether the API key is valid","enum":[false],"isRequired":true,"uniqueKey":"valid","typeLabel":"enum\u003cboolean>"},"message":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["valid","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"valid":false,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"3d5d3f8d-33a0-4bf1-bf81-c3f6fdb6c95f":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"required":["error","message"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"bffcccba-7a19-4aa1-8d11-8aeb5d21ad18":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","additionalProperties":true,"uniqueKey":"details","typeLabel":"object"}},"required":["error","message"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"0de0f8c8-b3f9-41d6-b62d-051284a18d59":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"3c3e15d4-4e22-4c33-8dcc-b0b94d3ede74":{"url":"https://server.promptwatch.com/api/v1","description":"Promptwatch API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"v1/openapi.json"},"subdomain":"promptwatch","siteName":"Promptwatch API Documentation","title":"Validate API Key - Promptwatch API Documentation","navMaps":{"firstHrefInVersion":{"API V2":{"href":"/api-reference/authentication/validate-api-key","matchLevel":2},"API V1 (Legacy)":{"href":"/api-reference/v1/authentication/validate-api-key","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T10:54:27.763Z","originalFileLocation":"api-reference/v1/authentication/validate-api-key.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Promptwatch API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Validate API Key - Promptwatch API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Promptwatch API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://promptwatch.mintlify.site/docs/_mintlify/api/og/v2?division=Authentication\u0026amp;title=Validate+API+Key\u0026amp;description=Validate+an+API+key+and+get+associated+project%2Forganization+details.+For+organization-level+keys%2C+optionally+provide+X-Project-Id+header+to+validate+access+to+a\u0026amp;theme=e6f7d3ed952b986bddaaaee7\u0026amp;signature=7368f9beb7b025448b9150b105bb45c8c7af63cde40da3c24a0fe005c8561d0e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Validate API Key - Promptwatch API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://promptwatch.mintlify.site/docs/_mintlify/api/og/v2?division=Authentication\u0026amp;title=Validate+API+Key\u0026amp;description=Validate+an+API+key+and+get+associated+project%2Forganization+details.+For+organization-level+keys%2C+optionally+provide+X-Project-Id+header+to+validate+access+to+a\u0026amp;theme=e6f7d3ed952b986bddaaaee7\u0026amp;signature=7368f9beb7b025448b9150b105bb45c8c7af63cde40da3c24a0fe005c8561d0e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/promptwatch/-sGw9jhPsbE8OkV9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Promptwatch API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#155EEF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/v1/authentication/validate-api-key.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://promptwatch.com/#organization\",\"name\":\"Promptwatch API Documentation\",\"url\":\"https://promptwatch.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/promptwatch/FBwQmv0BrcUvup55/logo/text-logo-light.svg?fit=max\u0026auto=format\u0026n=FBwQmv0BrcUvup55\u0026q=85\u0026s=6ff2b45e7fb7b0343f0a0cdc24a4df3e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://promptwatch.com/docs#website\",\"name\":\"Promptwatch API Documentation\",\"url\":\"https://promptwatch.com/docs\",\"publisher\":{\"@id\":\"https://promptwatch.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key#webpage\",\"url\":\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key\",\"name\":\"Validate API Key\",\"description\":\"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.\",\"dateModified\":\"2026-11-03T10:54:27.763Z\",\"isPartOf\":{\"@id\":\"https://promptwatch.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Promptwatch API Documentation\",\"item\":\"https://promptwatch.com/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Validate API Key\",\"item\":\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key#apireference\",\"headline\":\"Validate API Key\",\"name\":\"Validate API Key\",\"description\":\"Validate an API key and get associated project/organization details. For organization-level keys, optionally provide X-Project-Id header to validate access to a specific project.\",\"url\":\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key\",\"mainEntityOfPage\":{\"@id\":\"https://promptwatch.com/docs/api-reference/v1/authentication/validate-api-key#webpage\"},\"dateModified\":\"2026-11-03T10:54:27.763Z\",\"publisher\":{\"@id\":\"https://promptwatch.com/#organization\"},\"isPartOf\":{\"@id\":\"https://promptwatch.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Promptwatch API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Promptwatch API Documentation","nav":{"global":null,"versions":[{"version":"API V2","pages":[{"title":"API V2","href":"/api-reference/authentication/validate-api-key"}]},{"version":"API V1 (Legacy)","groups":[{"group":"Overview","icon":"book-open","pages":[{"title":"Overview","href":"/v1/introduction"},{"title":"Rate Limits","description":"Understanding API rate limits and best practices","href":"/rate-limits"}]},{"group":"API Reference","icon":"code","pages":[{"group":"Authentication","pages":[{"title":"Validate API Key","deprecated":null,"version":null,"sidebarTitle":"Validate api key","openapi":"/v1/openapi.json get /validate","href":"/api-reference/v1/authentication/validate-api-key"}]},{"group":"Models","pages":[{"title":"List Models","description":"List all available LLM models supported by Promptwatch","deprecated":null,"version":null,"sidebarTitle":"List models","openapi":"/v1/openapi.json get /models","href":"/api-reference/v1/models/list-models"}]},{"group":"Monitors","pages":[{"title":"List Monitors","deprecated":null,"version":null,"sidebarTitle":"List monitors","openapi":"/v1/openapi.json get /monitors","href":"/api-reference/v1/monitors/list-monitors"}]},{"group":"Visibility","pages":[{"title":"Visibility Time Series","deprecated":null,"version":null,"sidebarTitle":"Get visibility time series","openapi":"/v1/openapi.json get /visibility-time-series","href":"/api-reference/v1/visibility/get-visibility-time-series"},{"title":"Competitor Visibility Heatmap","deprecated":null,"version":null,"sidebarTitle":"Get competitor visibility heatmap","openapi":"/v1/openapi.json get /competitor-heatmap","href":"/api-reference/v1/visibility/get-competitor-visibility-heatmap"}]},{"group":"Analytics","pages":[{"title":"Sentiment Time Series","deprecated":null,"version":null,"sidebarTitle":"Get brand sentiment time series","openapi":"/v1/openapi.json get /sentiment-time-series","href":"/api-reference/v1/analytics/get-brand-sentiment-time-series"},{"title":"Total Visits","deprecated":null,"version":null,"sidebarTitle":"Get total visits","openapi":"/v1/openapi.json get /analytics/visitors/total","href":"/api-reference/v1/analytics/get-total-visits"},{"title":"Visitor Trends","deprecated":null,"version":null,"sidebarTitle":"Get visitor trends","openapi":"/v1/openapi.json get /analytics/visitors/trend","href":"/api-reference/v1/analytics/get-visitor-trends"},{"title":"Crawler Activity Trends","deprecated":null,"version":null,"sidebarTitle":"Get crawler activity trends","openapi":"/v1/openapi.json get /analytics/crawlers/trend","href":"/api-reference/v1/analytics/get-crawler-activity-trends"},{"title":"Top Crawler Pages","deprecated":null,"version":null,"sidebarTitle":"Get top crawler pages","openapi":"/v1/openapi.json get /analytics/crawlers/top-pages","href":"/api-reference/v1/analytics/get-top-crawler-pages"},{"title":"Brand Visibility Over Time","deprecated":null,"version":null,"sidebarTitle":"Get brand visibility over time","openapi":"/v1/openapi.json get /analytics/brands/visibility-over-time","href":"/api-reference/v1/analytics/get-brand-visibility-over-time"}]},{"group":"Citations","pages":[{"title":"Citation Analytics","deprecated":null,"version":null,"sidebarTitle":"Get citation analytics","openapi":"/v1/openapi.json get /citations","href":"/api-reference/v1/citations/get-citation-analytics"},{"title":"Self-Citation Frequency","deprecated":null,"version":null,"sidebarTitle":"Get self citation frequency","openapi":"/v1/openapi.json get /citations/self-frequency","href":"/api-reference/v1/citations/get-self-citation-frequency"},{"title":"Domain Citations Over Time","deprecated":null,"version":null,"sidebarTitle":"Get domain citations over time","openapi":"/v1/openapi.json get /citations/domains-over-time","href":"/api-reference/v1/citations/get-domain-citations-over-time"},{"title":"Citation Rank Analysis","deprecated":null,"version":null,"sidebarTitle":"Get citation rank analysis","openapi":"/v1/openapi.json get /citations/rank-analysis","href":"/api-reference/v1/citations/get-citation-rank-analysis"},{"title":"Top Cited Pages","deprecated":null,"version":null,"sidebarTitle":"Get top cited pages","openapi":"/v1/openapi.json get /citations/top-pages","href":"/api-reference/v1/citations/get-top-cited-pages"},{"title":"LLM Sources","deprecated":null,"version":null,"sidebarTitle":"Get llm citation sources","openapi":"/v1/openapi.json get /citations/llm-sources","href":"/api-reference/v1/citations/get-llm-citation-sources"},{"title":"Domains by LLM","deprecated":null,"version":null,"sidebarTitle":"Get domain citations by llm","openapi":"/v1/openapi.json get /citations/domains-by-llm","href":"/api-reference/v1/citations/get-domain-citations-by-llm"}]},{"group":"Prompts","pages":[{"title":"List Prompts","deprecated":null,"version":null,"sidebarTitle":"List prompts","openapi":"/v1/openapi.json get /prompts","href":"/api-reference/v1/prompts/list-prompts"},{"title":"Get Prompt","deprecated":null,"version":null,"sidebarTitle":"Get prompt","openapi":"/v1/openapi.json get /prompts/{id}","href":"/api-reference/v1/prompts/get-prompt"}]},{"group":"Share of Voice","pages":[{"title":"Share of Voice Time Series","deprecated":null,"version":null,"sidebarTitle":"Get share of voice time series","openapi":"/v1/openapi.json get /share-of-voice/time-series","href":"/api-reference/v1/share-of-voice/get-share-of-voice-time-series"},{"title":"Share of Voice Comparison","deprecated":null,"version":null,"sidebarTitle":"Get share of voice comparison","openapi":"/v1/openapi.json get /share-of-voice/comparison","href":"/api-reference/v1/share-of-voice/get-share-of-voice-comparison"}]},{"group":"Responses","pages":[{"title":"Response Summary","deprecated":null,"version":null,"sidebarTitle":"Get responses summary","openapi":"/v1/openapi.json get /responses/summary","href":"/api-reference/v1/responses/get-responses-summary"},{"title":"Mentions Time Series","deprecated":null,"version":null,"sidebarTitle":"Get mentions time series","openapi":"/v1/openapi.json get /responses/mentions-time-series","href":"/api-reference/v1/responses/get-mentions-time-series"},{"title":"Top Competitors","deprecated":null,"version":null,"sidebarTitle":"Get top competitors","openapi":"/v1/openapi.json get /responses/competitors","href":"/api-reference/v1/responses/get-top-competitors"},{"title":"Sentiment Distribution","deprecated":null,"version":null,"sidebarTitle":"Get sentiment distribution","openapi":"/v1/openapi.json get /responses/sentiment-distribution","href":"/api-reference/v1/responses/get-sentiment-distribution"},{"title":"Sentiment Over Time","deprecated":null,"version":null,"sidebarTitle":"Get sentiment time series","openapi":"/v1/openapi.json get /responses/sentiment-time-series","href":"/api-reference/v1/responses/get-sentiment-time-series"}]}]},{"group":"Changelog","icon":"file-text","pages":[{"title":"Changelog","href":"/v1/changelog"}]}]}]},"basePath":"","title":"Validate API Key - Promptwatch API Documentation","buildId":"dpl_3pZeXn3XukjzFRgAX73A7GNDfRJ1","deploymentId":"dpl_3pZeXn3XukjzFRgAX73A7GNDfRJ1","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CW3yP2DK.js","utils-BN0nty2W.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C8_MydSG.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bsl5xDMQ.js","snippetPresets-DYv9OBej.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-9OnYPrVf.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-xr67xWGO.js","shallow-DO1aDdBF.js","getApiPlaygroundDisplay-o7cLzFL-.js","CodeSnippet-CGr2yOA8.js","CodeSnippets-CzBbqPNh.js","Page-CBlOSKZG.js","getPastedJson-dpi9sn5Y.js","icon-aIWHt8Pn.js","MethodPill-Bv2zLsGY.js","DuplicateIcon-DxFSz0J6.js","createIcon-uDNv6jwj.js","DynamicMarkdown-C91yhnNP.js","SectionHeading-DG_xjOLR.js","axios-vUo_bRtp.js","Markdown-B4M_Eo1P.js","clsx-DShopWo_.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BX6wab7q.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-48h67xm_.js"]}