v8

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-214977372.7 KB
Account Management API
Origins

Create origin

Note: This API is currently in beta.
Creates a new origin and returns the origin object.

post/v1/accounts/origins

Request body

OR
OR
OR
OR
OR
OR
OR

Example request

{
  "name": "US S3 Storage",
  "baseUrlForCanonicalHeader": "https://cdn.example.com",
  "bucket": "product-images",
  "prefix": "raw-assets",
  "useIAMRole": true,
  "accessKey": "AKIAIOSFODNN7EXAMPLE",
  "secretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}

Response

Origin created successfully.

OR
OR
OR
OR
OR
OR
OR

Example response

{
  "name": "US S3 Storage",
  "baseUrlForCanonicalHeader": "https://cdn.example.com",
  "bucket": "product-images",
  "prefix": "raw-assets",
  "useIAMRole": true
}