SIP Header
Custom SIP headers attached to a buyer, sent on the SIP leg of a call placed to that buyer.
GET /sip_headers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/sip_headers
List Sip Header records.
Lists the custom SIP headers configured for your account - key/value pairs Trackdrive sends to a buyer over SIP trunking when it connects a call. Supports the common index filters plus an ids filter, and defaults to newest-first ordering. Requires read permission on SIP headers.
Params
| Param name | Description |
|---|---|
|
ids Optional |
Return records matching these ids.
|
|
page Optional |
Return the next page of results.
|
|
per_page Optional |
How many results to return per page. The default is 25.
|
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
fulltext Optional |
Search for any record that matches this text
|
|
time_zone Optional |
Date ranges will be parsed using this time zone.
|
|
columns Optional |
Specify the columns you would like returned by the API for a given resource.
Limiting the columns can significantly increase API response time since only the requested data will be processed.
columns=uuid,number,created_at
Must be any combination of:
|
|
root Optional |
Pass
|
GET /sip_headers/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/sip_headers/new
Build Sip Header with defaults.
Returns an unsaved SIP header built from any submitted attributes and account defaults, without creating a record - useful for previewing values before calling create. Requires create permission on SIP headers.
Params
| Param name | Description |
|---|---|
|
id Optional Blank value allowed |
Id
|
|
buyer_id Optional Blank value allowed |
Buyer
|
|
key Optional Blank value allowed |
Key
|
|
value Optional Blank value allowed |
Value
|
|
token_value_ids Optional Blank value allowed |
Assign the internal ids for filtering.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
POST /sip_headers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/sip_headers
Create Sip Header.
Creates a SIP header tied to a specific buyer_id. Both key and value can contain token placeholders that Trackdrive resolves per call, and the value is treated as sensitive and URL-encoded when sent. Pass copy_id to clone an existing SIP header's attributes as a starting point. Requires create permission on SIP headers.
Params
| Param name | Description |
|---|---|
|
id Optional Blank value allowed |
Id
|
|
buyer_id Optional Blank value allowed |
Buyer
|
|
key Optional Blank value allowed |
Key
|
|
value Optional Blank value allowed |
Value
|
|
token_value_ids Optional Blank value allowed |
Assign the internal ids for filtering.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
GET /sip_headers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/sip_headers/:id
Get Sip Header by id.
Retrieves a single SIP header by id, scoped to your account. Requires read permission on SIP headers.
PUT /sip_headers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/sip_headers/:id
Update Sip Header by id.
Updates an existing SIP header's key, value, or associated buyer_id by id. Requires update permission on SIP headers.
Params
| Param name | Description |
|---|---|
|
id Optional Blank value allowed |
Id
|
|
buyer_id Optional Blank value allowed |
Buyer
|
|
key Optional Blank value allowed |
Key
|
|
value Optional Blank value allowed |
Value
|
|
token_value_ids Optional Blank value allowed |
Assign the internal ids for filtering.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
DELETE /sip_headers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/sip_headers/:id
Destroy Sip Header by id.
Soft-deletes the SIP header by id; the record is excluded from normal results but recoverable rather than permanently removed. Requires destroy permission on SIP headers.