{
  "opencollection": "1.0.0",
  "info": {
    "name": "ImageKit Account Management API API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Account Management API",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get account usage information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.imagekit.io/v1/accounts/usage",
            "params": [
              {
                "name": "startDate",
                "value": "",
                "type": "query",
                "description": "Specify a `startDate` in `YYYY-MM-DD` format. It should be before the `endDate`. The difference between `startDate` and `endDate` should be less than 90 days."
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query",
                "description": "Specify a `endDate` in `YYYY-MM-DD` format. It should be after the `startDate`. The difference between `startDate` and `endDate` should be less than 90 days."
              }
            ]
          },
          "docs": "Get the account usage information between two dates. Note that the API response includes data from the start date while excluding data from the end date. In other words, the data covers the period starting from the specified start date up to, but not including, the end date.\n"
        },
        {
          "info": {
            "name": "List origins",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.imagekit.io/v1/accounts/origins"
          },
          "docs": "**Note:** This API is currently in beta.  \nReturns an array of all configured origins for the current account.\n"
        },
        {
          "info": {
            "name": "Create origin",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.imagekit.io/v1/accounts/origins",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "**Note:** This API is currently in beta.  \nCreates a new origin and returns the origin object.\n"
        },
        {
          "info": {
            "name": "Get origin",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.imagekit.io/v1/accounts/origins/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the origin. This is generated by ImageKit when you create a new origin."
              }
            ]
          },
          "docs": "**Note:** This API is currently in beta.  \nRetrieves the origin identified by `id`.\n"
        },
        {
          "info": {
            "name": "Update origin",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.imagekit.io/v1/accounts/origins/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the origin. This is generated by ImageKit when you create a new origin."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "**Note:** This API is currently in beta.  \nUpdates the origin identified by `id` and returns the updated origin object.\n"
        },
        {
          "info": {
            "name": "Delete origin",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.imagekit.io/v1/accounts/origins/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the origin. This is generated by ImageKit when you create a new origin."
              }
            ]
          },
          "docs": "**Note:** This API is currently in beta.  \nPermanently removes the origin identified by `id`. If the origin is in use by any URL‑endpoints, the API will return an error.\n"
        },
        {
          "info": {
            "name": "List URL‑endpoints",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.imagekit.io/v1/accounts/url-endpoints"
          },
          "docs": "**Note:** This API is currently in beta.  \nReturns an array of all URL‑endpoints configured including the default URL-endpoint generated by ImageKit during account creation.\n"
        },
        {
          "info": {
            "name": "Create URL‑endpoint",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.imagekit.io/v1/accounts/url-endpoints",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "**Note:** This API is currently in beta.  \nCreates a new URL‑endpoint and returns the resulting object.\n"
        },
        {
          "info": {
            "name": "Get URL‑endpoint",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.imagekit.io/v1/accounts/url-endpoints/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "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`."
              }
            ]
          },
          "docs": "**Note:** This API is currently in beta.  \nRetrieves the URL‑endpoint identified by `id`.\n"
        },
        {
          "info": {
            "name": "Update URL‑endpoint",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.imagekit.io/v1/accounts/url-endpoints/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "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`."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "**Note:** This API is currently in beta.  \nUpdates the URL‑endpoint identified by `id` and returns the updated object.\n"
        },
        {
          "info": {
            "name": "Delete URL‑endpoint",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.imagekit.io/v1/accounts/url-endpoints/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "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`."
              }
            ]
          },
          "docs": "**Note:** This API is currently in beta.  \nDeletes the URL‑endpoint identified by `id`. You cannot delete the default URL‑endpoint created by ImageKit during account creation.\n"
        }
      ]
    }
  ],
  "bundled": true
}