---
title: "Get origin"
method: GET
path: "/v1/accounts/origins/{id}"
tags: ["Account Management API", "Origins"]
---

# Get origin

`GET /v1/accounts/origins/{id}`

**Note:** This API is currently in beta.  
Retrieves the origin identified by `id`.

## Path parameters

- `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.

## Response `200`

Successful response.

- union — Origin object as returned by the API (sensitive fields removed).
  - object
    - `name` string, required — Display name of the origin.
    - `type` 'S3', required
    - `includeCanonicalHeader` boolean, required — Whether to send a Canonical header.
    - `baseUrlForCanonicalHeader` string, uri — URL used in the Canonical header (if enabled).
    - `bucket` string, required — S3 bucket name.
    - `prefix` string, required — Path prefix inside the bucket.
    - `useIAMRole` boolean — Whether the origin authenticates using an IAM role instead of access/secret keys.
    - `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.
  - object
    - `name` string, required — Display name of the origin.
    - `type` 'S3_COMPATIBLE', required
    - `includeCanonicalHeader` boolean, required — Whether to send a Canonical header.
    - `baseUrlForCanonicalHeader` string, uri — URL used in the Canonical header (if enabled).
    - `bucket` string, required — S3 bucket name.
    - `prefix` string, required — Path prefix inside the bucket.
    - `endpoint` string, uri, required — Custom S3-compatible endpoint.
    - `s3ForcePathStyle` boolean, required — Use path-style S3 URLs?
    - `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.
  - object
    - `name` string, required — Display name of the origin.
    - `type` 'CLOUDINARY_BACKUP', required
    - `includeCanonicalHeader` boolean, required — Whether to send a Canonical header.
    - `baseUrlForCanonicalHeader` string, uri — URL used in the Canonical header (if enabled).
    - `bucket` string, required — S3 bucket name.
    - `prefix` string, required — Path prefix inside the bucket.
    - `useIAMRole` boolean — Whether the origin authenticates using an IAM role instead of access/secret keys.
    - `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.
  - object
    - `name` string, required — Display name of the origin.
    - `type` 'WEB_FOLDER', required
    - `includeCanonicalHeader` boolean, required — Whether to send a Canonical header.
    - `baseUrlForCanonicalHeader` string, uri — URL used in the Canonical header (if enabled).
    - `baseUrl` string, uri, required — Root URL for the web folder origin.
    - `forwardHostHeaderToOrigin` boolean, required — Forward the Host header to origin?
    - `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.
  - object
    - `name` string, required — Display name of the origin.
    - `type` 'WEB_PROXY', required
    - `includeCanonicalHeader` boolean, required — Whether to send a Canonical header.
    - `baseUrlForCanonicalHeader` string, uri — URL used in the Canonical header (if enabled).
    - `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.
  - object
    - `name` string, required — Display name of the origin.
    - `type` 'GCS', required
    - `includeCanonicalHeader` boolean, required — Whether to send a Canonical header.
    - `baseUrlForCanonicalHeader` string, uri — URL used in the Canonical header (if enabled).
    - `bucket` string, required
    - `prefix` string, required
    - `clientEmail` string, email, required
    - `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.
  - object
    - `name` string, required — Display name of the origin.
    - `type` 'AZURE_BLOB', required
    - `includeCanonicalHeader` boolean, required — Whether to send a Canonical header.
    - `baseUrlForCanonicalHeader` string, uri — URL used in the Canonical header (if enabled).
    - `container` string, required
    - `prefix` string, required
    - `accountName` string, required
    - `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.
  - object
    - `name` string, required — Display name of the origin.
    - `type` 'AKENEO_PIM', required
    - `includeCanonicalHeader` boolean, required — Whether to send a Canonical header.
    - `baseUrlForCanonicalHeader` string, uri — URL used in the Canonical header (if enabled).
    - `baseUrl` string, uri, required — Akeneo instance base URL.
    - `id` string, required — Unique identifier for the origin. This is generated by ImageKit when you create a new origin.

## Other responses

- `401` — Unauthorized request.
- `403` — Forbidden.
- `404` — Resource not found
- `429` — The request exceeded the rate limit. Contains headers indicating the limits and a message detailing the error.

---

[API](https://skmtc.dev/imagekit-developer/apis/imagekit-api.md) · [All operations](https://skmtc.dev/imagekit-developer/apis/imagekit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/imagekit-developer/imagekit-api/revisions/bb3e9ff84b3e/schema)
