List ingest keys
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{pid}/ingest-keys \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/ingest-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}/ingest-keys"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"keys": [
{
"id": "<string>",
"name": "<string>",
"key_prefix": "<string>",
"dataset_default": "<string>",
"require_signature": 0,
"ip_allowlist": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
}
]
}{
"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>"
}Ingest keys
List ingest keys
Top-level alias: GET /admin/api/ingest-keys. Readable by any role.
GET
/
admin
/
api
/
projects
/
{pid}
/
ingest-keys
List ingest keys
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{pid}/ingest-keys \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/ingest-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}/ingest-keys"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"keys": [
{
"id": "<string>",
"name": "<string>",
"key_prefix": "<string>",
"dataset_default": "<string>",
"require_signature": 0,
"ip_allowlist": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
}
]
}{
"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.
Path Parameters
Project id (UUID) belonging to the caller workspace.
Response
Keys of the project, newest first. Only the prefix is stored in the clear - the key itself is held as a SHA-256 hash and can never be read back. Revoked keys stay listed with revoked_at set.
Show child attributes
Show child attributes