Content

Get a content item's CTA selection

Returns which call-to-action (CTA) template a content-engine content item carries when it is published: the org's default template (default), a specific template (template), or no CTA (none). An item whose selection has never been set reports default with no timestamps. template holds the template the selection resolves to — omitted when the selection is none, or when it is default and the org has no default template. Only content-engine content has a CTA selection; other content items return 404. Requires the GEO product.

get/org/content/{id}/cta

Request

  • Base URL
    https://apiv2.senso.ai/api/v1
  • Auth
    API key in header X-API-Key

Path parameters

idstring uuid required

The content item's id.

Response

The content item's CTA selection.

content_idstring uuid required
org_idstring uuid required
selection_type'default' | 'template' | 'none' required

default (the org's default template), template (a pinned template), or none (no CTA). An item whose selection has never been set reports default. A pinned template that later becomes the org default reads back as default, and items that were live and using the org default when that default was cleared read none.

cta_idstring uuid

The pinned template's id. Present only when selection_type is template.

updated_bystring uuid

The user who last set the selection. Present only when a user last set it; omitted when the selection has never been set, was last set with an API key, or was last changed automatically.

created_atstring date-time

When the selection was first set. Omitted when it has never been set.

updated_atstring date-time

When the selection was last changed. Omitted when it has never been set.

Changes

No recorded changes to this operation across all 1 revision of this API.