curl -X POST https://esocialconnect.anacodetech.com/api/empregadores/12/folha/s-1200 \
-H "Authorization: Bearer avtx_SEU_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"per_apur": "2026-09",
"cpf_trab": "12345678909",
"dm_dev": [{ "ide_dm_dev": "FOLHA-09", ... }]
}'
$ch = curl_init('https://esocialconnect.anacodetech.com/api/empregadores/12/folha/s-1200');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer avtx_SEU_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'per_apur' => '2026-09',
'cpf_trab' => '12345678909',
'dm_dev' => [['ide_dm_dev' => 'FOLHA-09']],
]),
]);
$resposta = json_decode(curl_exec($ch), true);
const res = await fetch('https://esocialconnect.anacodetech.com/api/empregadores/12/folha/s-1200', {
method: 'POST',
headers: {
'Authorization': 'Bearer avtx_SEU_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
per_apur: '2026-09',
cpf_trab: '12345678909',
dm_dev: [{ ide_dm_dev: 'FOLHA-09' }],
}),
});
const dados = await res.json();
HTTP 201
{ "evento_id": "ID1123456780000002026092818300000001",
"status": "aguardando",
"lote": { "protocolo_envio": "1.2.202609.0000000000012345678" } }