sim-cardsGet All List Fields

Retrieve all subscriber fields (default and custom) for a specific list using its unique ID. Fields include metadata such as tag, label, type, visibility, and order.

๐Ÿงพ Get All List Fields

Retrieve all the custom and default fields defined in a specific subscriber list.

๐Ÿ”น HTTP Request

GET API-URL/lists/LIST-UNIQUE-ID/fields

๐Ÿ”ธ URL Segments

Segment
Required
Description

LIST-UNIQUE-ID

Yes

Unique identifier of the list.

๐Ÿ”ธ Query Parameters

Parameter
Default
Description

page

1

Current page number to retrieve.

per_page

10

Number of items to return per page.

๐Ÿ” Authorization Header

Include your customer API key:

X-API-KEY: your-api-key-here

๐Ÿ’ป PHP Example

// GET ALL ITEMS
$response = $endpoint->getFields('LIST-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';

๐Ÿ“ฆ Sample JSON Response


Last updated