Refuse a Call

Refuse a call ringing for the team member. The call ends for everyone it rang.

Refuses a call ringing for the team member. The call ends for everyone it rang.

Endpoint

POST https://public.doubletick.io/v1/call/person/{callId}/decline

Authentication

Include your API key in the Authorization header.

HeaderValue
Authorization<your-api-key>
Content-Typeapplication/json

📘

NOTE

If you do not have your DoubleTick API Key, you can obtain it by following this guide link.


Request Body

FieldRequiredNotes
agentNumberyesThe team member, by the phone number on their DoubleTick profile.

Example Request

curl -X POST https://public.doubletick.io/v1/call/person/{callId}/decline \
  -H 'Authorization: <your-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{ "agentNumber": "<team member number>" }'

Example Response

{
  "success": true,
  "message": "Call declined",
  "data": { ...the call... }
}

Things to Know

  • Only for a call ringing for the team member. To hang up a call that was answered, or the team member's own call out, use End (409 USE_END).
  • Safe to retry: on a call that is already over it answers 200 with the call.

Error Responses

Besides the errors on every route (see Errors in the Overview):

StatusreasonMessageWhen
404NOT_FOUNDCall not foundNo such team-member call in your organization.
401UNAUTHORIZEDYour organization does not have a calling license or add-on. Please contact [email protected]A WhatsApp call, and WhatsApp calling is not on your plan.
400ANSWERED_ON_PHONEThis call is on the agent's phone: answer, decline or rejoin it there.A PSTN call.
403AGENT_NOT_PERMITTEDThis team member cannot answer this call.The team member has no access to the call's chat.
403FORBIDDENThis call did not ring for youThe call did not ring this team member.
422—Call cannot be declined by a different userAnother team member has accepted it.
409USE_ENDOnly a call ringing for this team member can be declined: end it instead.An answered call, or a call out.

Rate Limit

60 a minute per organization and team member.


What’s Next

Keep polling so the team member is rung for the next call.

Did this page help you?