Referrals
Create a new document upload
The uri will be a presigned S3 URL allowing you to upload the referral doc securely. This URL can only be used for a PUT operation and expires 30 minutes after its creation. Once your upload is complete, we will use this to prefill the application.
Refer to these docs on how to upload to this presigned S3 URL. We highly recommend using one of AWS SDKs if they're available for your language to upload these files.
post/v1/referrals/{id}/document_upload
Request
- Base URLhttps://api.brex.com
- AuthOAuth 2Client credentialsToken URLhttps://accounts-api.brex.com/oauth2/default/v1/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Request body
Response
Success
Example response
{
"uri": "https://brex-documents.s3.amazonaws.com/upload/abc123?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1234567890&Signature=example",
"id": "prefdoc_a1b2c3d4e5"
}Changes
No recorded changes to this operation across all 2 revisions of this API.