Document
Create document
Changed onCreate a new document object.
Use this API call to create a document without an annotation. Suitable for creating documents for mime types that cannot be extracted by Rossum. Only one document can be created per request.
The supported mime types are the same as for document import.
post/api/v1/documents
Request
- Base URLhttps://example.rossum.app
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Example request
{
"metadata": {
"some_key": "some_value"
}
}Response
Created
Example response
{
"id": 314628,
"url": "https://example.rossum.app/api/v1/documents/314628",
"s3_name": "272c2f01ae84a4e19a421cb432e490bb",
"parent": "https://example.rossum.app/api/v1/documents/203517",
"email": "https://example.rossum.app/api/v1/emails/1234",
"annotations": [
"https://example.rossum.app/api/v1/annotations/314528"
],
"mime_type": "application/pdf",
"creator": "https://example.rossum.app/api/v1/users/1",
"created_at": "2020-05-21T12:34:56.789Z",
"arrived_at": "2020-05-21T12:34:56.789Z",
"original_file_name": "invoice.pdf",
"content": "https://example.rossum.app/api/v1/documents/314628/content",
"attachment_status": "processed",
"metadata": {
"some_key": "some_value"
}
}Changes
- warning
added the new
hook_convertedenum value to theresponse property for the response status
- warning