The project's one customer portal
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/portalconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/portal', 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}/portal"
response = requests.get(url)
print(response.text){
"portal": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"event_types": [
"<string>"
],
"branding": {
"logo_url": "<string>",
"primary_color": "<string>"
},
"enabled": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"embed_origins": [
"<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
}Portals
The project's one customer portal
GET
/
admin
/
api
/
projects
/
{project_id}
/
portal
The project's one customer portal
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/portalconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/portal', 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}/portal"
response = requests.get(url)
print(response.text){
"portal": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"event_types": [
"<string>"
],
"branding": {
"logo_url": "<string>",
"primary_color": "<string>"
},
"enabled": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"embed_origins": [
"<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
}