Generating a Key for Private Content

You can generate a key for a private content item by sending the POST request to the following URL: /content/<content_item_id>/view_key.

Request Headers

Parameter Description
X-Auth-Account-Url (required) Base URL of the account, e.g. http://myaccount.ispringonline.com
X-Auth-Email (required) Administrator/Publisher e-mail address.
X-Auth-Password (required) Administrator/Publisher password.

After the request has been completed, the system returns the response with Code 200. The body of the response will contain the generated key.

Possible Response Codes

Code Text Description
403 Not allowed It's not a private content item, or its X-Is-Viewed-Once property is set to 0.
200 Ok The key for private content has been generated.

Sample Request

POST /content/1/view_key HTTP/1.1
Host: api.ispringonline.com
X-Auth-Account-Url: http://myaccount.ispringonline.com
X-Auth-Email: email@email.com
X-Auth-Password: password

Sample Response

HTTP/1.1 200 OK
Server: nginx
Connection: close

<view_key>