Skip to content

Log in

Authentication
POSThttps://api.dcdial.com/api/type=login_user
Read onlyNo token needed

Exchanges a DCDial username and password for an API token. Send the token as the token field on every other request.

Parameters

Send as application/x-www-form-urlencoded.

  • typestringrequired

    Selects the operation. Always login_user for this endpoint.

  • userstringrequired

    Your DCDial username.

    Example jane.doe
  • passstringrequired

    Your DCDial password.

    Example your-password
  • hoursintegeroptional

    How long the token stays valid, in hours. Defaults to 12. Every authenticated request extends it.

    Example 12

Notes

Logins can be restricted to an IP allow-list per company. If your server gets an IP error, ask DCDial support to add its address.

Terminal window
curl https://api.dcdial.com/api/ \
-d type=login_user \
-d user=jane.doe \
-d pass="$DCDIAL_PASSWORD"
Response · 200 OK
{
"response": {
"success": 1,
"token": "3f0c2b9e…",
"full_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"mobile_number": "5550100123"
}
}

Try it

Environment