« Back to Documentation Overview

get_contact_goals

Section: Contacts
Version: 1.5.0


List dates when the goals were reached by contacts.

Note that if a contact reached the same goal multiple times only newest date is listed.

Hint: If you want to keep goals synchronized with external database, then setting goal callback is much more efficient than querying this method periodically.


Parameters
stringAPI_KEY
object
stringcontactCONTACT_ID
Return Value
stringGOAL_ID2010-01-02 00:00:00

Example Request JSON

[
    "API_KEY",
    {
        "contact": "CONTACT_ID"
    }
]

Example Response JSON

{
    "GOAL_ID": "2010-01-02 00:00:00"
}

Example Error Response JSON

{
    "code": -1,
    "message": "Missing contact"
}
Method-specific Errors
Missing contact
API-wide Errors
API key verification failed API key verification failed
API client IP not allowed API client IP not allowed
Invalid params Attribute params must be reference to hash