List Teams

Endpoint

GET https://api.callingly.com/v1/teams?account_id=1

Sample Response

[
    {
        "id": 123,
        "account_id": 1,
        "name": "Main Team"
    }
]

Get Team

Endpoint

GET https://api.callingly.com/v1/teams/{{id}}?account_id=1

Sample Response

{
    "id": 123,
    "account_id": 1,
    "name": "Main Team",
    "is_record": 1,
    "call_mode": "simultaneous",
    "whispertext": "Please press 1 to connect to {first_name} {last_name} from {company} {category}",
    "post_whispertext": "Your call has been completed. Press 1 if you were able to reach the lead. Press 2 if you left a voicemail. Press 3 otherwise to reschedule the call.",
    "language": "en",
    "delay": 0,
    "is_retry": 1,
    "retries": 3,
    "retry_schedule": [
        15,
        60,
        120
    ],
    "is_reschedule": 1,
    "is_retry_lead": 1,
    "lead_retries": 3,
    "lead_retry_schedule": [
        15,
        60,
        120
    ],
    "is_sms": 0,
    "sms_body": ""
}

Create Team

Endpoint

POST https://api.callingly.com/v1/teams

Sample Request

{
    "account_id": 1,
    "name": "New Team",
    "is_record": 1,
    "call_mode": "simultaneous",
    "whispertext": "Please press 1 to connect to {first_name} {last_name} from {company} {category}",
    "language": "en",
    "delay": 0,
    "is_retry": 1,
    "retries": 3,
    "retry_schedule": [
        15,
        60,
        120
    ],
    "is_reschedule": 1,
    "is_retry_lead": 1,
    "lead_retries": 3,
    "lead_retry_schedule": [
        15,
        60,
        120
    ]
}

Update Team

Endpoint

PUT https://api.callingly.com/v1/teams/{{id}}

Sample Request

{
    "name": "Main Team",
    "is_record": 1,
    "call_mode": "simultaneous",
    "whispertext": "Please press 1 to connect to {first_name} {last_name} from {company} {category}",
    "post_whispertext": "Your call has been completed. Press 1 if you were able to reach the lead. Press 2 if you left a voicemail. Press 3 otherwise to reschedule the call.",
    "language": "en",
    "delay": 0,
    "is_retry": 1,
    "retries": 3,
    "retry_schedule": [
        15,
        60,
        120
    ],
    "is_reschedule": 1,
    "is_retry_lead": 1,
    "lead_retries": 3,
    "lead_retry_schedule": [
        15,
        60,
        120
    ],
    "is_sms": 0,
    "sms_body": ""
}

List Agents

Endpoint

GET https://api.callingly.com/v1/teams/{{id}}/agents?account_id=1

Sample Response

{
"agents": [
{
"id": 1,
"name": "John Smith",
"priority": 1,
"cap": null
},
{
"id": 2,
"name": "Test Test",
"priority": 1,
"cap": 1000
},
{
"id": 3,
"name": "Jane Smith",
"priority": 2,
"cap": null
}
]
}

Update Agents

Endpoint

PUT https://api.callingly.com/v1/teams/{{id}}/agents?account_id=1

Sample Request

{
"agents": [1,3,5]
}

Update Agent Settings

Endpoint

PUT https://api.callingly.com/v1/teams/{{id}}/agents/{{agent_id}}?account_id=1

Sample Request

{
"priority": 1,
"cap": 100
}
Did this answer your question?