GET /api/v1/assignments/media

Retrieves all media coverage records associated with a policy.

Query parameters

  • policy_id string Required

    The ID of the policy to get media coverage records for.

Responses

  • 200 application/json

    Returns a list of media coverage records if successful.

    Hide response attributes Show response attributes object
    • coverage_end_date integer(int64)

      The date and time when the coverage period ends, measured in seconds since the Unix epoch.

    • created integer(int64)

      Time at which the media coverage record was created.

    • first_publication_date integer(int64)

      The date and time when the first content was published, measured in seconds since the Unix epoch.

    • id string

      Unique identifier for the media coverage record.

    • is_active boolean

      Whether the media coverage period is currently active.

    • published_content_json array[object]

      Array of published content items. Each item contains publication_date and platform-specific content data.

    • quote_id string

      The ID of the quote associated with this media coverage.

  • 400

    Returns an error if the policy_id parameter is missing or invalid.

  • 404

    Returns an error if the specified policy is not found.

  • 500

    Returns an error if there was an internal server error.

GET /api/v1/assignments/media
curl \
 --request GET 'https://api.1099policy.com/api/v1/assignments/media?policy_id=string'
Response examples (200)
[
  {
    "coverage_end_date": 1678334737,
    "created": 1646818364,
    "first_publication_date": 1646818364,
    "id": "string",
    "is_active": true,
    "published_content_json": [
      {}
    ],
    "quote_id": "qt_5DciVga8Kt"
  }
]