Skip to the page

Create contact property

Names a value every contact can hold, with its type and what to use when a contact has none. From then on a value of another type is refused, and a broadcast fills {{key}} with the value or the fallback.

contact_properties_create
Needs the scopeaudiences:write
Changes data

Arguments

  • keystringRequired

    The name of the property, such as plan: letters, digits and underscores. Up to 48 characters.

  • typestring

    What its values are: string, number or boolean. Without it, string.

    One ofstringnumberboolean

  • fallbackstring | number | boolean | null

    What fills {{key}} for a contact with no value. Without it, nothing. Default: null.

Returns

The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

  • object"contact_property"

    Always contact_property.

  • idstring

    The id of the property.

  • keystring

    The name contacts hold a value under, and the name of its {{slot}}.

  • typestring

    What its values are: string, number or boolean.

    One ofstringnumberboolean

  • fallbackstring | number | boolean | null

    What fills its slot for a contact with no value, or null.

  • createdAtstring

    When the property was made.