Verify Key
POST
/v1/keys/verify
const url = 'https://example.com/v1/keys/verify';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/keys/verify \ --header 'Content-Type: application/json' \ --data '{ "key": "example" }'Resolve a plaintext key to its record + stamp last-used. Revoked/unknown
keys fail closed (ok=false). Consumed by the control plane / SDK gateway.
Request Body required
Section titled “Request Body required ” Media type application/json
VerifyKeyRequest
Resolve a plaintext key to its record (and stamp last-used). Used by the
control plane / SDK gateway to authenticate an pn_live_… / pn_test_…
bearer. Revoked or unknown keys fail closed.
object
key
required
Key
string
Example generated
{ "key": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
VerifyKeyResponse
object
Example generated
{ "ok": true, "reason": "example", "keyId": "example", "env": "example", "scopes": [ "example" ], "tenantId": "example"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}