---
title: "To get file from the specific field of the given record id"
method: POST
path: "/api/Public/recordfile"
tags: ["Public"]
---

# To get file from the specific field of the given record id

`POST /api/Public/recordfile`

## Request

- Base URL: `https://apidocs.cflowapps.com` (the document declares no server; this is the origin it was published from)
- URL: `https://apidocs.cflowapps.com/api/Public/recordfile`
- Auth: API key in header `X-Api-Key` and API key in header `X-User-Key`
- TypeScript: <https://skmtc.dev/cflowapps/apis/cflow-public-api/docs/api/Public/recordfile/post.ts> (a function with typed inputs; its response is checked against the schema)

Sample request:
   
    POST 
    {
         "WorkflowName":"Test Workflow",
         "StageName":"Manager Approval",
         "RecordId": "10",
         "IsFileField" : true, // true for file field, false for signature field
         "FieldName":"File Uploader"   // Name of the file or signature field
    }

## Request body

- RecFileReqDto
  - `workflowName` string, required: Name of the workflow / lookup
  - `stageName` string, required: For workflows, enter the workflow stage display name as stage name. For lookup workflows, enter the lookup name as the stage name
  - `recordId` integer, required: Record Id
  - `isFileField` boolean, required: File Type
  - `fieldName` string, required: Name of the file fieldname

## Response `200`

Return file data

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Record not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/cflowapps/apis/cflow-public-api.md) - [All operations](https://skmtc.dev/cflowapps/apis/cflow-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cflowapps/apis/cflow-public-api/revisions/af0dadd0ad10?raw)
