Uploads a single file and returns its id. Attach the file to the resource it belongs to within 24 hours; an unattached file is deleted after that.
Security
form_session or user_session or component_session or component_token or api_token
- Mock serverhttps://docs.onboarded.com/_mock/openapi/api/v1/files
- Onboarded Production Serverhttps://app.onboarded.com/api/v1/files
curl -i -X POST \
'https://docs.onboarded.com/_mock/openapi/api/v1/files?purpose=oob_task_pdf' \
-H 'Authorization: Bearer <YOUR_Onboarded form session token_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F file=stringFileUploadResponse
Response
{ "id": "f_01k5vmjjhq2wzt8b6rnq4c9xye", "file_name": "string", "mime_type": "string", "size": 0, "purpose": "oob_task_pdf", "created_at": "string" }