1. Home
  2. Docs
  3. API Connection Guidelines
  4. Content Management
  5. Get item

Get item

Gets the details of a file or folder.
Scriptation will update the item if the revision number is different than the stored one.
GET https://yoursite.com/your_api_path/items/{item-id}

Parameters
id (string) The unique identifier that represents an item.

Response
Returns a 200 OK response code and the item resource in the response body.

File example of the response.
Content-type: application/json

{
  "id": 12345,
  "type": "file",
  …
 (see File definition for details) 
}

Folder example of the response.
Content-type: application/json

{
  "id": 12346,
  "type": “folder”,
  …
 (see Folder definition for details) 
}

Error response
The error response is a single JSON object that contains a single property named error. Here is an example of a full JSON error body:

{
   "error": {
        "code": 123,
        "message": “Error description"  
   }
}