Merge Codes


Search

Search for merge codes.

Endpoint

Method URI Description
GET /users/{user_id}/merge_codes Search user owned merge codes

Example Response

[
    {
        "id": 1,
        "group": "CONTACT",
        "name": "Contact's First Name",
        "key": "{ {c.first_name} }",
        "created_at": "2020-07-06 00:32:59",
        "updated_at": "2020-07-06 00:32:59",
        "deleted_at": null
    },
    {
        "id": 2,
        "group": "CONTACT",
        "name": "Contact's Last Name",
        "key": "{ {c.last_name} }",
        "created_at": "2020-07-06 00:32:59",
        "updated_at": "2020-07-06 00:32:59",
        "deleted_at": null
    },
    {
        "id": 3,
        "group": "USER",
        "name": "User's First Name",
        "key": "{ {u.first_name} }",
        "created_at": "2020-07-06 00:32:59",
        "updated_at": "2020-07-06 00:32:59",
        "deleted_at": null
    },
    {
        "id": 4,
        "group": "USER",
        "name": "User's Last Name",
        "key": "{ {u.last_name} }",
        "created_at": "2020-07-06 00:32:59",
        "updated_at": "2020-07-06 00:32:59",
        "deleted_at": null
    }
]

Read

Retrieve an merge code.

Endpoint

Method URI Description
GET /merge_codes/{audience_email_id} Retrieve an merge code by it's id

Example Response

{
    "id": 1,
    "group": "CONTACT",
    "name": "Contact's First Name",
    "key": "{ {c.first_name} }",
    "created_at": "2020-07-06 00:32:59",
    "updated_at": "2020-07-06 00:32:59",
    "deleted_at": null
}