Skip to content

Search the Omeda Knowledge Base

GDPR Permission API


This API provides capabilities to find whether a customer has given GDPR consent for a url, or to store such information to Omeda’s database.

General Technical Requirements

HTTP Headers

The HTTP header must contain the following elements:

a unique id provided to you by Omeda to access your data. The request will fail without a valid id.
a content type supported by this resource. See Supported Content Types for more details. If omitted, the default content type is application/json.

Content Type

If omitted, the default content type is application/json.


JSON is the preferred data exchange format, because it is lightweight and, in most cases, faster to process and utilizes less bandwidth. There are many available open-source JSON libraries available. See for details.

Supported HTTP Methods

  1. GET : For looking up GDPR consent for a customer.
  2. POST : For storing GDPR consent data for a customer and url.

Base Resource URI

Note: customer can be found either by customerId or anonymousId depending on which URI is used, and both GET and POST use the same URI pattern:


is the abbreviation for the brand
the encrypted or non-encrypted Omeda customer ID for the customer
the Olytics anonymous id for the customer

Field Definition

The following tables describe the data elements that can be sent to this API. In addition to the below elements, a SubmissionId element will also be returned with all responses. This is a unique identifier for the web services response. It can be used to cross-reference the response in Omeda’s database.

GET Response Elements

Consent Elements

Element NameAlways Returned…Data TypeDescription
AlternateIdNoStringthis is the alternate ID for the customer (typically Olytics anonymous id)
ConsentDateYesDatethe date when consent was received
ConsentDomainYesStringdomain for the customer consent
ConsentTypeCodeYesIntegerconsent type (will be built upon later, as of 1/2019 it is always 1 aka website)
OmedaCustomerIdYesIntegerthe internal customer identifier
StatusCodeYesInteger0 for consent = “no”, 1 for consent = “yes”

Example GET Response


POST Request Elements

Attribute NameRequired?Description
ConsentDateoptionaldate that consent was recorded
IpAddressoptionalIP Address that consent was received from
Urlrequiredurl that consent relates to
Consentrequireddescription of the consent, should be a String “yes”, “no”, or “clr”

Example POST request

   "ConsentDate":"2018-03-14 15:22:11"

Example POST response

         "Message":"Consent was updated successfully",

Response – Failure

If an error occurs repeatedly, please contact your Omeda representative.

HTTP Response Codes

400 Bad RequestTypically, this error occurs when the request does not follow the specifications.
403 ForbiddenTypically, this error occurs when the credentials are erroneous. Potentially, an incorrect x-omeda-appid.
404 Not FoundTypically, this error occurs with a malformed URL or the resource that is searched for is not found.
405 Method Not AllowedTypically, this error occurs when the resource accessed is not allowed by the HTTP Method utilized. Make sure you employ the correct HTTP Method (POST) for this request.
500 Internal Server ErrorIn the rare case that there is a server-side problem, this response will be returned. This generally indicates a problem of a more serious nature, and submitting additional requests may not be advisable. Please contact Omeda Account Representative.
Table of Contents
Knowledge Base Feedback