---
title: "Batch Fetch User Campaigns"
method: POST
path: "/api/v2/core/user-campaigns/batch-fetch"
tags: ["User Campaign"]
---

# Batch Fetch User Campaigns

`POST /api/v2/core/user-campaigns/batch-fetch`

Batch fetch user campaigns for a given list of campaign ids (limit 100)

## Query parameters

- `exclude` string
- `keyList` string

## Headers

- `Authorization` string, required

## Request body

- BatchFetchEntityRequestSchema
  - `entityIds` string[], required — list of entity ids to fetch the entity objects

## Response `200`

OK

- object
  - `data` UserCampaignSchema[]
    - `createdAt` integer, nullable — Timestamp when this user campaign was created
    - `id` string, nullable — Id associated with the user campaign
    - `subject` string, nullable — Subject of this user campaign
    - `status` string, nullable — Status of this user campaign
    - `name` string, nullable — Name of the user campaign
    - `userId` string, nullable — User who initiated this user campaign
    - `replyTo` string, nullable — Reply To as set in the email envelope of this user campaign
    - `emailFromName` string, nullable — Name of the sender in email envelope of this user campaign
    - `updatedAt` integer, nullable — Timestamp when this user campaign was updated
    - `emailFromAddress` string, nullable — Email from address of the email envelope for this user campaign
  - `meta` BatchFetchMetaSchema
    - `missingEntityIds` string[], nullable — List of entity ids for which no result was found

---

[API](https://skmtc.dev/eightfold/apis/api-server-v2-service-service.md) · [All operations](https://skmtc.dev/eightfold/apis/api-server-v2-service-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eightfold/api-server-v2-service-service/revisions/0fb26f4e41bf/schema)
