Media Types

By default, Cryptolens Web API returns JSON formatted objects. The the most basic result always contains a message and a result. In rare cases, only a message is returned, in which case a server error has occured.

Message Pack

All controllers support MessagePack format. It can be requested by setting the content type to application/x-msgpack.

Plain Text

In some methods, it is also possible to get the result as plain text. At the time of writing, only the Create Key method supports this type fully. You can request plain text by either:

  1. setting content type to text/plain
  2. setting query string paramter format to plaintext