Uploads
Create document upload
Creates an upload and returns a presigned url to upload the document data
Authorization
basic auth AuthorizationBasic <token>
Authorization header with value of Basic <auth string> where the auth string value
is a base64 encoded string of <client id>:<client secret>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
One of:
upload_type*UploadType
Value in
- "supporting_document"
- "third_party_policy"
content_type*string
Value in
- "application/pdf"
- "image/jpeg"
- "image/png"
- "image/heic"
- "image/tiff"
- "application/msword"
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
supporting_document_type*"COURT_ORDER"
Value in
- "COURT_ORDER"
policy_number*string
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/uploads" \ -H "Content-Type: application/json" \ -d '{ "supporting_document_type": "COURT_ORDER", "policy_number": "string", "upload_type": "supporting_document", "content_type": "application/pdf" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "http://example.com"}{ "error": "string", "error_code": "string", "message": "string", "reason": "string", "status": 0}