Document
Create a Document
Create a reference to a document, and receive a presigned URL for uploading the document
post/entities/document
Request
- Base URLhttps://api.justifi.ai/v1
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Authorizationstring required
the access_token value returned from the JustiFi oauth/token endpoint (be sure to append Bearer before the token)
Request body
Example request
{
"description": "My Document",
"file_name": "the_file_name",
"file_type": "application/pdf",
"document_type": "balance_sheet",
"business_id": "biz_abc123",
"identity_id": "idty_abc123",
"metadata": {
"my_id": "123"
}
}Response
Document was created and presigned successfully
Example response
{
"id": "prefix_xyz (same as id of data object)",
"type": "document",
"data": {
"id": "doc_abc123",
"platform_account_id": "acc_123xyz",
"description": "My Document",
"file_name": "my_document",
"file_type": "pdf",
"document_type": "balance_sheet",
"business_id": "biz_abc123",
"identity_id": "idty_abc123",
"presigned_url": "https://test.test/doc_abc123/file_name.pdf",
"metadata": {
"language": "english",
"social_network": "@person"
},
"created_at": "2021-01-01T12:00:00Z",
"updated_at": "2021-01-01T12:00:00Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.