API

API mub | Workflow - File download workflow BP

This article is itended to document the API mub | Filedownload BP Route: GET => http://api.mub.cloud/api/v2/file/download/ {object}/{workflow_generals_id}/{bp_aux_document_type_id}?format=base64 API Field Field Type D…

Moises ScarpinPublicado 08 de fev. de 20241 min de leitura

This article is itended to document the API mub | Filedownload BP

Route: GET => http://api.mub.cloud/api/v2/file/download/{object}/{workflow_generals_id}/{bp_aux_document_type_id}?format=base64

API Field Field Type Description, example.
object String Example: "workflow_bp_documents"
workflow_generals_id Number Example: 334
bp_aux_document_type_id Number Example: 1.
 

See below full object of request and expected response.

Request example:

http://api.mub.cloud/api/v2/file/download/workflow_bp_documents/334/1?format=base64

Response example:

{
    "success": true,
    "message": "File Download successfully!",
    "data": [
        {
            "name": "618d1e66f1aee.xlsm",
            "file": "<ARQUIVO_EM_BASE_64>
        }
    ]
}