Skip to main content
POST
/
media
Import Media
curl --request POST \
  --url https://api.politicalcomms.com/v1/media \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "source_url": "https://example.com/path/to/image.jpg",
  "organization_id": "01HX0000000000000000000000",
  "brand_id": "01HX0000000000000000000001",
  "name": "spring-outreach-hero"
}
'
{
  "success": true,
  "data": {
    "id": "med_abc123",
    "name": "spring-outreach-hero",
    "status": "importing",
    "created_at": "2025-03-10T12:00:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.politicalcomms.com/llms.txt

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

Authorizations

X-API-Key
string
header
required

Authenticate every request by passing your API key in the X-API-Key header. Keys are scoped to your organization hierarchy.

Body

application/json
source_url
string<uri>
required
organization_id
string
required
brand_id
string
required
name
string
required

Response

Import accepted (poll the media file for ready status)