consent
/api/v1/consent/u18/dob
POST
/api/v1/consent/u18/dob
const url = 'https://dpg.example.com/api/v1/consent/u18/dob';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"network":"example","dateOfBirth":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dpg.example.com/api/v1/consent/u18/dob \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "network": "example", "dateOfBirth": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
network
required
string
dateOfBirth
required
Examplegenerated
{ "network": "example", "dateOfBirth": "example"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
isMinor
required
boolean
Examplegenerated
{ "isMinor": true}
