domainIDGraph
Last updated
Was this helpful?
Query the per-domain user database (ID Graph) using SQL. The ID Graph stores user information collected from your websites or shops, including PII, cookies, custom data, and channel-specific data.
domainId
string (UUID)
Yes
The domain ID (tagId). Get this from the domains tool.
teamId
string (UUID)
Yes
The team ID the domain belongs to.
query
string
Yes
SQL SELECT query. Must include a timestamp range filter. Limit of 500 rows without GROUP BY.
The ID Graph has 4 tables:
Primary user table with PII and consent data.
user_id
Primary key - unique user identifier
email
User email address
phone
User phone number
firstName
First name
lastName
Last name
gender
Gender
dateOfBirth
Date of birth
city
City
state
State/region
zip
Postal code
country
Country
consent
JSON object with consent data
consentCategories
JSON object with consent categories
created_at
Record creation timestamp
updated_at
Last update timestamp
Browser cookie data linked to users.
user_id
Foreign key to main table
cookie_key
Cookie name
cookie_value
Cookie value
created_at
Record creation timestamp
Developer-set custom data.
user_id
Foreign key to main table
store_key
Custom data key
store_value
Custom data value
created_at
Record creation timestamp
updated_at
Last update timestamp
Channel-specific data such as UTM parameters.
user_id
Foreign key to main table
provider_id
Channel/provider identifier
store_key
Data key
store_value
Data value
created_at
Record creation timestamp
updated_at
Last update timestamp
"Look up the user with email john@example.com"
"How many users were created today?"
"Show me all cookies for a specific user"
ID Graph Querying must be enabled for your domain. Contact support@blotout.io if you get an "Action not permitted!" error.
Last updated
Was this helpful?
Was this helpful?
SELECT * FROM main WHERE email = 'john@example.com' LIMIT 1SELECT COUNT(*) FROM main WHERE created_at >= strftime('%s', '2026-01-01T00:00:00Z')SELECT * FROM cookie WHERE user_id = 'user-id-here'
