This method will simply return a list of your routes and their ids.
key (required) - your API key
curl -F "key=YOURAPIKEY"\
"https://api.dlvrit.com/1/routes.xml"
<?xml version="1.0" encoding="utf-8" ?>
<response status="fail">
<error code="1" msg="Authentication Failure." />
</response>
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<routes>
<route id="100" name="Route 1" />
</routes>
</response>
This method will simply return a list of your output accounts and their ids.
key (required) - your API key
curl -F "key=YOURAPIKEY"\
"https://api.dlvrit.com/1/accounts.xml"
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<accounts>
<account id="1" name="Account 1" service="ServiceName" url="http://www.example.com/accountid"/>
</accounts>
</response>
This method will post a message to all the outputs of a route or Queue.
key (required) - your API keyid (required) - route or queue idmsg (required) - messageshared (optional) - [0/1 - default 0] use shared url where applicabletitle (optional) - title to use if shared is setmedia (optional) - uploaded image or video (requires POST w/ multipart encoding)queue (optional) - if set to '1', post to the social Qposttime (optional) - a future post time (only for Qs) in UNIX time formatorder (optional) - 'first' or 'last', to specifiy order in Q
curl -F "key=YOURAPIKEY" \
-F "id=100" \
-F "msg=HELLOworld" \
-F "media=@filename.jpg" \
"https://api.dlvrit.com/1/postToRoute.xml"
If posting is partially successful for a route, the accounts that failed will be indicated (and could be retried via postToAccount).
<?xml version="1.0" encoding="utf-8"?>
<response status="fail">
<account id="1" msg="Post Failed." />
</response>
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<route id="100" msg="posted" />
</response>
This method will post a message to an output account.
key (required) - your API keyid (required) - account idmsg (required) - messageshared (optional) - [0/1 - default 0] use shared url where applicabletitle (optional) - title to use if shared is setmedia (optional) - uploaded image or video (requires POST w/ multipart encoding)queue (optional) - if set to '1', post to the social Qposttime (optional) - a future post time (only for Qs) in UNIX time formatorder (optional) - 'first' or 'last', to specifiy order in Q
curl -F "key=YOURAPIKEY" \
-F "id=1" \
-F "msg=HELLOworld" \
-F "media=@filename.jpg" \
"https://api.dlvrit.com/1/postToAccount.xml"
<?xml version="1.0" encoding="utf-8"?>
<response status="ok">
<account id="1" msg="posted" />
</response>
This method will return a shortened version of a url.
key (required) - your API keyurl (required) - long url
curl -F "key=YOURAPIKEY" \
-F "url=http://www.google.com" \
"https://api.dlvrit.com/1/shorten.xml"
<response status="ok">
<shorten long="http://google.com" short="http://dlvr.it/YTV"/>
</response>
http://dlvr.it/YTV
| Error | Message |
| 0 | |
| 1 | Unexpected Error. |
| 2 | Database Failure. Try Again. |
| 3 | Missing / Invalid API Key. |
| 4 | Authentication Failure. |
| 5 | Transaction Limit Reached |
| 6 | Permission Denied. |
| 7 | Unknown method |
| 101 | Missing / Invalid Route. |
| 102 | Missing / Invalid Account. |
| 103 | Missing / Invalid Message. |
| 104 | Missing / Invalid URL. |
| 105 | Invalid shorten account or URL. |
| 106 | Image too large or wrong type. |
| 107 | Method only available to paid subscribers |
| 999 | dlvr.it is currently offline |