Update the recommended followup on email action
Trigger Email Action on Followup Recommendation
Base URL
https://apimobile.callproof.com
Endpoint
/api/contacts/{id}/trigger-email-action
Purpose
Records that the authenticated user has taken an email follow-up action for a recommended contact. This marks the related follow-up recommendation as completed for that contact so it no longer appears as a pending suggestion.
HTTP Method
POST
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer access token |
Security
- Yes – Requires Bearer Token authentication.
Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Unique identifier of the contact for which the email follow-up action is being recorded |
Query Parameters
None.
Request Body
None.
cURL Example for Android
curl --location --request POST 'https://apimobile.callproof.com/api/contacts/{id}/trigger-email-action' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
cURL Example for iOS
curl --location --request POST 'https://apimobile.callproof.com/api/contacts/{id}/trigger-email-action' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Successful Response (200)
Indicates that the email follow-up action was recorded successfully for the specified contact’s recommendation.
| Field | Type | Description |
|---|---|---|
| clientStatusCode | integer | Status indicator for the client (for example, 200) |
| user_id | integer | Identifier of the authenticated user |
| company_id | integer | Identifier of the authenticated user’s company |
| message | string | Confirmation message (for example, "Email action triggered successfully.") |
| uri | string | Requested resource URI |
Error Responses
| Status Code | Meaning |
|---|---|
| 400 | Bad Request – the email follow-up action could not be completed successfully |
| 401 | Unauthorized – missing, invalid, or expired Bearer token |
- 400 – The service could not update the follow-up recommendation for the given contact.
- 401 – Authentication failed or the access token is missing/expired.