sendspace Developer | Documentation

Home
API Howto
Full API Guide
API Keys
Downloads
API Support

sendspace API (beta) Developer Guide

The sendspace Application Programming Interface (API) allows you to embed sendspace services in your applications, programs, or scripts, regardless of platform and programming language.

All communication with the sendspace API (beta) assumes a UTF-8 encoding.

 


< Return to Method List

Method: auth.createToken

Description
Obtains a new and random token per session. Required for login.
Arguments
Name Mandatory Description
api_key Yes Received from sendspace
api_version Yes Value must be: 1.0
app_version No Application specific, formatting / style is up to you
response_format No Value must be: XML
Returns
A token to be used with the auth.login method
Response
 
<result method="auth.createToken" status="ok">
    <token>xxxx</token>
</result>


Usage Example
 
http://api.sendspace.com/rest/?method=auth.createtoken&api_key=12DPC5Q11N&api_version=1.0&response_format=xml&app_version=0.1


Possible Errors
Code Name Description
5 API_ERROR_BAD_API_VERSION Unknown or unsupported API version
25 API_ERROR_OUTDATED_VERSION The application version you are using is too old. Please upgrade it.