Get Consent Request
Retrieves consent request with {id} if the authenticated data producer is assigned to it.
Path parameters
Response
OK
Example response
{
"dataProducerUid": "CHE123456789",
"dataProducerBur": "99910003",
"showStateAsMigrated": true,
"lastStateChangeDate": "2025-06-16T11:04:51.823889",
"requestDate": "2022-03-10",
"dataRequest": {
"dataSourceSystem": {
"code": "AGIS",
"dataProvider": {
"code": "BLW",
"uid": "CHE123456789"
}
},
"humanFriendlyId": "GL56",
"submissionDate": "2025-06-16T11:04:51.823889",
"title": {
"de": "Anfrage zu Bodentypen und Bodenqualitätsdaten",
"fr": "Demande sur les types de sols et les données de qualité du sol",
"it": "Richiesta sui tipi di suolo e sui dati sulla qualità del suolo"
},
"description": {
"de": "Ziel der Anfrage ist es, Informationen über Bodentypen und deren Qualität zu erhalten, um fundierte Entscheidungen zur Fruchtfolge, Düngung und nachhaltigen Bewirtschaftung treffen zu können.",
"fr": "L'objectif de la demande est d'obtenir des informations sur les types de sols et leur qualité afin de prendre des décisions éclairées concernant la rotation des cultures, la fertilisation et la gestion durable.",
"it": "L'obiettivo della richiesta è ottenere informazioni sui tipi di suolo e sulla loro qualità per prendere decisioni informate sulla rotazione delle colture, la fertilizzazione e la gestione sostenibile."
},
"purpose": {
"de": "Bewertung der Bodenqualität",
"fr": "Évaluation de la qualité du sol",
"it": "Valutazione della qualità del suolo"
},
"dataConsumerLegalName": "Bio Suisse, Vereinigung Schweizer Biolandbau-Organisationen",
"dataConsumerDisplayName": "Bio Suisse",
"dataConsumerUid": "CHE101708094",
"dataConsumerCity": "Basel",
"dataConsumerZip": "4052",
"dataConsumerStreet": "Peter Merian-Str. 34",
"dataConsumerCountry": "CH",
"contactPhoneNumber": "+41 79 123 45 67",
"contactEmailAddress": "example@labelorganisation.ch",
"dataConsumerLogoBase64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"validRedirectUriRegex": "^https:\\/\\/www\\.dummy-label-organisation\\/.*$",
"advantages": [
{
"de": "Vermeiden von Mehreingaben",
"fr": "Éviter les saisies multiples",
"it": "Evitare inserimenti multipli"
}
]
}
}Changes
Changed in 23 of the 56 revisions of this API.92719
- ●
added the new
LEGALLY_PERMITTEDenum value to thestateCoderesponse property for the response status200response-property-enum-value-added
- ●
- ○
endpoint deprecated
endpoint-deprecated
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the optional property
dataProducerBurto the response with the200statusresponse-optional-property-added
- ○
- ○
added the required property
dataRequest/advantagesto the response with the200statusresponse-required-property-added
- ○
- ●
added the new
DATA_PROVIDER_ERRORenum value to thetyperesponse property for the response status404response-property-enum-value-added
- ●
added the new
DATA_PROVIDER_ERRORenum value to thetyperesponse property for the response status500response-property-enum-value-added
- ●
- ○
removed the
DATA_PROVIDER_ERRORenum value from thetyperesponse property for the response status404response-property-enum-value-removed
- ○
removed the
DATA_PROVIDER_ERRORenum value from thetyperesponse property for the response status500response-property-enum-value-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
DATA_PROVIDER_ERRORenum value to thetyperesponse property for the response status404response-property-enum-value-added
- ●
added the new
DATA_PROVIDER_ERRORenum value to thetyperesponse property for the response status500response-property-enum-value-added
- ●
- ●
added the new
OTP_EXPIREDenum value to thetyperesponse property for the response status404response-property-enum-value-added
- ●
added the new
OTP_EXPIREDenum value to thetyperesponse property for the response status500response-property-enum-value-added
- ●
added the new
OTP_INVALIDenum value to thetyperesponse property for the response status404response-property-enum-value-added
- ●
added the new
OTP_INVALIDenum value to thetyperesponse property for the response status500response-property-enum-value-added
- ●
added the new
OTP_LOCKEDenum value to thetyperesponse property for the response status404response-property-enum-value-added
- ●
added the new
OTP_LOCKEDenum value to thetyperesponse property for the response status500response-property-enum-value-added
- ●
added the new
OTP_RESEND_COOLDOWNenum value to thetyperesponse property for the response status404response-property-enum-value-added
- ●
added the new
OTP_RESEND_COOLDOWNenum value to thetyperesponse property for the response status500response-property-enum-value-added
- ●
- ○
added the optional property
dataRequest/consumerSignatureTypeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
dataRequest/providerSignatureTypeto the response with the200statusresponse-optional-property-added
- ○
- ●
added the new
TO_BE_ACTIVATEDenum value to thedataRequest/stateCoderesponse property for the response status200response-property-enum-value-added
- ●
added the new
TO_BE_RELEASED_BY_PROVIDERenum value to thedataRequest/stateCoderesponse property for the response status200response-property-enum-value-added
- ○
added the optional property
dataRequest/dataSourceSystem/dataProvider/uidto the response with the200statusresponse-optional-property-added
- ●