Create Interaction Card

Create an Interaction Custom Card.

These endpoints are in beta testing. Some features may not work as documented or may behave unexpectedly.

Create a Card

POST https://{{account_id}}.acquire.io/api/v1/crm/view

Create an Interaction Custom Card. A contact_id with the contact's ID and a view object must be passed in to the body. See the body example for more information.

Headers

Request Body

{
    "data": {
        "success": true,
        "data": {
            "title": "this is canvas view",
            "contactId": 96,
            "view": {
                "type": "ui_block",
                "config": {
                    "canvas": {
                        "content": {
                            "components": [
                                {
                                    "type": "text",
                                    "text": "hello acquire",
                                    "style": "heading"
                                },
                                {
                                    "type": "input",
                                    "label": "my input box",
                                    "style": "paragraph",
                                    "id": "my_input",
                                    "value": "acquire"
                                }
                            ]
                        }
                    }
                }
            },
            "meta": {
                "iconImageUrl": "https://acquire.io/wp-content/themes/acquire/assets/images/common/acq-footer-black-logo.svg",
                "iconFont": "icon-ticket"
            },
            "userId": 24,
            "dateCreated": "2020-09-16T13:04:38.268Z",
            "id": 10
        },
        "message": "View added successfully."
    }
}

Body (raw)

{
    "title": "Interaction Cards",
    "meta": {
        "iconImageUrl": "https://acquire.io/wp-content/themes/acquire/assets/images/common/acq-footer-black-logo.svg",
        "iconFont": "icon-ticket"
    },
    "contact_id": "96",
    "view": {
        "type": "ui_block",
        "config": {
        "label": "mix sample",
        "canvas": {
            "content_url": true
        },
        "action_key": "test-json",
        "action_type": "initialize_tab",
        "iconImageUrl": "./assets/app-store/acquire_saml.svg",
        "initialize_url": "https://0ff32dabc277.ngrok.io/mix1-initialize"
    }
}

Last updated