Complete REST API reference for the DAKDAN Talent Platform
Production: https://api.dakdantalent.com
Development: http://localhost:3000The API uses HTTPOnly session cookies for authentication. No API keys required.
All state-changing requests (POST, PUT, DELETE, PATCH) require CSRF tokens:
// 1. Get token
const response = await fetch('/api/csrf');
const { token, headerName } = await response.json();
// 2. Include in request
fetch('/api/jobs', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
[headerName]: token
},
body: JSON.stringify({ ... })
});All errors follow this format:
{
"error": "Human-readable error message",
"code": "MACHINE_READABLE_CODE",
"details": { ... }
}