Suggest a dataset and field mappings for a sample payload
curl --request POST \
--url https://app.hookie.ai/admin/api/ai/suggest-mapping \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"sample": "<unknown>",
"hint": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({sample: '<unknown>', hint: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/ai/suggest-mapping', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/ai/suggest-mapping"
payload = {
"sample": "<unknown>",
"hint": "<string>"
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"dataset": "<string>",
"mappings": [
{
"path": "<string>",
"key": "<string>"
}
],
"conditions": [
{
"path": "<string>",
"equals": "<string>"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}AI
Suggest a dataset and field mappings for a sample payload
POST
/
admin
/
api
/
ai
/
suggest-mapping
Suggest a dataset and field mappings for a sample payload
curl --request POST \
--url https://app.hookie.ai/admin/api/ai/suggest-mapping \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"sample": "<unknown>",
"hint": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({sample: '<unknown>', hint: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/ai/suggest-mapping', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/ai/suggest-mapping"
payload = {
"sample": "<unknown>",
"hint": "<string>"
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"dataset": "<string>",
"mappings": [
{
"path": "<string>",
"key": "<string>"
}
],
"conditions": [
{
"path": "<string>",
"equals": "<string>"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Body
application/json
Response
Advisory only — nothing is created. The model's output is normalized and hard-bounded here (keys coerced to unique snake_case, at most 50 mappings and 20 conditions, paths truncated to 200 chars) and still re-validated when the caller actually creates the rule or webhook.
Falls back to the hint, then to 'events'.
Maximum array length:
50Show child attributes
Show child attributes
Equality-only, matching the routing-rule condition shape. Paths beginning with '$' are dropped.
Maximum array length:
20Show child attributes
Show child attributes