Authentication Methods
AnyCheck supports two authentication methods:JWT Token
For user-based authentication in web and mobile applications
API Key
For server-to-server authentication and integrations
JWT Token Authentication
Login
Get a JWT token by logging in with email and password:Using the JWT Token
Include the token in theAuthorization header:
Refreshing Tokens
When the access token expires, use the refresh token to get a new one:API Key Authentication
Getting an API Key
1
Contact Sales
Email [email protected] or contact us via WhatsApp to request access.
2
Review Contract
Review and sign the service contract with pricing and terms.
3
Receive Credentials
Your API key and dashboard access will be provided along with the signed contract.
API keys are not self-service. All customers must go through a contract process before receiving API access credentials.
Using the API Key
Include the API key in theX-API-Key header:
External Authentication (SSO)
AnyCheck supports Single Sign-On via Microsoft Entra ID (formerly Azure AD):Get Auth URL
Redirect and Callback
- Redirect user to the
auth_url - User authenticates with Microsoft
- Microsoft redirects to your callback URL
- Exchange code for access token via
/auth/external/entra/callback
Security Best Practices
Secure Token Storage
Secure Token Storage
- Store tokens securely (encrypted storage, secure cookies)
- Never expose tokens in URLs or logs
- Use HttpOnly and Secure flags for cookies
Token Expiration
Token Expiration
- Access tokens expire in 1 hour
- Refresh tokens expire in 30 days
- Implement automatic token refresh logic
API Key Management
API Key Management
- Rotate API keys every 90 days
- Use separate keys for different environments
- Revoke compromised keys immediately
Monitor Authentication
Monitor Authentication
- Track failed login attempts
- Monitor for unusual access patterns
- Enable multi-factor authentication (MFA)
Error Responses
Invalid Credentials
Expired Token
Invalid API Key
Permission System
AnyCheck uses role-based access control (RBAC):- Admin: Full access to organization and groups
- Manager: Manage users and services within groups
- User: Create and view verifications
Rate Limiting
API requests are rate limited based on your organization’s plan:- Limits apply per organization and group
- Rate limit headers included in responses:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset