GET
/
policies
curl --request GET \
  --url https://api.blaxel.ai/v0/policies \
  --header 'Authorization: Bearer <token>'
[
  {
    "metadata": {
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "createdBy": "<string>",
      "updatedBy": "<string>",
      "displayName": "<string>",
      "labels": {},
      "name": "<string>",
      "workspace": "<string>"
    },
    "spec": {
      "flavors": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "locations": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "maxTokens": {
        "granularity": "<string>",
        "input": 123,
        "output": 123,
        "ratioInputOverOutput": 123,
        "step": 123,
        "total": 123
      },
      "resourceTypes": [
        "<string>"
      ],
      "sandbox": true,
      "type": "<string>"
    }
  }
]

Authorizations

Authorization
string
header
required

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

Response

200 - application/json
successful operation
metadata
object

Metadata

spec
object

Policy specification