Skip to main content
POST
/
api
/
v1
/
campaigns
/
{uuid}
/
pools
Attach one or more pools to a campaign
curl --request POST \
  --url https://{subdomain}.mihu.ai/api/v1/campaigns/{uuid}/pools \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pool_uuids": [
    "da00a73e-9f0d-4570-bf2d-dc50970574d5"
  ]
}
'
{
  "success": true,
  "message": "N pool(s) attached to campaign, M task(s) created.",
  "data": {
    "campaign_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "pools_attached": 123,
    "pools_skipped": 123,
    "pool_uuids_not_found": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "tasks_created": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required

UUID of the campaign to attach pools to.

Body

application/json
pool_uuids
string<uuid>[]
required

UUIDs of pools to attach. Create pools with POST /api/v1/pools and populate them with POST /api/v1/pools/{uuid}/contacts before attaching. Duplicates within the array are deduplicated server-side.

Minimum array length: 1

Response

Operation summary. Response includes how many pools were attached, skipped, or not found, plus how many tasks were created.

success
boolean
Example:

true

message
string
Example:

"N pool(s) attached to campaign, M task(s) created."

data
object