> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/campaign-images/openapi.json](/docs/api/campaign-images/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# Campaign images: Get a campaign image

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

One endpoint of [Campaign images](/docs/api/campaign-images.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## Get a campaign image

`GET /v1/campaign-images/{imageKey}` - operationId `campaign-images.get`

| Permission | Rate limit |
| --- | --- |
| Campaigns view | 12,000 requests a minute per API key |

Returns one image by its key, with a new preview link. Call it again when a `previewUrl` has expired.

`imageKey` is the 26-character key from the image list or from an image variable. A ready image has a
`previewUrl` that works until `previewExpiresAt`, 1 hour after the call. A `pending` or
`failed` image has no preview link.

Errors:

- `404 not_found`: no image in this workspace has this key, or the image was deleted.

Requires Campaigns view.

Needs the `campaign_images` feature on your workspace. Until it is on, calls answer 404.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/campaign-images/GET/v1/campaign-images/%7BimageKey%7D)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `imageKey` | path | string | yes | The image's 26-character key. |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Response 200

`data` is a `CampaignImage`.

| Field | Type | Description |
| --- | --- | --- |
| `imageKey` | string | The image's unique 26-character key. Read the image again with `GET /v1/campaign-images/{imageKey}`. |
| `contactId` | integer (int64) | Id of the contact the image belongs to. Omitted for an image that every contact shares. |
| `variableKey` | string | Key of the image variable the image fills, or `custom_image` for the contact's own image. Omitted when the image belongs to no current image variable. |
| `status` | string | State of the image: `pending` while Kenso makes or fetches it, `ready` once it is stored, or `failed`. |
| `errorCode` | string | Why the image failed, such as `timeout`, `not_an_image`, `too_large` or `provider_error`. Set when `status` is `failed`. |
| `errorDetail` | string | A readable explanation of the failure. Set when `status` is `failed`. |
| `width` | integer (int32) | Width of the image in pixels. Omitted while unknown. |
| `height` | integer (int32) | Height of the image in pixels. Omitted while unknown. |
| `previewUrl` | string | A link to view the ready image, valid until `previewExpiresAt`. Use it for viewing only, not inside an email. Omitted unless `status` is `ready`. |
| `previewExpiresAt` | string (date-time) | When `previewUrl` stops working, in UTC: 1 hour after the call. Omitted with `previewUrl`. |
| `updatedAt` | string (date-time) | When the image last changed, in UTC. |

### Request

```bash
curl -X GET "https://api.ken.so/v1/campaign-images/01JC8Z3K6Q2W4M7N9P5R1T3V5X" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID"
```

### Example response

```json
{
  "success": true,
  "data": {
    "imageKey": "string",
    "contactId": 812,
    "variableKey": "string",
    "status": "string",
    "errorCode": "timeout",
    "errorDetail": "string",
    "width": 1,
    "height": 1,
    "previewUrl": "https://example.com",
    "previewExpiresAt": "2026-09-23T15:02:11Z",
    "updatedAt": "2026-09-23T15:02:11Z"
  }
}
```
