Upload File

Uploads a file to LawPanel's servers.


Calls to this method must include the cookie .LawPanel.AuthCookie in order to identify you at user level. For more details about authentication please check this link. To obtain the cookie you can use the method Login.

Request URL

Request headers

Subscription key which provides access to this API.

Request body

Payload must contain information about the file to be uploaded. Payload must be a multipart-form with a param named "file" containing the file to be uploaded.

  • string Required file: The file to be uploaded.
  • bool Optional force_download: If you set this property to "true" files uploaded will not be opened on the browser, they'll be forced to be downloaded.

Content-Disposition: form-data; name="file"; filename="a.txt"
Content-Type: text/plain

This is the content of a.txt.


Response 200

Returns a JSON structure with details about the file uploaded.

  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    "url": {
      "type": "string"
    "size": {
      "type": "integer"
    "name": {
      "type": "string"
    "ext": {
      "type": "string"
    "mime_type": {
      "type": "string"
* See getting started for more information on how to use this API. You can also check the API change history.