Consulta de vínculo empregatício
curl --request POST \
--url https://api.example.com/worker-relationships \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cpf": "<string>"
}
'import requests
url = "https://api.example.com/worker-relationships"
payload = { "cpf": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cpf: '<string>'})
};
fetch('https://api.example.com/worker-relationships', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"requestId": "e7f8a9b0-c1d2-3456-e7f8-a9b0c1d23456",
"status": "queued"
}
Contratação Ativa
Consulta de vínculo empregatício
Detalha o vínculo empregatício do trabalhador para iniciar a análise de elegibilidade
POST
/
worker-relationships
Consulta de vínculo empregatício
curl --request POST \
--url https://api.example.com/worker-relationships \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cpf": "<string>"
}
'import requests
url = "https://api.example.com/worker-relationships"
payload = { "cpf": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cpf: '<string>'})
};
fetch('https://api.example.com/worker-relationships', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"requestId": "e7f8a9b0-c1d2-3456-e7f8-a9b0c1d23456",
"status": "queued"
}
Etapa opcional — use quando ainda não conhece o vínculo empregatício do trabalhador.
Todos os endpoints requerem autenticação via Bearer token no header
Authorization.
Consulte o guia de autenticação para obter suas credenciais e gerar um token.x-version (1 = síncrono/200; 2 ou ausente = assíncrono/202 +
requestId).
O Dataprev Controller valida apenas o campo
cpf nesta chamada — confirmado no schema real do serviço.
Os demais campos (incluindo authorizationTerm) são aceitos e repassados, mas não são validados nesta
camada.Parâmetros
string
required
CPF do trabalhador — 8 a 11 dígitos numéricos
object
Termo de autorização LGPD (aceito e repassado, não validado):
userAgent, deviceModel, deviceType,
geoLocation (latitude, longitude), entre outros.Exemplo
curl -X POST https://hml.zipdin.com.br/dataprev-controller/worker-relationships \
-H "x-api-key: SUA_API_KEY" \
-H "Authorization: Bearer SEU_TOKEN" \
-H "x-idempotency-key: 3f8a91b2-7c4d-4e5f-a6b7-8c9d0e1f2a3b" \
-H "Content-Type: application/json" \
-d '{
"cpf": "52998224725",
"authorizationTerm": {
"userAgent": "Mozilla/5.0",
"deviceModel": "iPhone 14",
"deviceType": "mobile",
"geoLocation": { "latitude": "-23.5505", "longitude": "-46.6333" }
}
}'
{
"requestId": "e7f8a9b0-c1d2-3456-e7f8-a9b0c1d23456",
"status": "queued"
}
