Skip to main content
GET
/
api
/
v2
/
public
/
application
/
event
Get all events
curl --request GET \
  --url https://api.gocobalt.io/api/v2/public/application/event \
  --header 'x-api-key: <api-key>'
[
    {
        "_id": "64c8d0e22f6f5ad7ce6b4a62",
        "name": "Add Contact",
        "response": [
            {
                "key": "first_name",
                "type": "text"
            },
            {
                "key": "last_name",
                "type": "text"
            },
            {
                "key": "email",
                "type": "text"
            },
            {
                "key": "phone",
                "type": "text"
            },
            {
                "key": "id",
                "type": "text"
            },
            {
                "key": "prospect",
                "type": "object"
            },
            {
                "key": "prospect.first_name",
                "type": "text"
            },
            {
                "key": "prospect.last_name",
                "type": "text"
            },
            {
                "key": "prospect.email",
                "type": "text"
            }
        ],
        "raw_response": "{\"first_name\":\"John\",\"last_name\":\"Doe\",\"email\":\"john.doe@example.com\",\"phone\":\"1234567890\",\"id\":\"9876543\",\"prospect\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"email\":\"john.doe@example.com\",\"phone\":\"1234567890\"}}"
    },
    {
        "_id": "64c8d0f92f6f5ad7ce6b4a6a",
        "name": "Delete Contact",
        "response": [
            {
                "key": "contact_id",
                "type": "text"
            },
            {
                "key": "app_contact_id",
                "type": "text"
            }
        ],
        "raw_response": "{\"contact_id\":\"64e4742936ee94ac84be2d35\",\"app_contact_id\":\"\"}"
    }
]
This API lists all Refold events of your org’s default app.

Response description

_id
string
Event Id
name
string
Name of the event
response
array
Array of response field objects derived from the event model
raw_response
string
Raw JSON string of the event payload
[
    {
        "_id": "64c8d0e22f6f5ad7ce6b4a62",
        "name": "Add Contact",
        "response": [
            {
                "key": "first_name",
                "type": "text"
            },
            {
                "key": "last_name",
                "type": "text"
            },
            {
                "key": "email",
                "type": "text"
            },
            {
                "key": "phone",
                "type": "text"
            },
            {
                "key": "id",
                "type": "text"
            },
            {
                "key": "prospect",
                "type": "object"
            },
            {
                "key": "prospect.first_name",
                "type": "text"
            },
            {
                "key": "prospect.last_name",
                "type": "text"
            },
            {
                "key": "prospect.email",
                "type": "text"
            }
        ],
        "raw_response": "{\"first_name\":\"John\",\"last_name\":\"Doe\",\"email\":\"john.doe@example.com\",\"phone\":\"1234567890\",\"id\":\"9876543\",\"prospect\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"email\":\"john.doe@example.com\",\"phone\":\"1234567890\"}}"
    },
    {
        "_id": "64c8d0f92f6f5ad7ce6b4a6a",
        "name": "Delete Contact",
        "response": [
            {
                "key": "contact_id",
                "type": "text"
            },
            {
                "key": "app_contact_id",
                "type": "text"
            }
        ],
        "raw_response": "{\"contact_id\":\"64e4742936ee94ac84be2d35\",\"app_contact_id\":\"\"}"
    }
]