/api/v1/testSecret keySDKAuthentication test
Runs a lightweight auth check and returns the resolved user and organization identifiers.
Usage: Use this first in a quickstart or health check to verify a key before calling billable endpoints.
SDK: client.test()
Response
{
"success": true,
"message": "Authentication successful",
"data": {
"timestamp": "2026-03-18T12:00:00.000Z",
"ip": "1.2.3.4",
"userAgent": "curl/7.88",
"userId": "user_123",
"organizationId": "org_123"
}
}SDK Example
const result = await client.test();
console.log(result.data.organizationId);