Skip to main content
GET
/
api
/
v2
/
policies
/
summary
Get Policies Summary
curl --request GET \
  --url https://{organization_id}.platform.barndoor.ai/api/v2/policies/summary \
  --header 'Authorization: Bearer <token>'
{
  "active": 0,
  "draft": 0,
  "inactive": 0,
  "archived": 0,
  "total": 0
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

Summary counts of policies by status.

active
integer
default:0
draft
integer
default:0
inactive
integer
default:0
archived
integer
default:0
total
integer
default:0