EmailmoversMyDataHub docs
Browse the docs

Reference / REST reference

Reference

List field sets

GET /v1/field-sets. The named bundles of fields an order can deliver, with their exact columns.

Generated from the contractsView as Markdown

GET /v1/field-sets

The named bundles of fields an order can deliver, with their exact columns. Every field set costs 1 credit a record: no telephone, export or API surcharge.

PropertyValue
EndpointGET https://mydatahub.emailmovers.com/v1/field-sets
Operation idlistFieldSets
CostFree (0 credits)
AccessNo account, key or token needed.
MCP toollist_field_sets
TagCatalogue

Request

Parameters

NameInTypeRequiredDescription
limitqueryinteger (1 to 100)noItems per page, 1 to 100. Default 25.
cursorquerystringnoAn opaque cursor from next_cursor. Pass it back unchanged.
MyDataHub-VersionheaderstringnoThe dated API version, pinned per key when left out. Non-breaking changes ship as new dates; the path major changes only for breaking changes, with a 12 month deprecation window.

Example request

curl "https://mydatahub.emailmovers.com/v1/field-sets"

Responses

200: A page of field sets.

Headers: RateLimit, RateLimit-Policy.

MemberTypeAlways presentDescription
dataarray of FieldSetyes
data[].idstringyesSuch as standard, standard_telephone or full.
data[].namestringyes
data[].descriptionstringyes
data[].credits_per_recordnumber (0 or more)yesEvery field set costs 1 credit a record.
data[].columnsarray of objectyes
has_morebooleanyesWhether another page follows.
next_cursorstring or nullyesPass as cursor to fetch the next page; null on the last page.

Example response

{
  "data": [
    {
      "id": "standard",
      "name": "Standard",
      "description": "Named email, postal address and company fields with Companies House number and SIC.",
      "credits_per_record": 1,
      "columns": [
        {
          "name": "first_name",
          "description": "First name"
        },
        {
          "name": "email",
          "description": "Named business email"
        },
        {
          "name": "companies_house_number",
          "description": "Companies House number"
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Errors

Every error is a problem object with a code and a next_step. Every response carries the RateLimit and RateLimit-Policy headers; see Rate limits.

StatusProblem codesWhen
400invalid-request, idempotency-key-required, unsupported-versionThe request could not be read, or an Idempotency-Key is missing.
422validation-failed, quote-required, dataset-unavailableThe request is not valid. errors lists every problem with a JSON pointer and did_you_mean.
429rate-limitedToo many requests. Wait for Retry-After.
Any other failureinternal-error, service-unavailable, tps-screen-expiredSomething failed on our side (500 internal-error) or the service is briefly unavailable (503 service-unavailable, with Retry-After). Nothing was charged; retry with the same Idempotency-Key. A count, sample, quote or order with telephone in play is also refused with 503 tps-screen-expired, with no Retry-After, while the dataset version's TPS and CTPS screen is more than 28 days old.