# Get Site Analytics Source: https://kardow.com/docs/api-reference/analytics/analytics POST /analytics Retrieve comprehensive analytics data with advanced filtering capabilities for your job board ## Authentication This endpoint requires API key authentication. Include your API key in the request header: ```bash theme={null} x-api-key: your-api-key-here ``` > [!NOTE] > > You can generate API keys from your organization settings in the Kardow dashboard under **Settings > API Keys**. ## Request Body **period** `string` (default: 30d) Time period for analytics data. Must be one of: * `7d` - Last 7 days * `30d` - Last 30 days * `6mo` - Last 6 months * `12mo` - Last 12 months * `custom` - Custom date range (requires `dateRange` parameter) **dateRange** `object` Custom date range (required if `period` is `custom`) **dateRange properties** **from** `string` *required* Start date in YYYY-MM-DD format or ISO datetime Example: `2024-01-01` or `2024-01-01T00:00:00Z` **to** `string` *required* End date in YYYY-MM-DD format or ISO datetime Example: `2024-01-31` or `2024-01-31T23:59:59Z` **filters** `object` Advanced filtering options for analytics data **filters properties** **device** `string[]` Filter by device types Options: `Desktop`, `Mobile`, `Tablet` Example: `["Desktop", "Mobile"]` **browser** `string[]` Filter by browser Options: `Chrome`, `Safari`, `Firefox`, `Edge`, etc. Example: `["Chrome", "Safari"]` **os** `string[]` Filter by operating system Options: `Windows`, `macOS`, `Linux`, `iOS`, `Android`, etc. Example: `["Windows", "macOS"]` **source** `string[]` Filter by traffic source Options: `Google`, `Direct`, `LinkedIn`, `Twitter`, etc. Example: `["Google", "LinkedIn"]` **country** `string[]` Filter by country (ISO 3166-1 alpha-2 codes) Example: `["US", "GB", "CA"]` **utm\_source** `string[]` Filter by UTM source parameter Example: `["newsletter", "social"]` **utm\_medium** `string[]` Filter by UTM medium parameter Example: `["email", "cpc"]` **utm\_campaign** `string[]` Filter by UTM campaign parameter Example: `["summer_2024", "product_launch"]` **includeComparison** `boolean` (default: true) Include comparison with the previous period. When enabled, the response includes percentage changes for all metrics compared to the equivalent previous time period. ## Response **data** `object` Comprehensive analytics data **data properties** **metrics** `object` Aggregate metrics for the selected period **metrics properties** **visitors** `number` Total unique visitors **pageviews** `number` Total pageviews **bounce\_rate** `number` Bounce rate percentage (0-100) **visit\_duration** `number` Average visit duration in seconds **comparison** `object` Comparison with previous period (only if `includeComparison` is true) **comparison properties** **visitors** `object` Visitor comparison ```json theme={null} { "value": 1500, "change": 12.5 // +12.5% from previous period } ``` **pageviews** `object` Pageviews comparison **bounce\_rate** `object` Bounce rate comparison **visit\_duration** `object` Visit duration comparison **previousMetrics** `object` Metrics from the previous period (only if `includeComparison` is true) **timeseries** `array` Daily breakdown of metrics over the selected period ```json theme={null} [ { "date": "2024-01-01", "visitors": 150, "pageviews": 420, "bounce_rate": 45.2, "visit_duration": 125 } ] ``` **topPages** `array` Most visited pages ```json theme={null} [ { "name": "/companies/acme/jobs/software-engineer", "visitors": 320, "pageviews": 580, "bounce_rate": 42.1, "visit_duration": 135 } ] ``` **topSources** `array` Top traffic sources ```json theme={null} [ { "name": "Google", "visitors": 450, "pageviews": 1200, "bounce_rate": 38.5, "visit_duration": 142 } ] ``` **topCountries** `array` Visitors by country ```json theme={null} [ { "code": "US", "name": "United States", "visitors": 650, "pageviews": 1850 } ] ``` **devices** `array` Breakdown by device type ```json theme={null} [ { "name": "Desktop", "visitors": 800, "pageviews": 2200 }, { "name": "Mobile", "visitors": 700, "pageviews": 2000 } ] ``` **browsers** `array` Breakdown by browser ```json theme={null} [ { "name": "Chrome", "visitors": 900, "pageviews": 2500 } ] ``` **os** `array` Breakdown by operating system ```json theme={null} [ { "name": "Windows", "visitors": 600, "pageviews": 1700 } ] ``` **topCompanies** `array` Most visited company pages ```json theme={null} [ { "name": "Acme Inc", "visitors": 450 } ] ``` **topJobs** `array` Most visited job postings ```json theme={null} [ { "name": "Software Engineer", "visitors": 320 } ] ``` **meta** `object` Metadata about the request **meta properties** **period** `string` The time period used for the query **date\_range** `object` The custom date range (only for custom periods) **filters\_applied** `object` The filters that were applied to the data **organization\_domain** `string` The analytics domain used for the query ```bash cURL - Basic Request theme={null} curl -X GET \ "https://api.kardow.com/analytics" \ -H "x-api-key: your-api-key-here" \ -H "Content-Type: application/json" \ -d '{ "period": "30d", "includeComparison": true }' ``` ```bash cURL - With Filters theme={null} curl -X GET \ "https://api.kardow.com/analytics" \ -H "x-api-key: your-api-key-here" \ -H "Content-Type: application/json" \ -d '{ "period": "30d", "filters": { "device": ["Desktop"], "country": ["US", "GB"], "source": ["Google", "LinkedIn"] }, "includeComparison": true }' ``` ```bash cURL - Custom Date Range theme={null} curl -X GET \ "https://api.kardow.com/analytics" \ -H "x-api-key: your-api-key-here" \ -H "Content-Type: application/json" \ -d '{ "period": "custom", "dateRange": { "from": "2024-01-01", "to": "2024-01-31" }, "includeComparison": true }' ``` ```javascript JavaScript theme={null} const apiKey = process.env.KARDOW_API_KEY; const response = await fetch( 'https://api.kardow.com/analytics', { method: 'GET', headers: { 'x-api-key': apiKey, 'Content-Type': 'application/json' }, body: JSON.stringify({ period: '30d', filters: { device: ['Desktop'], country: ['US', 'GB'] }, includeComparison: true }) } ); const data = await response.json(); console.log('Analytics:', data.data.metrics); console.log('Comparison:', data.data.comparison); ``` ```python Python theme={null} import os import requests api_key = os.environ.get('KARDOW_API_KEY') url = 'https://api.kardow.com/analytics' headers = { 'x-api-key': api_key, 'Content-Type': 'application/json' } payload = { 'period': '30d', 'filters': { 'device': ['Desktop'], 'country': ['US', 'GB'] }, 'includeComparison': True } response = requests.get(url, headers=headers, json=payload) data = response.json() print('Analytics:', data['data']['metrics']) print('Comparison:', data['data']['comparison']) ``` ```php PHP theme={null} '30d', 'filters' => [ 'device' => ['Desktop'], 'country' => ['US', 'GB'] ], 'includeComparison' => true ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "x-api-key: $apiKey", 'Content-Type: application/json' ]); curl_setopt($ch, GET, true); curl_setopt($ch, CURLOPT_GETFIELDS, json_encode($payload)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $data = json_decode($response, true); curl_close($ch); print_r($data['data']['metrics']); ?> ``` ```json 200 Success theme={null} { "data": { "metrics": { "visitors": 1500, "pageviews": 4200, "bounce_rate": 45.2, "visit_duration": 125 }, "comparison": { "visitors": { "value": 1500, "change": 12.5 }, "pageviews": { "value": 4200, "change": 8.3 }, "bounce_rate": { "value": 45.2, "change": -5.2 }, "visit_duration": { "value": 125, "change": 3.8 } }, "previousMetrics": { "visitors": 1333, "pageviews": 3878, "bounce_rate": 47.7, "visit_duration": 120 }, "timeseries": [ { "date": "2024-01-01", "visitors": 50, "pageviews": 140, "bounce_rate": 44.5, "visit_duration": 128 } ], "topPages": [ { "name": "/companies/acme/jobs/software-engineer", "visitors": 320, "pageviews": 580, "bounce_rate": 42.1, "visit_duration": 135 } ], "topSources": [ { "name": "Google", "visitors": 450, "pageviews": 1200, "bounce_rate": 38.5, "visit_duration": 142 } ], "topCountries": [ { "code": "US", "name": "United States", "visitors": 650, "pageviews": 1850 } ], "devices": [ { "name": "Desktop", "visitors": 800, "pageviews": 2200 } ], "browsers": [ { "name": "Chrome", "visitors": 900, "pageviews": 2500 } ], "os": [ { "name": "Windows", "visitors": 600, "pageviews": 1700 } ], "topCompanies": [ { "name": "Acme Inc", "visitors": 450 } ], "topJobs": [ { "name": "Software Engineer", "visitors": 320 } ] }, "meta": { "period": "30d", "filters_applied": { "device": ["Desktop"], "country": ["US", "GB"] }, "organization_domain": "acme.kardow.com" } } ``` ```json 401 Missing API Key theme={null} { "error": { "message": "API key is required", "code": "missing_api_key", "details": "Please provide an API key in the x-api-key header", "url": "https://kardow.featurebase.app/help/articles/api-documentation" } } ``` ```json 400 Validation Error theme={null} { "error": { "message": "Invalid parameters", "code": "validation_error", "details": [ { "code": "invalid_enum_value", "options": ["7d", "30d", "6mo", "12mo", "custom"], "path": ["period"], "message": "Invalid enum value. Expected '7d' | '30d' | '6mo' | '12mo' | 'custom'" } ], "url": "https://kardow.com/help/api/full-analytics" } } ``` ```json 400 Missing Date Range theme={null} { "error": { "message": "Missing required parameter", "code": "missing_parameter", "details": "dateRange is required when period is \"custom\"", "url": "https://kardow.com/help/api/full-analytics" } } ``` ## Filtering Capabilities The full analytics endpoint supports extensive filtering to help you analyze specific segments of your traffic: ### Device Filtering Filter analytics by device type to understand how users access your job board: ```json theme={null} { "filters": { "device": ["Desktop", "Mobile"] } } ``` ### Geographic Filtering Analyze traffic from specific countries using ISO country codes: ```json theme={null} { "filters": { "country": ["US", "GB", "CA", "AU"] } } ``` ### Traffic Source Filtering Understand which sources drive the most traffic: ```json theme={null} { "filters": { "source": ["Google", "LinkedIn", "Direct"] } } ``` ### UTM Campaign Tracking Track specific marketing campaigns: ```json theme={null} { "filters": { "utm_source": ["newsletter"], "utm_medium": ["email"], "utm_campaign": ["summer_2024"] } } ``` ### Combined Filters Combine multiple filters for advanced segmentation: ```json theme={null} { "filters": { "device": ["Desktop"], "country": ["US"], "source": ["Google"], "browser": ["Chrome"] } } ``` ## Understanding Comparison Data When `includeComparison` is enabled, the API automatically calculates period-over-period changes: ```json theme={null} { "comparison": { "visitors": { "value": 1500, // Current period visitors "change": 12.5 // +12.5% increase from previous period } }, "previousMetrics": { "visitors": 1333 // Previous period visitors } } ``` **How the comparison works:** * For preset periods (7d, 30d, etc.), the previous period is the equivalent time span immediately before the current period * For custom date ranges, the previous period is calculated based on the duration of your custom range * Positive `change` values indicate growth * Negative `change` values indicate decline ## Use Cases ### Performance Dashboard Build a comprehensive performance dashboard: ```javascript theme={null} async function buildAnalyticsDashboard() { const analytics = await fetch('https://api.kardow.com/analytics', { method: 'GET', headers: { 'x-api-key': apiKey, 'Content-Type': 'application/json' }, body: JSON.stringify({ period: '30d', includeComparison: true }) }).then(r => r.json()); return { overview: { visitors: analytics.data.metrics.visitors, trend: analytics.data.comparison.visitors.change, pageviews: analytics.data.metrics.pageviews, avgDuration: analytics.data.metrics.visit_duration }, charts: { timeseries: analytics.data.timeseries, geography: analytics.data.topCountries, devices: analytics.data.devices }, topPerformers: { jobs: analytics.data.topJobs, companies: analytics.data.topCompanies, pages: analytics.data.topPages } }; } ``` ### Mobile vs Desktop Analysis Compare performance across device types: ```javascript theme={null} async function analyzeDevicePerformance() { const [desktop, mobile] = await Promise.all([ fetch('https://api.kardow.com/analytics', { method: 'GET', body: JSON.stringify({ period: '30d', filters: { device: ['Desktop'] } }) }).then(r => r.json()), fetch('https://api.kardow.com/analytics', { method: 'GET', body: JSON.stringify({ period: '30d', filters: { device: ['Mobile'] } }) }).then(r => r.json()) ]); return { desktop: { visitors: desktop.data.metrics.visitors, bounceRate: desktop.data.metrics.bounce_rate, duration: desktop.data.metrics.visit_duration }, mobile: { visitors: mobile.data.metrics.visitors, bounceRate: mobile.data.metrics.bounce_rate, duration: mobile.data.metrics.visit_duration } }; } ``` ### Geographic Performance Report Analyze which countries drive the most engagement: ```javascript theme={null} async function analyzeGeographicPerformance(targetCountries) { const results = await Promise.all( targetCountries.map(country => fetch('https://api.kardow.com/analytics', { method: 'GET', body: JSON.stringify({ period: '30d', filters: { country: [country] } }) }).then(r => r.json()) ) ); return targetCountries.map((country, i) => ({ country, visitors: results[i].data.metrics.visitors, engagement: results[i].data.metrics.visit_duration, bounceRate: results[i].data.metrics.bounce_rate })); } ``` ### Marketing Campaign Analysis Track UTM campaign performance: ```javascript theme={null} async function analyzeCampaign(campaignName) { const analytics = await fetch('https://api.kardow.com/analytics', { method: 'GET', body: JSON.stringify({ period: '30d', filters: { utm_campaign: [campaignName] }, includeComparison: true }) }).then(r => r.json()); return { campaign: campaignName, visitors: analytics.data.metrics.visitors, conversions: analytics.data.topJobs.length, sources: analytics.data.topSources, trend: analytics.data.comparison.visitors.change }; } ``` ## Best Practices > [card] Cache Results > > Cache analytics data for 5-10 minutes to reduce API calls and improve performance. > [card] Use Filters Wisely > > Combine filters to get specific insights, but avoid over-filtering which may result in insufficient data. > [card] Monitor Comparisons > > Enable comparisons to track trends and identify performance changes over time. > [card] Batch Requests > > If you need multiple filtered views, consider making parallel requests for better performance. ## Rate Limits > [!WARNING] > > This endpoint is subject to rate limits: > > * **50 requests per minute** per API key > * **5 concurrent requests** maximum > > More restrictive than the job-visitors endpoint due to the comprehensive nature of the data. ## Related Endpoints > [card] [Job Visitors](/docs/api-reference/analytics/jobs-analytics) > > Get visitor counts for specific jobs > [card] [List Jobs](/docs/api-reference/jobs/list) > > Retrieve your job listings # Get Job Visitors Source: https://kardow.com/docs/api-reference/analytics/jobs-analytics GET /analytics/job-visitors Retrieve visitor counts for specific job postings over a specified time period ## Authentication This endpoint requires API key authentication. Include your API key in the request header: ```bash theme={null} x-api-key: your-api-key-here ``` > [!NOTE] > > You can generate API keys from your organization settings in the Kardow dashboard under **Settings > API Keys**. ## Query Parameters **jobIds** `string` *required* Comma-separated list of job UUIDs to fetch visitor counts for. Maximum 100 job IDs per request. Example: `123e4567-e89b-12d3-a456-426614174000,123e4567-e89b-12d3-a456-426614174001` **period** `string` (default: 30d) Time period for analytics data. Must be one of: * `7d` - Last 7 days * `30d` - Last 30 days * `6mo` - Last 6 months * `12mo` - Last 12 months ## Response **data** `object` The analytics data for the requested jobs **data properties** **visitors** `object` Map of job IDs to their visitor counts ```json theme={null} { "123e4567-e89b-12d3-a456-426614174000": 150, "123e4567-e89b-12d3-a456-426614174001": 320 } ``` **meta** `object` Metadata about the request **meta properties** **period** `string` The time period used for the analytics query **total\_jobs** `number` Total number of jobs included in the query ```bash cURL theme={null} curl -X GET \ "https://api.kardow.com/analytics/jobs?jobIds=123e4567-e89b-12d3-a456-426614174000,123e4567-e89b-12d3-a456-426614174001&period=30d" \ -H "x-api-key: your-api-key-here" ``` ```javascript JavaScript theme={null} const apiKey = process.env.KARDOW_API_KEY; const jobIds = [ '123e4567-e89b-12d3-a456-426614174000', '123e4567-e89b-12d3-a456-426614174001' ]; const response = await fetch( `https://api.kardow.com/analytics/jobs?jobIds=${jobIds.join(',')}&period=30d`, { headers: { 'x-api-key': apiKey } } ); const data = await response.json(); console.log('Visitor data:', data.data.visitors); ``` ```python Python theme={null} import os import requests api_key = os.environ.get('KARDOW_API_KEY') job_ids = [ '123e4567-e89b-12d3-a456-426614174000', '123e4567-e89b-12d3-a456-426614174001' ] url = 'https://api.kardow.com/analytics/jobs' params = { 'jobIds': ','.join(job_ids), 'period': '30d' } headers = { 'x-api-key': api_key } response = requests.get(url, params=params, headers=headers) data = response.json() print('Visitor data:', data['data']['visitors']) ``` ```php PHP theme={null} implode(',', $jobIds), 'period' => '30d' ]); $ch = curl_init("$url?$queryParams"); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "x-api-key: $apiKey" ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $data = json_decode($response, true); curl_close($ch); print_r($data['data']['visitors']); ?> ``` ```json 200 Success theme={null} { "data": { "visitors": { "123e4567-e89b-12d3-a456-426614174000": 150, "123e4567-e89b-12d3-a456-426614174001": 320 } }, "meta": { "period": "30d", "total_jobs": 2 } } ``` ```json 401 Missing API Key theme={null} { "error": { "message": "API key is required", "code": "missing_api_key", "details": "Please provide an API key in the x-api-key header", "url": "https://kardow.featurebase.app/help/articles/api-documentation" } } ``` ```json 401 Invalid API Key theme={null} { "error": { "message": "Invalid API key", "code": "invalid_api_key", "details": "The provided API key is invalid or expired", "url": "https://kardow.featurebase.app/help/articles/api-documentation" } } ``` ```json 400 Missing Parameters theme={null} { "error": { "message": "Missing required parameter", "code": "missing_parameter", "details": "jobIds parameter is required (comma-separated list of UUIDs)", "url": "https://kardow.com/help/api/get-job-analytics-with-the-api" } } ``` ```json 403 Invalid Job IDs theme={null} { "error": { "message": "Invalid job IDs", "code": "forbidden", "details": "The following job IDs do not belong to your organization or do not exist: 123e4567-e89b-12d3-a456-426614174002", "url": "https://kardow.com/help/api/get-job-analytics-with-the-api" } } ``` ## Security This endpoint implements multiple security layers: 1. **API Key Authentication** - Only valid API keys can access the endpoint 2. **Organization Scoping** - You can only access jobs belonging to your organization 3. **Job Ownership Validation** - All requested job IDs are verified to belong to your organization 4. **Domain Validation** - Analytics are fetched only from your organization's verified domain ## Rate Limits > [!WARNING] > > API requests are subject to rate limits: > > * **100 requests per minute** per API key > * **10 concurrent requests** maximum When you exceed the rate limit, you'll receive a `429 Too Many Requests` response. ## Best Practices ### Batch Multiple Jobs Instead of making individual requests for each job, batch multiple job IDs in a single request: ```javascript Don't - Multiple Requests theme={null} // Making 50 requests for (const jobId of jobIds) { await fetch(`https://api.kardow.com/analytics/jobs?jobIds=${jobId}`); } ``` ```javascript Do - Single Batched Request theme={null} // Making 1 request for up to 100 jobs const jobIdsBatch = jobIds.slice(0, 100).join(','); await fetch(`https://api.kardow.com/analytics/jobs?jobIds=${jobIdsBatch}`); ``` ### Implement Error Handling Always implement proper error handling with retries: ```javascript theme={null} async function getAnalyticsWithRetry(jobIds, maxRetries = 3) { let lastError; for (let i = 0; i < maxRetries; i++) { try { const response = await fetch( `https://api.kardow.com/analytics/jobs?jobIds=${jobIds.join(',')}`, { headers: { 'x-api-key': apiKey } } ); if (response.status === 429) { // Rate limited - wait and retry await new Promise(resolve => setTimeout(resolve, 2000 * (i + 1))); continue; } if (!response.ok) { const error = await response.json(); throw new Error(error.error.message); } return await response.json(); } catch (error) { lastError = error; if (i < maxRetries - 1) { await new Promise(resolve => setTimeout(resolve, 1000 * (i + 1))); } } } throw lastError; } ``` ### Cache Results Cache analytics data to reduce API calls: ```javascript theme={null} const cache = new Map(); const CACHE_TTL = 5 * 60 * 1000; // 5 minutes async function getCachedAnalytics(jobIds) { const cacheKey = jobIds.sort().join(','); const cached = cache.get(cacheKey); if (cached && Date.now() - cached.timestamp < CACHE_TTL) { return cached.data; } const data = await getJobAnalytics(jobIds); cache.set(cacheKey, { data, timestamp: Date.now() }); return data; } ``` ## Common Use Cases ### Dashboard Integration Display visitor analytics in your custom dashboard: ```javascript theme={null} async function buildJobDashboard(jobIds) { const analytics = await getJobAnalytics(jobIds); return jobIds.map(jobId => ({ jobId, visitors: analytics.data.visitors[jobId] || 0, // Add other job data })); } ``` ### Weekly Performance Reports Generate automated reports of job performance: ```javascript theme={null} async function generateWeeklyReport() { const jobs = await getAllActiveJobs(); const jobIds = jobs.map(j => j.id); const analytics = await getJobAnalytics(jobIds); const report = { period: analytics.meta.period, totalVisitors: Object.values(analytics.data.visitors) .reduce((a, b) => a + b, 0), topJobs: Object.entries(analytics.data.visitors) .sort(([, a], [, b]) => b - a) .slice(0, 10) .map(([jobId, visitors]) => ({ job: jobs.find(j => j.id === jobId), visitors })) }; return report; } ``` ### Comparative Analysis Compare performance across different time periods: ```javascript theme={null} async function comparePerformance(jobIds) { const [last7Days, last30Days] = await Promise.all([ getJobAnalytics(jobIds, '7d'), getJobAnalytics(jobIds, '30d') ]); return jobIds.map(jobId => ({ jobId, last7Days: last7Days.data.visitors[jobId] || 0, last30Days: last30Days.data.visitors[jobId] || 0, averageDaily: (last30Days.data.visitors[jobId] || 0) / 30 })); } ``` ## Related Endpoints > [card] [Site Analytics](/docs/api-reference/analytics/analytics) > > Get comprehensive analytics with filtering options > [card] [List Jobs](/docs/api-reference/jobs/list) > > Retrieve your job listings # Get Applications Source: https://kardow.com/docs/api-reference/applications/get-applications GET /applications List job applications with optional filtering by job and status Returns a paginated list of applications for jobs owned by your organization. ## Query Parameters **job\_id** `string` Filter to applications for a specific job UUID. **status** `string` Filter by application status: `pending`, `reviewed`, `shortlisted`, `rejected`, or `hired`. **page** `number` (default: 1) Page number. **per\_page** `number` (default: 20) Records per page, up to `100`. ## Examples ### List recent applications ```bash cURL theme={null} curl --request GET \ --url "https://api.kardow.com/applications?per_page=10" \ --header "x-api-key: your-api-key-here" ``` ### Filter by job ```bash cURL theme={null} curl --request GET \ --url "https://api.kardow.com/applications?job_id=550e8400-e29b-41d4-a716-446655440000" \ --header "x-api-key: your-api-key-here" ``` ## Response **data** `array` **properties** **id** `string` Application ID **job\_id** `string` Job ID **job\_title** `string` Job title **company\_name** `string` Company name **applicant\_name** `string` Applicant name **applicant\_email** `string` Applicant email **applicant\_phone** `string` Applicant phone **status** `string` Application status **submitted\_at** `string` ISO 8601 timestamp **meta** `object` **properties** **pagination** `object` Includes `current_page`, `per_page`, `total_items`, `total_pages`, `has_more`. # Create CMS Item Source: https://kardow.com/docs/api-reference/cms/create-item POST /cms/{slug} Insert a new item, or upsert when an `id` is supplied. The `data` object is validated against the collection's schema before the row is stored. Required fields must be present; unknown fields are dropped. ## Example ```bash theme={null} curl -X POST https://api.kardow.com/cms/sponsors \ -H "x-api-key: $KARDOW_API_KEY" \ -H "content-type: application/json" \ -d '{ "data": { "name": "Globex", "logo": "https://cdn.example.com/globex.png", "url": "https://globex.com" }, "status": "published" }' ``` Pass `expires_at` to make the item disappear from public lists after a specific moment, or `starts_at` to schedule it. # Delete CMS Collection Source: https://kardow.com/docs/api-reference/cms/delete-collection DELETE /cms/{slug} Delete the entire collection and every item it contains. > [!WARNING] > > This is irreversible. Items are not soft-deleted. # Delete CMS Item Source: https://kardow.com/docs/api-reference/cms/delete-item DELETE /cms/{slug}/{id} Permanently delete a single item. # Get CMS Item Source: https://kardow.com/docs/api-reference/cms/get-item GET /cms/{slug}/{id} Fetch a single item by id. # CMS API Source: https://kardow.com/docs/api-reference/cms/introduction Store, validate, and serve any structured content — sponsors, courses, listings, recipes — without writing a backend. The CMS API turns any list of structured data on your site into a managed collection. Define a schema once, then create, update, and list items via a single set of endpoints. Every collection is a namespaced bucket scoped to your organization. Items inside a collection are JSON objects validated against the collection's schema before they are stored. ## Why use it * **No new tables.** Add a sponsors page, a courses catalogue, or a directory in minutes — no migration required. * **Validation built-in.** Each field has a type (`text`, `image`, `url`, `select`, `date`, …). Bad data is rejected at the API boundary. * **Public read out of the box.** Public collections are cached at the edge for 60 seconds and revalidate automatically when you write. * **Monetizable.** Pair a collection with a `payment_plan` whose `purpose` is `cms_item` and visitors can pay to add an entry (sponsorships, classifieds, featured listings, …). ## Authentication All CMS endpoints accept an API key via the `x-api-key` header. Required permission scopes: | Scope | Endpoints | | - | - | | `cms:read` | `GET` endpoints | | `cms:write` | `POST`, `PATCH`, `DELETE` endpoints | Wildcard keys (`*` permission) work for every CMS endpoint. > [!NOTE] > > Get your API key from **Dashboard → Settings → API Keys**. When creating a > key for CMS automation, scope it to `cms:read` and `cms:write` only. ## Field types | Type | Notes | | - | - | | `text` | Single-line, default max 5,000 chars. | | `longtext` | Multi-line, default max 100,000 chars. | | `number` | JSON number. Use `min`/`max` for bounds. | | `boolean` | `true` / `false`. Strings `"true"`/`"false"` accepted. | | `image` | URL or storage path (`/bucket/object.png`). | | `url` | Must start with `http://` or `https://`. | | `select` | Requires `options: string[]`. | | `date` | ISO 8601 timestamp. | ## Quickstart ```bash theme={null} # 1. Create a "sponsors" collection curl -X POST https://api.kardow.com/cms \ -H "x-api-key: $KARDOW_API_KEY" \ -H "content-type: application/json" \ -d '{ "slug": "sponsors", "name": "Sponsors", "schema": [ { "name": "name", "type": "text", "required": true }, { "name": "logo", "type": "image", "required": true }, { "name": "url", "type": "url" } ] }' # 2. Add an item curl -X POST https://api.kardow.com/cms/sponsors \ -H "x-api-key: $KARDOW_API_KEY" \ -H "content-type: application/json" \ -d '{ "data": { "name": "Acme", "logo": "/sponsors/acme.png", "url": "https://acme.com" } }' # 3. List items curl https://api.kardow.com/cms/sponsors \ -H "x-api-key: $KARDOW_API_KEY" ``` # List CMS Collections Source: https://kardow.com/docs/api-reference/cms/list-collections GET /cms Returns every CMS collection in your organization. Use this to enumerate the collections your dashboard or build pipeline should sync. ## Example ```bash theme={null} curl https://api.kardow.com/cms \ -H "x-api-key: $KARDOW_API_KEY" ``` # List CMS Items Source: https://kardow.com/docs/api-reference/cms/list-items GET /cms/{slug} Paginated list of items in a collection. By default returns up to 50 items. Use `limit` and `offset` for paging (maximum `limit` is 500). Filter on the `status` field to see drafts or items pending moderation. ## Example ```bash theme={null} curl "https://api.kardow.com/cms/sponsors?status=published&limit=100" \ -H "x-api-key: $KARDOW_API_KEY" ``` # Update CMS Item Source: https://kardow.com/docs/api-reference/cms/update-item PATCH /cms/{slug}/{id} Partial update of an item. Only the fields you send are changed. When you send `data`, the entire `data` payload is replaced (and validated). Send only `status`, `expires_at`, `starts_at`, or `position` to change those without touching the data shape. # Create or Update CMS Collection Source: https://kardow.com/docs/api-reference/cms/upsert-collection POST /cms Create a new CMS collection or replace its schema by slug. A collection is identified by its `slug`. POSTing the same slug twice performs an upsert — the schema, name, description, and rules are replaced. > [!WARNING] > > Changing the schema of a collection that already has items does **not** > re-validate them. Existing rows keep their stored shape; new writes are > validated against the new schema. ## Rules object The optional `rules` field controls collection behavior: | Key | Type | Default | Purpose | | - | - | - | - | | `allow_public_submit` | `boolean` | `false` | Permit unauthenticated `POST /organization/cms/{slug}/submit`. | | `moderation` | `'auto'` \| `'manual'` | `'manual'` | `auto` = published immediately; `manual` = `pending_review`. | | `sort_by` | `string` | `created_at` | Default sort field for list responses. | | `sort_dir` | `'asc'` \| `'desc'` | `'desc'` | Default sort direction. | ## Example ```bash theme={null} curl -X POST https://api.kardow.com/cms \ -H "x-api-key: $KARDOW_API_KEY" \ -H "content-type: application/json" \ -d '{ "slug": "courses", "name": "Courses", "visibility": "public", "schema": [ { "name": "title", "type": "text", "required": true }, { "name": "summary", "type": "longtext", "required": true }, { "name": "cover", "type": "image" }, { "name": "level", "type": "select", "options": ["beginner","intermediate","advanced"] }, { "name": "duration", "type": "number" } ], "rules": { "allow_public_submit": false, "moderation": "manual" } }' ``` # Assets (Media Library) Source: https://kardow.com/docs/api-reference/content/assets List and upload images in your job board's media library, with hosted cdn.kardow.com URLs The Assets API is your board's media library. Uploaded files are stored on Kardow and served from `cdn.kardow.com`, so you always get a stable, public URL to embed in pages, blog posts, or anywhere else. Raw storage URLs are never exposed. > [!NOTE] > > Authenticate with your API key in the `x-api-key` header. Create keys under **Settings > API**. ## List assets ```http theme={null} GET https://api.kardow.com/assets ``` **type** `string` Filter by `image`, `video`, or `file`. **search** `string` Match against the asset title. **page** `number` (default: 1) Page number. **per\_page** `number` (default: 20) Records per page, up to 100. ```bash cURL theme={null} curl --url "https://api.kardow.com/assets?type=image&search=cover" \ --header "x-api-key: your-api-key-here" ``` Each asset returns `id`, `type`, `provider`, `url` (cdn.kardow\.com), `thumbnail_url`, `title`, `visibility`, `metadata`, `created_at`, and `updated_at`. ## Upload an asset Two ways to add an image. The first (import from a URL) is the easiest for automations and AI: hand Kardow any image URL and it downloads, stores, and returns a hosted link. ### Import from a URL ```http theme={null} POST https://api.kardow.com/assets Content-Type: application/json ``` **source\_url** `string` *required* URL of the image to import into your library. **title** `string` Optional label. ```bash cURL theme={null} curl --request POST \ --url "https://api.kardow.com/assets" \ --header "Content-Type: application/json" \ --header "x-api-key: your-api-key-here" \ --data '{ "source_url": "https://example.com/photo.jpg", "title": "Blog cover" }' ``` ### Upload a file directly Send `multipart/form-data` with a `file` field. ```bash cURL theme={null} curl --request POST \ --url "https://api.kardow.com/assets" \ --header "x-api-key: your-api-key-here" \ --form "file=@./cover.png" \ --form "title=Blog cover" ``` Both return the created asset: ```json theme={null} { "data": { "id": "9b2c...", "type": "image", "url": "https://cdn.kardow.com/abc123/storage/v1/object/public/org-assets/42/library/9b2c.png", "title": "Blog cover", "visibility": "public", "created_at": "2026-07-11T10:00:00.000Z" } } ``` Use `data.url` as a page or blog `cover_image`, or embed it in [page content](/docs/api-reference/content/pages) as ``. > [!NOTE] > > Max upload size is 15MB. Supported image types: JPEG, PNG, GIF, WebP, AVIF, SVG. # Authors Source: https://kardow.com/docs/api-reference/content/authors List and create blog article authors to attribute blog posts Authors are the bylines shown on blog posts. Create an author, then pass its `id` as `author_id` when you [create a blog post](/docs/api-reference/content/pages). > [!NOTE] > > Authenticate with your API key in the `x-api-key` header. ## List authors ```http theme={null} GET https://api.kardow.com/authors ``` ```bash cURL theme={null} curl --url "https://api.kardow.com/authors" \ --header "x-api-key: your-api-key-here" ``` ```json theme={null} { "data": [ { "id": "3c4d...", "name": "Jane Doe", "avatar_url": "https://cdn.kardow.com/...", "created_at": "2026-07-01T00:00:00Z" } ] } ``` ## Create an author ```http theme={null} POST https://api.kardow.com/authors ``` **name** `string` *required* Author display name. **avatar\_url** `string` Optional avatar image URL. Host it with the [Assets API](/docs/api-reference/content/assets) for a stable link. ```bash cURL theme={null} curl --request POST \ --url "https://api.kardow.com/authors" \ --header "Content-Type: application/json" \ --header "x-api-key: your-api-key-here" \ --data '{ "name": "Jane Doe" }' ``` Use the returned `id` as `author_id` on a blog post to attribute it. # Pages & Blog Source: https://kardow.com/docs/api-reference/content/pages List, read, create, update, and delete custom pages and blog posts on your job board Custom pages and blog posts are the same content type on Kardow: a blog post is a page flagged as a blog article. These endpoints let another system (or an AI assistant via the MCP connector) manage them programmatically. > [!NOTE] > > Authenticate every request with your API key in the `x-api-key` header. A valid key can manage its own organization's content. Create keys under **Settings > API** in the dashboard. ## Content format Send the body in the `content` field as **HTML** (recommended, easiest to produce). It is stored as rich-text and rendered on your live site. You may also send TipTap JSON directly if you already have it. These elements render on the live site: | Element | HTML | | - | - | | Headings | `

` through `

` | | Paragraph, line break | `

`, `
` | | Emphasis | ``, ``, ``, inline `` | | Lists | `