consent
/api/v1/consent/accept
POST
/api/v1/consent/accept
const url = 'https://dpg.example.com/api/v1/consent/accept';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"network":"example","brand":"example","source":"signup","items":[{"category":"terms","version":1}]}'};
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/accept \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "network": "example", "brand": "example", "source": "signup", "items": [ { "category": "terms", "version": 1 } ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
network
required
string
brand
string
source
required
string
items
required
Array<object>
object
category
required
string
version
required
integer
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
recorded
required
integer
Examplegenerated
{ "recorded": 1}
