Describe a Document Before Uploading
Changed onThe document upload API is a two-step process. First, the metadata for the document is specified, and the API returns a file identifier so the file can be streamed directly to the next endpoint. You’ll need to look for the document_token returned in the response because that is necessary to pass to the next endpoint for streaming the file.
Request
- Base URLhttps://sandbox.alloy.co/v1
- Auth
- OAuth 2Client credentialsToken URL/oauth/bearer
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "license_photo",
"extension": "jpg",
"type": "license",
"note": "This is a license photo",
"note_author_agent_email": "cool_agent@fakedomain.net"
}Response
Document
Changes
- breaking
removed the enum value
1065.00of the request property - breaking
removed the enum value
1099.00of the request property - breaking
removed the enum value
1120.00of the request property - info
added the new
1065enum value to the request property - info
added the new
1099enum value to the request property - info
added the new
1120enum value to the request property - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking