Skip to content

GET /v1/projects/{id}/platforms/whatsapp/assignments

Lists the project's WhatsApp shared line assignments, oldest first. Released assignments are excluded unless includeReleased is set. Requires the platforms:read permission bound to the project resource in the path.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.platforms.listWhatsappSharedLineAssignments({
  path: {
    id: "id",
  },
});
{
  "assignments": [
    {
      "assignedPhoneNumber": "string",
      "assignmentId": "string",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "email": "string",
      "firstName": "string",
      "handle": "string",
      "lastName": "string",
      "optIn": {
        "receivedAt": "2026-01-01T00:00:00.000Z",
        "state": "pending"
      },
      "platform": "imessage",
      "projectId": "string",
      "releasedAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "nextPageToken": "string"
}

Parameters

Photon-VersionPhotonVersion

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

idstringrequired
includeReleasedstring
pageSizeinteger
pageTokenstring

Returns

200 A page of WhatsApp shared line assignments. SharedLineAssignmentPage

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

assignmentsarray of SharedLineAssignmentrequired
nextPageTokenstring

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: ETag, Photon-Version. The raw response carries these headers; see Raw responses.