Integration
A connection to a third-party service or tool that your account uses to send or receive data.
GET /integrations
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/integrations
List Integration records.
Lists the third-party integrations configured for the company. Restricted to superusers with the integrations permission; supports filtering by ids and standard pagination.
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
|
PUT /integrations/objects/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/integrations/objects/:id
Update the status of an Integration Object.
Enables or disables a single synced object (an Integration Object) belonging to an integration, such as turning a connected item on or off. Requires the integrations permission.
Params
| Param name | Description |
|---|---|
|
active Optional |
Enable or disable an integration object.
|
GET /integrations/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/integrations/new
Build Integration with defaults.
Returns a blank Integration populated with default attributes for the given integration_type, without saving it. Use it to preview the fields required before creating one.
Params
| Param name | Description |
|---|---|
|
integration_type Optional |
Integration Type
|
|
name Optional Blank value allowed |
A friendly name for this integration, shown when managing your integrations.
|
|
description Optional Blank value allowed |
A note describing what this integration is used for.
|
|
public_key Optional Blank value allowed |
The public API key issued by the connected service, used to authenticate requests to it.
|
|
secret_key Optional Blank value allowed |
The secret API key issued by the connected service, used to authenticate requests to it.
|
|
pagerduty_integration_key Optional Blank value allowed |
The integration key (routing key) from your PagerDuty service, used to send it alerts.
|
|
slack_webhook_url Optional Blank value allowed |
The incoming webhook URL from your Slack workspace, used to post messages to it.
|
|
cache_expires_in Optional Blank value allowed |
The number of seconds a lookup result from this integration is cached before it is requested again.
|
|
always_trigger Optional Blank value allowed |
When true, this integration fires for every matching event instead of only events matching its trigger fields.
|
POST /integrations
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/integrations
Create Integration.
Creates a new Integration of the given integration_type for the company. Restricted to superusers with the integrations permission.
Params
| Param name | Description |
|---|---|
|
integration_type Optional |
Integration Type
|
|
name Optional Blank value allowed |
A friendly name for this integration, shown when managing your integrations.
|
|
description Optional Blank value allowed |
A note describing what this integration is used for.
|
|
public_key Optional Blank value allowed |
The public API key issued by the connected service, used to authenticate requests to it.
|
|
secret_key Optional Blank value allowed |
The secret API key issued by the connected service, used to authenticate requests to it.
|
|
pagerduty_integration_key Optional Blank value allowed |
The integration key (routing key) from your PagerDuty service, used to send it alerts.
|
|
slack_webhook_url Optional Blank value allowed |
The incoming webhook URL from your Slack workspace, used to post messages to it.
|
|
cache_expires_in Optional Blank value allowed |
The number of seconds a lookup result from this integration is cached before it is requested again.
|
|
always_trigger Optional Blank value allowed |
When true, this integration fires for every matching event instead of only events matching its trigger fields.
|
GET /integrations/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/integrations/:id
Get Integration by id.
Retrieves a single Integration by id, scoped to your company.
PUT /integrations/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/integrations/:id
Update Integration by id.
Updates an existing Integration's configuration by id, such as its credentials or connection settings.
Params
| Param name | Description |
|---|---|
|
integration_type Optional |
Integration Type
|
|
name Optional Blank value allowed |
A friendly name for this integration, shown when managing your integrations.
|
|
description Optional Blank value allowed |
A note describing what this integration is used for.
|
|
public_key Optional Blank value allowed |
The public API key issued by the connected service, used to authenticate requests to it.
|
|
secret_key Optional Blank value allowed |
The secret API key issued by the connected service, used to authenticate requests to it.
|
|
pagerduty_integration_key Optional Blank value allowed |
The integration key (routing key) from your PagerDuty service, used to send it alerts.
|
|
slack_webhook_url Optional Blank value allowed |
The incoming webhook URL from your Slack workspace, used to post messages to it.
|
|
cache_expires_in Optional Blank value allowed |
The number of seconds a lookup result from this integration is cached before it is requested again.
|
|
always_trigger Optional Blank value allowed |
When true, this integration fires for every matching event instead of only events matching its trigger fields.
|
DELETE /integrations/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/integrations/:id
Destroy Integration by id.
Permanently deletes an Integration by id, disconnecting it from your company.