Simple API requests using curl on the command line


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » DirectAdmin » API and Plugins

Simple API requests using curl on the command lineLast Modified: Dec 31, 2014, 5:16 pm
If you want to make an API call from a script or shell, without using a more complicated class, curl can do it for you.
Here is a sample request to make an API request to DA, requesting the details of package unlimited.

Command
Data
IP
Port
SSL
method
User
Password

curl --request POST --user 'fred:password' --data 'package=unlimited' http://1.2.3.4:2222/CMD_API_PACKAGES_USER


© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST