Agent Wizard
Creates an agent account, including its contact details and call center, through a simplified setup wizard.
GET /schedule_agents
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_agents
List Agent Wizard records.
Lists the agents created via the Agent Wizard, which provisions call-center or quality-assurance agent user accounts along with their supporting records.
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 /schedule_agents/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_agents/new
Build Agent Wizard record with defaults.
Builds an Agent Wizard record with default attributes without saving it.
POST /schedule_agents
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_agents
Create Agent with Wizard.
Creates a new agent, and its underlying user account, via the Agent Wizard. Specify buyer_type (quality_assurance or buyer) and whether the agent is internal; internal agents only have access to your company and sign in with a random password. When the caller is an administrator or manager, this response returns it once as internal_password; store it, since no other response includes it. Send attribution_token_values to set the agent's Extra Tokens.
Params
| Param name | Description |
|---|---|
|
first_name Required |
First Name
|
|
email Optional Blank value allowed |
|
|
is_internal Optional Blank value allowed |
Internal agents only have access to your company. The create response returns the agent’s password once as internal_password to an administrator or manager; an administrator or manager can generate a new one on the agent’s page.
|
|
buyer_type Optional Blank value allowed |
What type of Agent is this? Either quality_assurance or buyer
|
|
internal_username Optional Blank value allowed |
Username
|
|
last_name Optional Blank value allowed |
Last Name
|
|
company_name Optional Blank value allowed |
Company Name
|
|
phone_number Optional Blank value allowed |
Phone Number
|
|
address_state Optional Blank value allowed |
Address State
|
|
address_city Optional Blank value allowed |
Address City
|
|
address_country Optional Blank value allowed |
Address Country
|
|
address_zip Optional Blank value allowed |
Address Zip
|
|
address_line1 Optional Blank value allowed |
Address Line1
|
|
address_line2 Optional Blank value allowed |
Address Line2
|
|
call_center_id Optional Blank value allowed |
Does this agent belong to a call center?
|
|
profile_image Optional Blank value allowed |
A photo to display on the agent’s profile, 200px by 200px.
|
|
remove_profile_image Optional Blank value allowed |
Set to true to remove the agent’s existing profile photo.
|
|
agent_number Optional Blank value allowed |
The phone number or SIP address calls are forwarded to for this agent.
|
|
number_id Optional Blank value allowed |
The phone number shown as the caller ID to consumers when this agent places outbound calls.
|
|
attribution_token_values Optional Blank value allowed |
The agent’s Extra Tokens, which calls answered by the agent are tagged with, as a list or a comma-separated string of key:value pairs, such as [“center:north”, “tier:gold”]. They replace the agent’s Extra Tokens; an empty list or empty string clears them, and null leaves them unchanged. An entry that is not one key:value pair, or whose value its token cannot store, refuses the request with 422. Sending this field needs the Setup System permission and, on an API key, Buyers access. Until the agent’s buyer is created, buyer_id is null and the response shows the tokens that will be applied to it.
|
GET /schedule_agents/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_agents/:id
Get Agent Wizard record by id.
Gets an Agent Wizard record's details by id.
PUT /schedule_agents/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_agents/:id
Update Agent Wizard record by id.
Updates an agent created via the Agent Wizard, such as their contact details, call center assignment or Extra Tokens (attribution_token_values).
Params
| Param name | Description |
|---|---|
|
first_name Optional Blank value allowed |
First Name
|
|
is_internal Optional Blank value allowed |
Internal agents only have access to your company. The create response returns the agent’s password once as internal_password to an administrator or manager; an administrator or manager can generate a new one on the agent’s page.
|
|
buyer_type Optional Blank value allowed |
What type of Agent is this? Either quality_assurance or buyer
|
|
internal_username Optional Blank value allowed |
Username
|
|
last_name Optional Blank value allowed |
Last Name
|
|
company_name Optional Blank value allowed |
Company Name
|
|
phone_number Optional Blank value allowed |
Phone Number
|
|
address_state Optional Blank value allowed |
Address State
|
|
address_city Optional Blank value allowed |
Address City
|
|
address_country Optional Blank value allowed |
Address Country
|
|
address_zip Optional Blank value allowed |
Address Zip
|
|
address_line1 Optional Blank value allowed |
Address Line1
|
|
address_line2 Optional Blank value allowed |
Address Line2
|
|
call_center_id Optional Blank value allowed |
Does this agent belong to a call center?
|
|
profile_image Optional Blank value allowed |
A photo to display on the agent’s profile, 200px by 200px.
|
|
remove_profile_image Optional Blank value allowed |
Set to true to remove the agent’s existing profile photo.
|
|
agent_number Optional Blank value allowed |
The phone number or SIP address calls are forwarded to for this agent.
|
|
number_id Optional Blank value allowed |
The phone number shown as the caller ID to consumers when this agent places outbound calls.
|
|
attribution_token_values Optional Blank value allowed |
The agent’s Extra Tokens, which calls answered by the agent are tagged with, as a list or a comma-separated string of key:value pairs, such as [“center:north”, “tier:gold”]. They replace the agent’s Extra Tokens; an empty list or empty string clears them, and null leaves them unchanged. An entry that is not one key:value pair, or whose value its token cannot store, refuses the request with 422. Sending this field needs the Setup System permission and, on an API key, Buyers access. Until the agent’s buyer is created, buyer_id is null and the response shows the tokens that will be applied to it.
|
DELETE /schedule_agents/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_agents/:id
Destroy Agent Wizard record by id.
Deletes an agent created via the Agent Wizard.