AI Policies
Legacy policy authoring and explainable policy evaluation endpoints.
/api/v1/ai/policiesList ai policies
List ai policies in the Enterprise AI Control Plane. The tenant is resolved server-side from the bearer token/session; callers do not pass a tenant subdomain in the API path.
Query parameters
| page | Zero-based page index where supported. |
| size | Page size where supported. |
Responses
Example request
curl -X GET "https://api.authspoke.com/api/v1/ai/policies" \
-H "Authorization: Bearer $TOKEN"Example response
{
"id": "uuid",
"status": "OK"
}/api/v1/ai/policiesCreate or run ai policies
Create or run ai policies in the Enterprise AI Control Plane. The tenant is resolved server-side from the bearer token/session; callers do not pass a tenant subdomain in the API path.
Request body
| name | string | Display name or operation name where applicable. |
| status | string | Status or lifecycle value where applicable. |
| reason | string | Audit reason for governed changes. |
| metadata | object | Provider or business metadata. |
| configuration | object | Connector, policy, or resource configuration. |
Responses
Example request
curl -X POST "https://api.authspoke.com/api/v1/ai/policies" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"example","metadata":{}}'Example response
{
"id": "uuid",
"status": "OK"
}/api/v1/ai/policies/{id}Get policies id
Get policies id in the Enterprise AI Control Plane. The tenant is resolved server-side from the bearer token/session; callers do not pass a tenant subdomain in the API path.
Path parameters
| id* | id identifier. |
Query parameters
| page | Zero-based page index where supported. |
| size | Page size where supported. |
Responses
Example request
curl -X GET "https://api.authspoke.com/api/v1/ai/policies/{id}" \
-H "Authorization: Bearer $TOKEN"Example response
{
"id": "uuid",
"status": "OK"
}/api/v1/ai/policies/{id}Replace policies id
Replace policies id in the Enterprise AI Control Plane. The tenant is resolved server-side from the bearer token/session; callers do not pass a tenant subdomain in the API path.
Path parameters
| id* | id identifier. |
Request body
| name | string | Display name or operation name where applicable. |
| status | string | Status or lifecycle value where applicable. |
| reason | string | Audit reason for governed changes. |
| metadata | object | Provider or business metadata. |
| configuration | object | Connector, policy, or resource configuration. |
Responses
Example request
curl -X PUT "https://api.authspoke.com/api/v1/ai/policies/{id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"example","metadata":{}}'Example response
{
"id": "uuid",
"status": "OK"
}/api/v1/ai/policies/{id}Delete policies id
Delete policies id in the Enterprise AI Control Plane. The tenant is resolved server-side from the bearer token/session; callers do not pass a tenant subdomain in the API path.
Path parameters
| id* | id identifier. |
Responses
Example request
curl -X DELETE "https://api.authspoke.com/api/v1/ai/policies/{id}" \
-H "Authorization: Bearer $TOKEN"/api/v1/ai/policies/evaluateCreate or run policies evaluate
Create or run policies evaluate in the Enterprise AI Control Plane. The tenant is resolved server-side from the bearer token/session; callers do not pass a tenant subdomain in the API path.
Request body
| name | string | Display name or operation name where applicable. |
| status | string | Status or lifecycle value where applicable. |
| reason | string | Audit reason for governed changes. |
| metadata | object | Provider or business metadata. |
| configuration | object | Connector, policy, or resource configuration. |
Responses
Example request
curl -X POST "https://api.authspoke.com/api/v1/ai/policies/evaluate" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"example","metadata":{}}'Example response
{
"id": "uuid",
"status": "OK"
}