Difference between revisions of "Twilio Call Log"
Ashley DeBon (talk | contribs) (Created page with "== Update End Call Details == === Base URL === https://apimobile.callproof.com === Endpoint === /api/end-call-details === Purpose === Updates details after a voice call end...") |
Ashley DeBon (talk | contribs) (→Successful Response (200)) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | == Update End Call Details == | + | == [[Mobile_API]] »Update End Call Details == |
=== Base URL === | === Base URL === | ||
| Line 43: | Line 43: | ||
| phone_number || string || No || Phone number used to locate the contact phone / call record; if omitted, the API attempts to resolve it from existing call data | | phone_number || string || No || Phone number used to locate the contact phone / call record; if omitted, the API attempts to resolve it from existing call data | ||
|} | |} | ||
| + | |||
| + | === cURL Example for Android === | ||
| + | |||
| + | <pre> curl --location 'https://apimobile.callproof.com/api/end-call-details' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "contact_id": "YOUR_CONTACT_ID", "contact_type_id": "YOUR_CONTACT_TYPE_ID", "notes": "", "phone_number": "" }' </pre> | ||
| + | |||
| + | === cURL Example for iOS === | ||
| + | |||
| + | <pre> curl --location 'https://apimobile.callproof.com/api/end-call-details' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "contact_id": "YOUR_CONTACT_ID", "contact_type_id": "YOUR_CONTACT_TYPE_ID", "notes": "", "phone_number": "" }' </pre> | ||
=== Successful Response (200) === | === Successful Response (200) === | ||
Latest revision as of 06:09, 21 July 2026
Mobile_API »Update End Call Details
Base URL
https://apimobile.callproof.com
Endpoint
/api/end-call-details
Purpose
Updates details after a voice call ends for a contact. Saves optional call notes on the latest related call record, sets the hang-up user on that call, and updates the contact’s contact type. An optional phone number can be used to target the correct contact phone / call record.
HTTP Method
POST
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer access token |
Security
- Yes – Requires Bearer Token authentication.
Parameters
Path Parameters
None.
Query Parameters
None.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| contact_id | string | Yes | Unique identifier of the contact associated with the call |
| contact_type_id | string | Yes | Contact type identifier to set on the contact |
| notes | string | No | Notes to save on the latest matching call record |
| phone_number | string | No | Phone number used to locate the contact phone / call record; if omitted, the API attempts to resolve it from existing call data |
cURL Example for Android
curl --location 'https://apimobile.callproof.com/api/end-call-details' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "contact_id": "YOUR_CONTACT_ID", "contact_type_id": "YOUR_CONTACT_TYPE_ID", "notes": "", "phone_number": "" }'
cURL Example for iOS
curl --location 'https://apimobile.callproof.com/api/end-call-details' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "contact_id": "YOUR_CONTACT_ID", "contact_type_id": "YOUR_CONTACT_TYPE_ID", "notes": "", "phone_number": "" }'
Successful Response (200)
Indicates that the end-call details were updated successfully.
| 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, "End call details updated successfully") |
| uri | string | Requested resource URI |
Error Responses
| Status Code | Meaning |
|---|---|
| 200 | Validation failed – response body uses clientStatusCode 401 with the first validation error message
|
| 400 | Bad Request – end-call details could not be updated |
| 401 | Unauthorized – missing, invalid, or expired Bearer token |
- Validation (HTTP 200, clientStatusCode 401) – Missing
contact_idorcontact_type_id, or invalidnotestype. - 400 – Contact not found ("Contact Not Found"), or another update error (for example, "Error while updating end call details").
- 401 – Authentication failed or the access token is missing/expired.