Xeonr Developer Docs

GetBucketServingConfig

POST
/uplim.api.v1.InternalPortalService/GetBucketServingConfig

Serving configuration (CORS / policy / privacy) for a bucket. Read on the worker's hot path; cached briefly.

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketRef?|

Reference to a bucket by ID or hostname

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.InternalPortalService/GetBucketServingConfig" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "denied": {
    "reason": "REASON_UNSPECIFIED"
  },
  "cors": {
    "rules": [
      {
        "id": "string",
        "allowedOrigins": [
          "string"
        ],
        "allowedMethods": [
          "string"
        ],
        "allowedHeaders": [
          "string"
        ],
        "exposeHeaders": [
          "string"
        ],
        "maxAgeSeconds": 86400
      }
    ]
  },
  "policyJson": "string",
  "private": true,
  "portalConfig": {
    "cdnMode": true
  },
  "slug": "string"
}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}