Skip to content

GET /v1/projects/{id}/platforms/sms/lines/{resourceId}/campaign

Read the last confirmed campaign and current eligibility. Follow changes through their operations. Eligibility is a control-plane assessment, not a delivery or recipient-consent guarantee.

photon.projects.platforms.getSmsLineCampaignAssignment(input: GetSmsLineCampaignAssignmentInput, options?: RequestOptions): Promise<GetSmsLineCampaignAssignmentOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.getSmsLineCampaignAssignment({
  path: {
    id: "id",
    resourceId: "resourceId",
  },
});
{
  "campaign": null,
  "eligibility": "eligible",
  "reasonCode": null,
  "resourceId": "string",
  "version": 1
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

idstringrequired
resourceIdstringrequired

Returns

200 Current assignment, including an untouched version of 1. GetSmsLineCampaignAssignmentResponse

Headers: Cache-Control, ETag, Photon-Version. The raw response carries these headers; see Raw responses.

campaignSmsLineCampaign | nullrequired
eligibilitySmsLineCampaignEligibilityrequired
reasonCodestring | nullrequired
resourceIdstringrequired
versionintegerrequired

304 Not Modified. Sent only when If-None-Match matches the ETag of an earlier 200 response for the same representation; no body. No body.

Headers: Cache-Control, ETag, Photon-Version. The raw response carries these headers; see Raw responses.