Preview source field mapping
curl --request POST \
--url https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/preview \
--header 'Content-Type: application/json' \
--data '
{
"payload": "<unknown>",
"mappings": {}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({payload: '<unknown>', mappings: {}})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/preview"
payload = {
"payload": "<unknown>",
"mappings": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Data workspace
Preview source field mapping
Dedicated workspace database. Pro or Team required. Workspace-scoped credentials only; mutations require the write capability. All reads and writes resolve the database from the authenticated workspace.
POST
/
admin
/
api
/
data-workspace
/
tables
/
{table_id}
/
preview
Preview source field mapping
curl --request POST \
--url https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/preview \
--header 'Content-Type: application/json' \
--data '
{
"payload": "<unknown>",
"mappings": {}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({payload: '<unknown>', mappings: {}})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/preview"
payload = {
"payload": "<unknown>",
"mappings": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}