API Reference / Knowledge - Artifacts

Get artifact scope counts

get https://api.intelig.ai/api/v1/intelig/knowledge/artifacts/scope/counts

Auth: Authorization: ApiKey <key> (an API key sent as Bearer is rejected) or Authorization: Bearer <jwt> for a dashboard session. operationId: getArtifactScopeCounts

Returns counts of accessible artifacts grouped by scope type (total, organization, personal), optionally filtered by date range and provider.

Example request

curl -X GET "https://api.intelig.ai/api/v1/intelig/knowledge/artifacts/scope/counts" \
  -H "Authorization: ApiKey $INTELIG_API_KEY"

Query parameters

NameTypeRequiredDescription
from string (date) no
to string (date) no
provider string no

Response 200

application/json · ApiResponseScopeCountsDto

FieldTypeDescription
success boolean
message string
data ScopeCountsDto

Status codes

  • 200 — Scope counts returned successfully
  • 401 — Organization context not set or user not authenticated
  • 403 — Insufficient permissions for Knowledge pillar
  • 429 — —

Every response is wrapped in { success, message, data }. A 4xx means the request is wrong — do not retry it unchanged. A 429 carries Retry-After in seconds.