PUT /api/v1/secure/:secure_token/calls/:uuid
Update a call with td_secure_token and td_uuid passed in a call's SIP headers.

Supported Formats

json

Examples

curl -i -X PUT "https://[your-subdomain].trackdrive.net/api/v1/secure/11111111035c9a8287c2e413a03fb32051f620e0/calls/77777777-dbe3-49ee-b28f-115ec80dcef9?revenue=10&buyer_converted=true"

Params

Param name
Description
secure_token
required

The secure token used to authorize access to an individual object. Must be 40 characters.

  • Must match regular expression /.{40}/.

uuid
required

A unique identifier eg: 5cc8897c-ad0f-44cb-8ea7-8f7736ae76f1

  • Must be String

revenue
optional

The revenue paid out for the call.

  • Must be a decimal number.

buyer_converted
optional

Did the buyer convert?

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off


DELETE /api/v1/secure/:secure_token/calls/:uuid
Hang up an ongoing call using a td_secure_token and td_uuid passed in a call's SIP headers.

Supported Formats

json

Examples

curl -i -X DELETE "https://[your-subdomain].trackdrive.net/api/v1/secure/11111111035c9a8287c2e413a03fb32051f620e0/calls/77777777-dbe3-49ee-b28f-115ec80dcef9"

Params

Param name
Description
secure_token
required

The secure token used to authorize access to an individual object. Must be 40 characters.

  • Must match regular expression /.{40}/.

uuid
required

A unique identifier eg: 5cc8897c-ad0f-44cb-8ea7-8f7736ae76f1

  • Must be String