cURL
curl --request POST \ --url https://www.useroulette.com/api/v1/companies/{id}/attachments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'title=<string>' \ --form account_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \ --form 'description=<string>'
{ "success": true, "data": { "attachment": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "attachment_type": "file", "title": "Financial Projections", "description": "Q4 2024 financial projections spreadsheet", "file_path": "company-uuid/attachment-uuid/document.pdf", "link_url": "<string>", "file_size_bytes": 123, "file_mime_type": "application/pdf", "original_filename": "Q4 Projections.xlsx", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } } }
Upload additional documents/attachments to a company (financials, legal docs, etc.).
API key authentication. Generate keys from your account settings.
Include in header: Authorization: Bearer YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY
The unique identifier of the company
File to upload
Attachment title
Optional description
Attachment uploaded
Show child attributes