What the project exposes to the Data API, and its keys (metadata only)
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/data-apiconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/data-api', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/data-api"
response = requests.get(url)
print(response.text){
"exposures": [
{
"dataset": "<string>",
"columns": [
"<string>"
]
}
],
"keys": [
{
"id": "<string>",
"name": "<string>",
"key_prefix": "<string>",
"created_at": "<string>",
"last_used_at": "<string>",
"revoked_at": "<string>"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}Data API
What the project exposes to the Data API, and its keys (metadata only)
GET
/
admin
/
api
/
projects
/
{project_id}
/
data-api
What the project exposes to the Data API, and its keys (metadata only)
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/data-apiconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/data-api', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/data-api"
response = requests.get(url)
print(response.text){
"exposures": [
{
"dataset": "<string>",
"columns": [
"<string>"
]
}
],
"keys": [
{
"id": "<string>",
"name": "<string>",
"key_prefix": "<string>",
"created_at": "<string>",
"last_used_at": "<string>",
"revoked_at": "<string>"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}