UserCheckResponse
Response from the credential verification endpoint containing subscription status.
- Python
- PHP
- JSON
from respectify.schemas import UserCheckResponse
// Returned as associative array
$result = [$success, $info];
Types are returned as JSON objects in API responses.
Fields
active
Whether the subscription is currently active
- Python
- PHP
- JSON
result.active: bool
$result['active']: bool
"active": true
status
Current subscription status (e.g., "ACTIVE", "CANCELED", "PAUSED")
- Python
- PHP
- JSON
result.status: Optional[str]
$result['status']: ?string
"status": "ACTIVE"
expires
Subscription expiration date in ISO 8601 format
- Python
- PHP
- JSON
result.expires: Optional[str]
$result['expires']: ?string
"expires": "2025-12-31T23:59:59Z"
plan_name
Name of the subscription plan (e.g., "Personal", "Professional", "Anti-Spam Only")
- Python
- PHP
- JSON
result.plan_name: Optional[str]
$result['plan_name']: ?string
"plan_name": "Professional"
allowed_endpoints
List of API endpoints allowed for this plan
- Python
- PHP
- JSON
result.allowed_endpoints: Optional[List[str]]
$result['allowed_endpoints']: ?array
"allowed_endpoints": ["antispam", "commentscore", "relevance", "dogwhistle", "megacall"]
error
Error message if subscription check failed (null on success)
- Python
- PHP
- JSON
result.error: Optional[str]
$result['error']: ?string
"error": null
Example Response
{
"active": true,
"status": "ACTIVE",
"expires": "2025-12-31T23:59:59Z",
"plan_name": "Professional",
"allowed_endpoints": ["antispam", "commentscore", "relevance", "dogwhistle", "megacall"],
"error": null
}