v8

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

Create URL‑endpoint

Note: This API is currently in beta.
Creates a new URL‑endpoint and returns the resulting object.

post/v1/accounts/url-endpoints

Request body

descriptionstring required

Description of the URL endpoint.

urlPrefixstring

Path segment appended to your base URL to form the endpoint (letters, digits, and hyphens only — or empty for the default endpoint).

originsstring[]

Ordered list of origin IDs to try when the file isn’t in the Media Library; ImageKit checks them in the sequence provided. Origin must be created before it can be used in a URL endpoint.

Example request

{
  "description": "My custom URL endpoint",
  "urlPrefix": "product-images",
  "origins": [
    "origin-id-1"
  ]
}

Response

URL‑endpoint created successfully.

descriptionstring required

Description of the URL endpoint.

urlPrefixstring required

Path segment appended to your base URL to form the endpoint (letters, digits, and hyphens only — or empty for the default endpoint).

originsstring[] required

Ordered list of origin IDs to try when the file isn’t in the Media Library; ImageKit checks them in the sequence provided. Origin must be created before it can be used in a URL endpoint.

idstring required

Unique identifier for the URL-endpoint. This is generated by ImageKit when you create a new URL-endpoint. For the default URL-endpoint, this is always default.

Example response

{
  "description": "My custom URL endpoint",
  "urlPrefix": "product-images",
  "origins": [
    "origin-id-1",
    "origin-id-2"
  ],
  "urlRewriter": {
    "preserveAssetDeliveryTypes": true
  }
}