APIs
Click the button below to redirect to Postman
Get Folder Detail
GET https://your-site.com/wp-json/filebird/public/v1/folder/?folder_id=
Get detail of folder by folder_id
Query Parameters
folder_id
integer
The folder id
Headers
Authorization
string
Bearer Token
{
"success": true,
"data": {
"folder": {
"id": "1690",
"name": "Cats",
"parent": "0"
}
}
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}Get Folders
GET https://your-site.com/wp-json/filebird/public/v1/folders
This endpoint allows you to get folders
Headers
Authorization
string
Bearer Token
Create New Folder
POST https://your-site.com/wp-json/filebird/public/v1/folders
This endpoint allows you to create new folder.
Headers
Authorization
string
Bearer Token
Request Body
name
string
Your folder name.
parent_id
integer
The parent id of your folder. 0 for parent.
Get Attachment Ids by Folder Id
GET https://your-site.com/wp-json/filebird/public/v1/attachment-id/?folder_id=
This endpoint allows you to get Attachment IDs by folder_id
Query Parameters
folder_id
integer
Your Folder Id
Headers
Authorization
string
Bearer Token
Add attachment(s) to folder
POST https://your-site.com/wp-json/filebird/public/v1/folder/set-attachment
Headers
Authorization
string
Bearer Token
Request Body
folder
number
The folder id
ids
number
The attachment ID, it could be a number or an array
Get Attachment Count by Folder Id
GET https://your-site.com/wp-json/filebird/public/v1/attachment-count/?folder_id=
folder_id=-1 for All Folder
folder_id=0 for Uncategorized Folder
Last updated
Was this helpful?