This API will soon be deprecated. Please use another API.

    Get Folder Name

    Gets a specified folder's name.

    API Type

    Service API

    Request URL

    https://apis.worksmobile.com/{API ID}/mail/getFolder

    HTTP Method

    POST(Content-Type: application/x-www-form-urlencoded; charset=UTF-8)

    Request

    Parameter Type Required Description
    folderSN String Y Folder serial number

    Request Example

    https://apis.worksmobile.com/{API ID}/mail/getFolder
    

    Response

    It returns the value of the "data" property which contains the results when the API call succeeds.

    Property Type Required Description
    message String Y Indicates whether successful or not.
    ● Success: "success"
    ● Failure: Error code
    code String Y Code that indicates whether successful or not.
    ● Success: "000"
    ● Failure: Any integer excluding "000"
    data Integer N Folder name

    Response Example

    {"message":"success","data":Inbox,"code":"000"}
    

    It returns an error code and message when the API call fails (refer to Response Common).

    Error Code Error Message Description
    100 Invalid parameter, Please check folderSN Invalid folderSN
    999 SYSTEM_ERROR Internal error