Create a read-only Data API key (the plaintext is returned once)
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/data-api/keys \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/data-api/keys', 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/{pid}/data-api/keys"
payload = { "name": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"key": "<string>",
"key_prefix": "<string>",
"created_at": "<string>"
}Data API
Create a read-only Data API key (the plaintext is returned once)
POST
/
admin
/
api
/
projects
/
{pid}
/
data-api
/
keys
Create a read-only Data API key (the plaintext is returned once)
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{pid}/data-api/keys \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/data-api/keys', 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/{pid}/data-api/keys"
payload = { "name": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"key": "<string>",
"key_prefix": "<string>",
"created_at": "<string>"
}