Authentication
Learn how to authenticate with Zellify's API and securely send/receive requests using API keys.
Overview
Zellify uses API key-based authentication to secure all API requests. Here's what you need to know:
What is Authentication?
Authentication in Zellify is implemented using industry-standard Bearer token authentication. This secure method ensures that:
API Security: Every request to our API is verified and protected
Identity Verification: We can accurately identify and authorize your application
Access Control: Different API keys can have different permission levels
Audit Trail: All API requests are logged and traceable to specific keys
Why is it required?
Authentication is crucial to protect sensitive data and ensure that only legitimate requests are processed. It helps prevent unauthorized access and potential security breaches.
API Keys
Each API key is a unique identifier that authenticates your requests to Zellify's API. Keys start with sk_
and should be kept secure.
Getting Started
Navigate to Dashboard → Settings → API Keys
Click "Generate New Key"
Save your key immediately (it won't be shown again)
Never expose API keys in client-side code or commit them to version control.
Sending Authenticated Requests
Sending authenticated requests is straightforward. Follow these steps:
Below are examples of how to authenticate with our API in different programming languages. Each example shows the proper way to include your API key in the request headers:
// Initialize the request with proper headers
fetch("https://api.zellify.com/auth", {
method: "POST",
headers: {
"Content-Type": "application/json",
// Include your API key in the Authorization header
Authorization: "Bearer YOUR_API_KEY",
},
});
Using cURL
For quick testing, you can use cURL to make authenticated requests:
curl -X POST https://api.zellify.com/auth \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
Securing your API Key
Error Handling
401
Invalid or missing API key
Check key format and Bearer prefix
403
Insufficient permissions
Verify key has required access
429
Rate limit exceeded
Implement backoff & retry logic
For rate-limited requests, implement exponential backoff using the X-RateLimit-Reset-Api_Key
header.
Last updated