Retrieve Account Folders
get
/rest/api/v1.3/folders
Retrieves all folders in your account.
Request
Query Parameters
-
limit: integer
Number of folders to return in the response (defaults to 200 and cannot exceed 200)
-
offset: integer
Starts at 0 and indicates the record number for the response result set
Response
Supported Media Types
- application/json
Default Response
Root Schema : Retrieve Folders
Type:
objectTitle:
Show Source
Retrieve Folders-
folders(optional):
array folders
Array of Folders in an Account
Nested Schema : items
Type:
Show Source
object-
accountId(optional):
string
Account ID of the Folder.
-
createdBy(optional):
string
Folder Created by.
-
createdDate(optional):
string
Create Date of the Folder.
-
id(optional):
string
ID of the Folder.
-
modifiedBy(optional):
string
Last Modified by.
-
modifiedDate(optional):
string
Last Modified Date.
-
name(optional):
string
Name of the Folder.
-
new(optional):
boolean
Is the Folder a new Folder.
-
objectType(optional):
string
Type of the Object(Folder).
-
objSource(optional):
string
Folder Source.
-
status(optional):
string
Status of the Folder(A or D).
-
subType(optional):
string
SubType of the Folder.
Examples
Retrieve folders in your Responsys account.
| FIELDS | DESCRIPTION |
|---|---|
| Authorization | <AUTH_TOKEN> |
Sample Request:
Retrieve the first 2 folders within your account.
/rest/api/v1.3/folders?limit=2&offset=1
Sample Response: Success
{
"folders": [
{
"id": 14729180,
"subType": "GENERIC",
"name": "!!!!!!!!!!!!!DM630",
"objSource": "0",
"accountId": 1277,
"status": "A",
"createdBy": 105427,
"modifiedBy": 105427,
"createdDate": 1549275574000,
"modifiedDate": 1549275574000,
"objectType": "Folder",
"new": false
},
{
"id": 4729294,
"subType": "GENERIC",
"name": "!!!!!!!!!!!DssORMFolderExport",
"objSource": "0",
"accountId": 1277,
"status": "A",
"createdBy": 105427,
"modifiedBy": 105427,
"createdDate": 1540377035000,
"modifiedDate": 1540377035000,
"objectType": "Folder",
"new": false
}
],
"links": [
{
"rel": "self",
"href": "/rest/api/v1.3/folders?limit=2&offset=1",
"method": "GET"
},
{
"rel": "next",
"href": "/rest/api/v1.3/folders?limit=2&offset=3",
"method": "GET"
},
{
"rel": "prev",
"href": "/rest/api/v1.3/folders?limit=2&offset=0",
"method": "GET"
}
]
}
Example Response:Failure
{
"type": "",
"title": "Folder not found",
"errorCode": "FOLDER_NOT_FOUND",
"detail": "Folder [ folder_name ] not found.",
"errorDetails": []
}