Workspace
The current workspace and the tag vocabularies it has extracted.
- Get a background jobGET
/api/v1/jobs/{job_id} - Get the current workspaceGET
/api/v1/workspace - List company names extracted by company auto tagsGET
/api/v1/workspace/company-tags - List the workspace's content-type tagsGET
/api/v1/workspace/content-type-tags - Get the workspace pull-through prioritiesGET
/api/v1/workspace/pull-through-priorities - Replace the workspace pull-through prioritiesPUT
/api/v1/workspace/pull-through-priorities
Get a background job
/api/v1/jobs/{job_id}Poll the job id returned by a long-running call (ingestion, audience reactions, report generation) until status is completed, failed or cancelled. result and parameters are JSON-encoded strings. Jobs from other workspaces answer 404.
Path parameters
job_idstringRequiredThe job id returned by the call that queued the work.
Returns200 · object
- nullable
completed_atstring created_atstringRequired- nullable
document_idstring - nullable
error_messagestring - for example "job_7f3a9c2e"
idstringRequired - for example "audience_reactions"
job_typestringRequired - default 0
max_retriesinteger - nullable
parametersstringThe job's input, JSON-encoded as a string.
- default 0
priorityinteger - nullable
resultstringThe job's output once completed, JSON-encoded as a string.
- default 0
retry_countinteger - nullable
started_atstring - for example "completed"
statusstringRequiredqueued, running, completed, failed, cancelled or retrying.
- nullable
user_idstring workspace_idstringRequired
curl --globoff 'https://api.kumkuat.ai/api/v1/jobs/{job_id}' \
-H 'X-API-Key: <api key>'Get the current workspace
/api/v1/workspaceThe workspace the API key belongs to, with the caller's role and the workspace settings.
Query parameters
workspace_idstringRead another workspace by id. Only honoured for admin keys; every other key gets its own workspace.
Returns200 · object
- nullable
companystringCompany name the workspace monitors.
- nullable
created_atstring - default ""
descriptionstring - default true
is_activeboolean is_ownerbooleanRequired- for example "Acme Corp"
namestringRequired - for example "owner"
rolestringRequiredThe key owner's role in the workspace: owner, admin or member.
settingsobjectWorkspace settings (market language, pillars, feature flags).
- nullable
updated_atstring - nullable
websitestring - for example "ws_0512272171984c7fb4b7"
workspace_idstringRequired
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/workspace \
-H 'X-API-Key: <api key>'Get the workspace pull-through priorities
/api/v1/workspace/pull-through-prioritiesThe pull-through priorities content writing checks drafts against.
Returns200 · object
prioritiesarray of objectRequired3 child fields
- default false
from_kbboolean - default "must"
levelstringmust, should or nice.
- for example "Margin expansion is structural, not one-off"
textstringRequired
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/workspace/pull-through-priorities \
-H 'X-API-Key: <api key>'{
"priorities":
Replace the workspace pull-through priorities
/api/v1/workspace/pull-through-prioritiesReplace the whole list.
Bodyapplication/json · required
prioritiesarray of objectRequiredReplaces the whole list.
3 child fields
- default false
from_kbboolean - default "must"
levelstringmust, should or nice.
- for example "Margin expansion is structural, not one-off"
textstringRequired
Returns200 · object
prioritiesarray of objectRequired3 child fields
- default false
from_kbboolean - default "must"
levelstringmust, should or nice.
- for example "Margin expansion is structural, not one-off"
textstringRequired
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/workspace/pull-through-priorities \
-X PUT \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"priorities":[{"text":"Margin expansion is structural, not one-off"}]}'