APIs

Click the button below to redirect to Postman

Run In 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

Name
Type
Description

folder_id

integer

The folder id

Headers

Name
Type
Description

Authorization

string

Bearer Token

{
  "success": true,
  "data": {
    "folder": {
      "id": "1690",
      "name": "Cats",
      "parent": "0"
    }
  }
}

Get Folders

GET https://your-site.com/wp-json/filebird/public/v1/folders

This endpoint allows you to get folders

Headers

Name
Type
Description

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

Name
Type
Description

Authorization

string

Bearer Token

Request Body

Name
Type
Description

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

Name
Type
Description

folder_id

integer

Your Folder Id

Headers

Name
Type
Description

Authorization

string

Bearer Token

Add attachment(s) to folder

POST https://your-site.com/wp-json/filebird/public/v1/folder/set-attachment

Headers

Name
Type
Description

Authorization

string

Bearer Token

Request Body

Name
Type
Description

folder

number

The folder id

ids

number

The attachment ID, it could be a number or an array

set folder = 0 to move images from those folders to Uncategorized

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?